@biggive/components 0.0.1 → 0.0.2

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 (55) hide show
  1. package/dist/biggive/biggive.esm.js +1 -0
  2. package/dist/biggive/index.esm.js +0 -0
  3. package/dist/biggive/p-7274e6de.entry.js +11 -0
  4. package/dist/biggive/p-d50699e8.js +2 -0
  5. package/dist/cjs/biggive-campaign-card_3.cjs.entry.js +426 -0
  6. package/dist/cjs/biggive.cjs.js +19 -0
  7. package/dist/cjs/index-c50e2a76.js +1149 -0
  8. package/dist/cjs/index.cjs.js +2 -0
  9. package/dist/cjs/loader.cjs.js +21 -0
  10. package/dist/collection/collection-manifest.json +14 -0
  11. package/dist/collection/components/biggive-campaign-card/biggive-campaign-card.css +199 -0
  12. package/dist/collection/components/biggive-campaign-card/biggive-campaign-card.js +385 -0
  13. package/dist/collection/components/biggive-grid/biggive-grid.css +14 -0
  14. package/dist/collection/components/biggive-grid/biggive-grid.js +15 -0
  15. package/dist/collection/components/demo-campaign-cards/demo-campaign-cards.css +3 -0
  16. package/dist/collection/components/demo-campaign-cards/demo-campaign-cards.js +14 -0
  17. package/dist/collection/index.js +1 -0
  18. package/dist/collection/util/campaign-groups.js +145 -0
  19. package/dist/components/biggive-campaign-card.d.ts +11 -0
  20. package/dist/components/biggive-campaign-card.js +6 -0
  21. package/dist/components/biggive-campaign-card2.js +424 -0
  22. package/dist/components/biggive-grid.d.ts +11 -0
  23. package/dist/components/biggive-grid.js +6 -0
  24. package/dist/components/biggive-grid2.js +30 -0
  25. package/dist/components/demo-campaign-cards.d.ts +11 -0
  26. package/dist/components/demo-campaign-cards.js +45 -0
  27. package/dist/components/index.d.ts +24 -0
  28. package/dist/components/index.js +4 -0
  29. package/dist/esm/biggive-campaign-card_3.entry.js +420 -0
  30. package/dist/esm/biggive.js +17 -0
  31. package/dist/esm/index-900201cf.js +1124 -0
  32. package/dist/esm/index.js +1 -0
  33. package/dist/esm/loader.js +17 -0
  34. package/dist/esm/polyfills/core-js.js +11 -0
  35. package/dist/esm/polyfills/css-shim.js +1 -0
  36. package/dist/esm/polyfills/dom.js +79 -0
  37. package/dist/esm/polyfills/es5-html-element.js +1 -0
  38. package/dist/esm/polyfills/index.js +34 -0
  39. package/dist/esm/polyfills/system.js +6 -0
  40. package/dist/index.cjs.js +1 -0
  41. package/dist/index.js +1 -0
  42. package/dist/types/components/biggive-campaign-card/biggive-campaign-card.d.ts +60 -0
  43. package/dist/types/components/biggive-grid/biggive-grid.d.ts +3 -0
  44. package/dist/types/components/demo-campaign-cards/demo-campaign-cards.d.ts +3 -0
  45. package/dist/types/components.d.ts +159 -0
  46. package/dist/types/index.d.ts +1 -0
  47. package/dist/types/stencil-public-runtime.d.ts +1565 -0
  48. package/dist/types/util/campaign-groups.d.ts +13 -0
  49. package/loader/cdn.js +3 -0
  50. package/loader/index.cjs.js +3 -0
  51. package/loader/index.d.ts +12 -0
  52. package/loader/index.es2017.js +3 -0
  53. package/loader/index.js +4 -0
  54. package/loader/package.json +10 -0
  55. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-c50e2a76.js');
6
+
7
+ /*
8
+ Stencil Client Patch Esm v2.17.1 | MIT Licensed | https://stenciljs.com
9
+ */
10
+ const patchEsm = () => {
11
+ return index.promiseResolve();
12
+ };
13
+
14
+ const defineCustomElements = (win, options) => {
15
+ if (typeof window === 'undefined') return Promise.resolve();
16
+ return patchEsm().then(() => {
17
+ return index.bootstrapLazy([["biggive-campaign-card_3.cjs",[[1,"demo-campaign-cards"],[1,"biggive-campaign-card",{"banner":[1],"daysRemaining":[2,"days-remaining"],"target":[2],"organisationName":[1,"organisation-name"],"campaignTitle":[1,"campaign-title"],"campaignType":[1,"campaign-type"],"beneficiaries":[1],"categories":[1],"matchFundsRemaining":[2,"match-funds-remaining"],"totalFundsRaised":[2,"total-funds-raised"],"callToActionUrl":[1,"call-to-action-url"],"callToActionLabel":[1,"call-to-action-label"]}],[1,"biggive-grid"]]]], options);
18
+ });
19
+ };
20
+
21
+ exports.defineCustomElements = defineCustomElements;
@@ -0,0 +1,14 @@
1
+ {
2
+ "entries": [
3
+ "./components/biggive-campaign-card/biggive-campaign-card.js",
4
+ "./components/biggive-grid/biggive-grid.js",
5
+ "./components/demo-campaign-cards/demo-campaign-cards.js"
6
+ ],
7
+ "compiler": {
8
+ "name": "@stencil/core",
9
+ "version": "2.17.1",
10
+ "typescriptVersion": "4.5.4"
11
+ },
12
+ "collections": [],
13
+ "bundles": []
14
+ }
@@ -0,0 +1,199 @@
1
+ :host {
2
+ display: block;
3
+ margin-bottom: 30px;
4
+ }
5
+
6
+ :host([column='1-5']) {
7
+ width: 100%;
8
+ }
9
+
10
+ :host([column='1-2']) {
11
+ width: calc(50% - (30px / 2));
12
+ }
13
+
14
+ :host([column='1-3']) {
15
+ width: calc(33.3% - (60px / 3));
16
+ }
17
+
18
+ :host([column='1-4']) {
19
+ width: calc(25% - (90px / 4));
20
+ }
21
+
22
+ :host([column='1-5']) {
23
+ width: calc(20% - (120px / 5));
24
+ }
25
+
26
+ .container {
27
+ font-family: 'Euclid Triangle', sans-serif;
28
+ filter: drop-shadow(-1px 6px 3px rgba(0,0,0,0.25));
29
+ }
30
+
31
+ .sleeve {
32
+ clip-path:
33
+ polygon(
34
+ 0% 0%, /* top left */
35
+ 0% 0%, /* top left */
36
+ 100% 0%, /* top right */
37
+ 100% 0%, /* top right */
38
+ 100% 100%, /* bottom right */
39
+ 100% 100%, /* bottom right */
40
+ 10% 100%, /* bottom left */
41
+ 0 90% /* bottom left */
42
+ );
43
+ }
44
+
45
+ .content {
46
+ padding: 15px;
47
+ background-color: #FFFFFF;
48
+ }
49
+
50
+ .campaign-type {
51
+ margin-left: 15px;
52
+ width: 0;
53
+ height: 0;
54
+ border-style: inset;
55
+ border-width: 86.6px 50px 0 50px;
56
+ border-color: #2AF135 transparent transparent transparent;
57
+ float: left;
58
+ transform: rotate(360deg);
59
+ }
60
+
61
+ .campaign-type span {
62
+ display: block;
63
+ text-align: center;
64
+ top: -75px;
65
+ left: -25px;
66
+ position: relative;
67
+ width: 46.5px;
68
+ height: 46.5px;
69
+ margin: 0;
70
+ color: #2C089B;
71
+ font-size: 12px;
72
+ }
73
+
74
+ .banner {
75
+ padding-bottom: 30%;
76
+ background-repeat: no-repeat;
77
+ background-position: center center;
78
+ background-size: cover;
79
+ }
80
+
81
+ .banner img {
82
+ display: none;
83
+ }
84
+
85
+ .meta-wrap.style-1 {
86
+ display: flex;
87
+ font-size: 16px;
88
+ line-height: 20px;
89
+ margin-bottom: 20px;
90
+ }
91
+
92
+ .meta-wrap.style-1 .meta-item {
93
+ width: 50%;
94
+ }
95
+
96
+ .meta-wrap.style-1 .meta-item .label {
97
+ font-weight: bold;
98
+ }
99
+
100
+ .meta-wrap.style-1 .meta-item .text {
101
+ color: #2C089B;
102
+ }
103
+
104
+ header {
105
+ margin-bottom: 20px;
106
+ }
107
+
108
+ header .slug {
109
+ text-transform: uppercase;
110
+ font-size: 12px;
111
+ line-height: 14px;
112
+ }
113
+
114
+ header h3 {
115
+ margin: 0;
116
+ padding: 0;
117
+ font-size: 24px;
118
+ line-height: 28px;
119
+ }
120
+
121
+
122
+ .meta-wrap.style-2 {
123
+ display: flex;
124
+ font-size: 12px;
125
+ line-height: 14px;
126
+ margin-bottom: 40px;
127
+ }
128
+
129
+ .meta-wrap.style-2 .meta-item {
130
+ width: 50%;
131
+ }
132
+
133
+ .meta-wrap.style-2 .meta-item .label {
134
+ font-weight: bold;
135
+ display: block;
136
+ margin-bottom: 10px;
137
+ }
138
+
139
+ .meta-wrap.style-2 .meta-item .text {
140
+ display: block;
141
+ font-size: 16px;
142
+ line-height: 18px;
143
+ }
144
+
145
+ .meta-wrap.style-2 .meta-item .text i {
146
+ margin-right: 10px;
147
+ }
148
+
149
+
150
+ .meta-wrap.style-3 {
151
+ display: flex;
152
+ font-size: 16px;
153
+ line-height: 20px;
154
+ margin-bottom: 20px;
155
+ }
156
+
157
+ .meta-wrap.style-3 .meta-item {
158
+ margin-right: 60px;
159
+ }
160
+
161
+ .meta-wrap.style-3 .meta-item .label {
162
+ font-weight: bold;
163
+ display: block;
164
+ font-size: 12px;
165
+ line-height: 14px;
166
+ margin-bottom: 10px;
167
+ }
168
+
169
+ .meta-wrap.style-3 .meta-item .text {
170
+ display: block;
171
+ font-size: 36px;
172
+ line-height: 40px;
173
+ font-weight: bold;
174
+ }
175
+
176
+ .meta-wrap.style-3 .meta-item:last-child .text {
177
+ color: #2C089B;
178
+ }
179
+
180
+ .button-wrap {
181
+ text-align: right;
182
+ }
183
+
184
+ .button-wrap a {
185
+ display: inline-block;
186
+ padding: 15px 30px;
187
+ color: #FFFFFF;
188
+ background-color: #2C089B;
189
+ cursor: pointer;
190
+ text-transform: uppercase;
191
+ font-size: 12px;
192
+ text-decoration: none;
193
+ }
194
+
195
+ .icon {
196
+ height: 1rem;
197
+ width: 2rem;
198
+ vertical-align: -.125rem;
199
+ }
@@ -0,0 +1,385 @@
1
+ import { Component, Prop, h } from '@stencil/core';
2
+ import { CampaignGroupsService } from '../../util/campaign-groups';
3
+ /**
4
+ * @todo Currency code for the campaign must be passed as a `@Prop`, not localised to the prospective donor.
5
+ */
6
+ export class BiggiveCampaignCard {
7
+ constructor() {
8
+ /**
9
+ * @param {string} banner Full URL of a banner image.
10
+ */
11
+ this.banner = '';
12
+ /**
13
+ * @param {string} number (Ceiling of) whole number of days until campaign end.
14
+ */
15
+ this.daysRemaining = null;
16
+ /**
17
+ * @param {number} totalFundsRaised Target for the campaign including matching but excluding any
18
+ * tax relief, in major unit of currency e.g. pounds GBP.
19
+ */
20
+ this.target = null;
21
+ /**
22
+ * @param {string} organisationName Display name of the charity or non-profit.
23
+ */
24
+ this.organisationName = null;
25
+ /**
26
+ * @param {string} organisationName Display name of the charity's specific time-bound fundraising campaign.
27
+ */
28
+ this.campaignTitle = null;
29
+ /**
30
+ * @param {string} campaignType e.g. "Match Funded".
31
+ */
32
+ this.campaignType = null;
33
+ /**
34
+ * @param {string} beneficiaries Pipe (|) -separated list of full category labels.
35
+ */
36
+ this.beneficiaries = '';
37
+ /**
38
+ * @param {string} categories Pipe (|) -separated list of full category labels.
39
+ */
40
+ this.categories = '';
41
+ /**
42
+ * @param {number} totalFundsRaised Match funds not yet used or reserved, in major unit of currency
43
+ * e.g. pounds GBP.
44
+ */
45
+ this.matchFundsRemaining = null;
46
+ /**
47
+ * @param {number} totalFundsRaised Total the campaign has raised so far including matching but excluding any
48
+ * tax relief, in major unit of currency e.g. pounds GBP.
49
+ */
50
+ this.totalFundsRaised = null;
51
+ /**
52
+ * @param {string} callToActionUrl Full URL of a call to action.
53
+ */
54
+ this.callToActionUrl = null;
55
+ /**
56
+ * @param {string} callToActionLabel Text for the link to `callToActionUrl`.
57
+ */
58
+ this.callToActionLabel = null;
59
+ }
60
+ getBeneficiaryIcons() {
61
+ return this.beneficiaries.length > 0 ? this.beneficiaries.split('|').map(beneficiary => CampaignGroupsService.getBeneficiaryIcon(beneficiary)) : [];
62
+ }
63
+ getCategoryIcons() {
64
+ return this.categories.length > 0 ? this.categories.split('|').map(category => CampaignGroupsService.getCategoryIcon(category)) : [];
65
+ }
66
+ formatCurrency(num) {
67
+ if (!isNaN(num)) {
68
+ return parseInt(num).toLocaleString();
69
+ }
70
+ return num;
71
+ }
72
+ render() {
73
+ return (h("div", { class: "container" },
74
+ h("div", { class: "sleeve" },
75
+ h("div", { class: "campaign-type" },
76
+ h("span", null, this.campaignType)),
77
+ this.banner.length > 0 ? (h("div", { class: "image-wrap banner", style: { 'background-image': 'url(' + this.banner + ')' } },
78
+ h("img", { src: this.banner, class: "banner" }))) : null,
79
+ h("div", { class: "content" },
80
+ h("div", { class: "meta-wrap style-1" },
81
+ h("div", { class: "meta-item" },
82
+ h("span", { class: "label" }, "Days Remaining:"),
83
+ " ",
84
+ h("span", { class: "text" }, this.daysRemaining)),
85
+ h("div", { class: "meta-item" },
86
+ h("span", { class: "label" }, "Target:"),
87
+ " ",
88
+ h("span", { class: "text" },
89
+ "\u00A3",
90
+ this.formatCurrency(this.target)))),
91
+ h("header", null,
92
+ h("div", { class: "slug" }, this.organisationName),
93
+ h("h3", null, this.campaignTitle)),
94
+ h("div", { class: "meta-wrap style-2" },
95
+ h("div", { class: "meta-item" },
96
+ h("span", { class: "label" }, "Categories"),
97
+ h("span", { class: "text" }, this.getCategoryIcons().map((iconDefinition) => (h("svg", { width: "512", height: "512", xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" },
98
+ h("path", { d: iconDefinition.icon[4].toString() })))))),
99
+ h("div", { class: "meta-item" },
100
+ h("span", { class: "label" }, "Helping"),
101
+ h("span", { class: "text" }, this.getBeneficiaryIcons().map(iconDefinition => (h("svg", { width: "512", height: "512", xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" },
102
+ h("path", { d: iconDefinition.icon[4].toString() }))))))),
103
+ h("div", { class: "meta-wrap style-3" },
104
+ h("div", { class: "meta-item" },
105
+ h("span", { class: "label" },
106
+ "Match",
107
+ h("br", null),
108
+ "Funds Remaining"),
109
+ h("span", { class: "text" },
110
+ "\u00A3",
111
+ this.formatCurrency(this.matchFundsRemaining))),
112
+ h("div", { class: "meta-item" },
113
+ h("span", { class: "label" },
114
+ "Total",
115
+ h("br", null),
116
+ "Funds Received"),
117
+ h("span", { class: "text" },
118
+ "\u00A3",
119
+ this.formatCurrency(this.totalFundsRaised)))),
120
+ h("div", { class: "button-wrap" },
121
+ h("a", { href: this.callToActionUrl, class: "call-to-action" }, this.callToActionLabel))))));
122
+ }
123
+ static get is() { return "biggive-campaign-card"; }
124
+ static get encapsulation() { return "shadow"; }
125
+ static get originalStyleUrls() { return {
126
+ "$": ["biggive-campaign-card.css"]
127
+ }; }
128
+ static get styleUrls() { return {
129
+ "$": ["biggive-campaign-card.css"]
130
+ }; }
131
+ static get properties() { return {
132
+ "banner": {
133
+ "type": "string",
134
+ "mutable": false,
135
+ "complexType": {
136
+ "original": "string",
137
+ "resolved": "string",
138
+ "references": {}
139
+ },
140
+ "required": false,
141
+ "optional": false,
142
+ "docs": {
143
+ "tags": [{
144
+ "name": "param",
145
+ "text": "banner Full URL of a banner image."
146
+ }],
147
+ "text": ""
148
+ },
149
+ "attribute": "banner",
150
+ "reflect": false,
151
+ "defaultValue": "''"
152
+ },
153
+ "daysRemaining": {
154
+ "type": "number",
155
+ "mutable": false,
156
+ "complexType": {
157
+ "original": "number",
158
+ "resolved": "number",
159
+ "references": {}
160
+ },
161
+ "required": false,
162
+ "optional": false,
163
+ "docs": {
164
+ "tags": [{
165
+ "name": "param",
166
+ "text": "number (Ceiling of) whole number of days until campaign end."
167
+ }],
168
+ "text": ""
169
+ },
170
+ "attribute": "days-remaining",
171
+ "reflect": false,
172
+ "defaultValue": "null"
173
+ },
174
+ "target": {
175
+ "type": "number",
176
+ "mutable": false,
177
+ "complexType": {
178
+ "original": "number",
179
+ "resolved": "number",
180
+ "references": {}
181
+ },
182
+ "required": false,
183
+ "optional": false,
184
+ "docs": {
185
+ "tags": [{
186
+ "name": "param",
187
+ "text": "totalFundsRaised Target for the campaign including matching but excluding any\n tax relief, in major unit of currency e.g. pounds GBP."
188
+ }],
189
+ "text": ""
190
+ },
191
+ "attribute": "target",
192
+ "reflect": false,
193
+ "defaultValue": "null"
194
+ },
195
+ "organisationName": {
196
+ "type": "string",
197
+ "mutable": false,
198
+ "complexType": {
199
+ "original": "string",
200
+ "resolved": "string",
201
+ "references": {}
202
+ },
203
+ "required": false,
204
+ "optional": false,
205
+ "docs": {
206
+ "tags": [{
207
+ "name": "param",
208
+ "text": "organisationName Display name of the charity or non-profit."
209
+ }],
210
+ "text": ""
211
+ },
212
+ "attribute": "organisation-name",
213
+ "reflect": false,
214
+ "defaultValue": "null"
215
+ },
216
+ "campaignTitle": {
217
+ "type": "string",
218
+ "mutable": false,
219
+ "complexType": {
220
+ "original": "string",
221
+ "resolved": "string",
222
+ "references": {}
223
+ },
224
+ "required": false,
225
+ "optional": false,
226
+ "docs": {
227
+ "tags": [{
228
+ "name": "param",
229
+ "text": "organisationName Display name of the charity's specific time-bound fundraising campaign."
230
+ }],
231
+ "text": ""
232
+ },
233
+ "attribute": "campaign-title",
234
+ "reflect": false,
235
+ "defaultValue": "null"
236
+ },
237
+ "campaignType": {
238
+ "type": "string",
239
+ "mutable": false,
240
+ "complexType": {
241
+ "original": "string",
242
+ "resolved": "string",
243
+ "references": {}
244
+ },
245
+ "required": false,
246
+ "optional": false,
247
+ "docs": {
248
+ "tags": [{
249
+ "name": "param",
250
+ "text": "campaignType e.g. \"Match Funded\"."
251
+ }],
252
+ "text": ""
253
+ },
254
+ "attribute": "campaign-type",
255
+ "reflect": false,
256
+ "defaultValue": "null"
257
+ },
258
+ "beneficiaries": {
259
+ "type": "string",
260
+ "mutable": false,
261
+ "complexType": {
262
+ "original": "string",
263
+ "resolved": "string",
264
+ "references": {}
265
+ },
266
+ "required": false,
267
+ "optional": false,
268
+ "docs": {
269
+ "tags": [{
270
+ "name": "param",
271
+ "text": "beneficiaries Pipe (|) -separated list of full category labels."
272
+ }],
273
+ "text": ""
274
+ },
275
+ "attribute": "beneficiaries",
276
+ "reflect": false,
277
+ "defaultValue": "''"
278
+ },
279
+ "categories": {
280
+ "type": "string",
281
+ "mutable": false,
282
+ "complexType": {
283
+ "original": "string",
284
+ "resolved": "string",
285
+ "references": {}
286
+ },
287
+ "required": false,
288
+ "optional": false,
289
+ "docs": {
290
+ "tags": [{
291
+ "name": "param",
292
+ "text": "categories Pipe (|) -separated list of full category labels."
293
+ }],
294
+ "text": ""
295
+ },
296
+ "attribute": "categories",
297
+ "reflect": false,
298
+ "defaultValue": "''"
299
+ },
300
+ "matchFundsRemaining": {
301
+ "type": "number",
302
+ "mutable": false,
303
+ "complexType": {
304
+ "original": "number",
305
+ "resolved": "number",
306
+ "references": {}
307
+ },
308
+ "required": false,
309
+ "optional": false,
310
+ "docs": {
311
+ "tags": [{
312
+ "name": "param",
313
+ "text": "totalFundsRaised Match funds not yet used or reserved, in major unit of currency\n e.g. pounds GBP."
314
+ }],
315
+ "text": ""
316
+ },
317
+ "attribute": "match-funds-remaining",
318
+ "reflect": false,
319
+ "defaultValue": "null"
320
+ },
321
+ "totalFundsRaised": {
322
+ "type": "number",
323
+ "mutable": false,
324
+ "complexType": {
325
+ "original": "number",
326
+ "resolved": "number",
327
+ "references": {}
328
+ },
329
+ "required": false,
330
+ "optional": false,
331
+ "docs": {
332
+ "tags": [{
333
+ "name": "param",
334
+ "text": "totalFundsRaised Total the campaign has raised so far including matching but excluding any\ntax relief, in major unit of currency e.g. pounds GBP."
335
+ }],
336
+ "text": ""
337
+ },
338
+ "attribute": "total-funds-raised",
339
+ "reflect": false,
340
+ "defaultValue": "null"
341
+ },
342
+ "callToActionUrl": {
343
+ "type": "string",
344
+ "mutable": false,
345
+ "complexType": {
346
+ "original": "string",
347
+ "resolved": "string",
348
+ "references": {}
349
+ },
350
+ "required": false,
351
+ "optional": false,
352
+ "docs": {
353
+ "tags": [{
354
+ "name": "param",
355
+ "text": "callToActionUrl Full URL of a call to action."
356
+ }],
357
+ "text": ""
358
+ },
359
+ "attribute": "call-to-action-url",
360
+ "reflect": false,
361
+ "defaultValue": "null"
362
+ },
363
+ "callToActionLabel": {
364
+ "type": "string",
365
+ "mutable": false,
366
+ "complexType": {
367
+ "original": "string",
368
+ "resolved": "string",
369
+ "references": {}
370
+ },
371
+ "required": false,
372
+ "optional": false,
373
+ "docs": {
374
+ "tags": [{
375
+ "name": "param",
376
+ "text": "callToActionLabel Text for the link to `callToActionUrl`."
377
+ }],
378
+ "text": ""
379
+ },
380
+ "attribute": "call-to-action-label",
381
+ "reflect": false,
382
+ "defaultValue": "null"
383
+ }
384
+ }; }
385
+ }
@@ -0,0 +1,14 @@
1
+ :host {
2
+ display: block;
3
+ }
4
+
5
+ .grid {
6
+ display: -webkit-box;
7
+ display: -moz-box;
8
+ display: -webkit-flex;
9
+ display: flex;
10
+ -webkit-flex-flow: row wrap;
11
+ flex-flow: row wrap;
12
+ -webkit-justify-content: space-between;
13
+ justify-content: space-between;
14
+ }
@@ -0,0 +1,15 @@
1
+ import { Component, h } from '@stencil/core';
2
+ export class BiggiveGrid {
3
+ render() {
4
+ return (h("div", { class: "grid" },
5
+ h("slot", null)));
6
+ }
7
+ static get is() { return "biggive-grid"; }
8
+ static get encapsulation() { return "shadow"; }
9
+ static get originalStyleUrls() { return {
10
+ "$": ["biggive-grid.css"]
11
+ }; }
12
+ static get styleUrls() { return {
13
+ "$": ["biggive-grid.css"]
14
+ }; }
15
+ }
@@ -0,0 +1,3 @@
1
+ :host {
2
+ display: block;
3
+ }
@@ -0,0 +1,14 @@
1
+ import { Component, h } from '@stencil/core';
2
+ export class DemoCampaignCards {
3
+ render() {
4
+ return (h("biggive-grid", null, [...Array(12)].map(() => (h("biggive-campaign-card", { banner: "/assets/img/banner.png", "days-remaining": 50, target: 50000, "organisation-name": "Ardent Theatre Company", "campaign-type": "Match Funded", "campaign-title": "Strike! A play by Tracy Ryan", categories: "Arts/Culture/Heritage|Environment/Conservation|Health/Wellbeing", beneficiaries: "General Public/Humankind", "match-funds-remaining": 17424, "total-funds-raised": 15424, "call-to-action-url": "#", "call-to-action-label": "Donate" })))));
5
+ }
6
+ static get is() { return "demo-campaign-cards"; }
7
+ static get encapsulation() { return "shadow"; }
8
+ static get originalStyleUrls() { return {
9
+ "$": ["demo-campaign-cards.css"]
10
+ }; }
11
+ static get styleUrls() { return {
12
+ "$": ["demo-campaign-cards.css"]
13
+ }; }
14
+ }
@@ -0,0 +1 @@
1
+ export {};