@biggive/components 202307271726.0.0 → 202308021605.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.
- package/dist/biggive/biggive.esm.js +1 -1
- package/dist/biggive/p-6f588def.entry.js +1 -0
- package/dist/cjs/biggive-image-card.cjs.entry.js +51 -0
- package/dist/cjs/biggive.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/biggive-image-card/biggive-image-card.css +368 -0
- package/dist/collection/components/biggive-image-card/biggive-image-card.js +470 -0
- package/dist/collection/components/biggive-image-card/biggive-image-card.stories.js +159 -0
- package/dist/components/biggive-image-card.d.ts +11 -0
- package/dist/components/biggive-image-card.js +94 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/esm/biggive-image-card.entry.js +47 -0
- package/dist/esm/biggive.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/biggive-image-card/biggive-image-card.d.ts +27 -0
- package/dist/types/components/biggive-image-card/biggive-image-card.stories.d.ts +76 -0
- package/dist/types/components.d.ts +57 -0
- package/hydrate/index.js +76 -0
- package/package.json +1 -1
|
@@ -0,0 +1,470 @@
|
|
|
1
|
+
import { h } from '@stencil/core';
|
|
2
|
+
export class BiggiveImageCard {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.spaceBelow = 0;
|
|
5
|
+
this.backgroundColour = 'primary';
|
|
6
|
+
this.backgroundImageUrl = '';
|
|
7
|
+
this.cardColour = 'white';
|
|
8
|
+
this.textColour = 'black';
|
|
9
|
+
this.mainImageUrl = undefined;
|
|
10
|
+
this.mainImageAltText = undefined;
|
|
11
|
+
this.textAlign = 'center';
|
|
12
|
+
this.mainTitle = undefined;
|
|
13
|
+
this.subtitle = undefined;
|
|
14
|
+
this.teaser = undefined;
|
|
15
|
+
this.icon = true;
|
|
16
|
+
this.iconColour = 'primary';
|
|
17
|
+
this.buttonAlign = 'center';
|
|
18
|
+
this.buttonStyle = 'standard';
|
|
19
|
+
this.buttonLabel = undefined;
|
|
20
|
+
this.buttonUrl = undefined;
|
|
21
|
+
this.buttonColourScheme = 'clear-primary';
|
|
22
|
+
this.clipBottomLeftCorner = true;
|
|
23
|
+
this.clipTopRightCorner = true;
|
|
24
|
+
this.headingLevel = 3;
|
|
25
|
+
this.addAnimation = false;
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
const HeadingTag = `h${this.headingLevel}`;
|
|
29
|
+
return (h("div", { class: 'container space-below-' +
|
|
30
|
+
this.spaceBelow +
|
|
31
|
+
' background-colour-' +
|
|
32
|
+
this.backgroundColour +
|
|
33
|
+
' clip-bottom-left-corner-' +
|
|
34
|
+
this.clipBottomLeftCorner +
|
|
35
|
+
' clip-top-right-corner-' +
|
|
36
|
+
this.clipTopRightCorner +
|
|
37
|
+
' add-animation-' +
|
|
38
|
+
this.addAnimation, style: { 'background-image': "url('" + this.backgroundImageUrl + "')" } }, h("a", { href: this.buttonUrl }, h("div", { class: 'sleeve background-colour-' + this.cardColour + ' text-colour-' + this.textColour + ' text-align-' + this.textAlign }, h("div", { class: "content-wrap" }, this.icon == true ? (h("div", { class: "icon" }, h("svg", { width: "53", height: "39", viewBox: "0 0 53 39", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M38.7009 13.6572L52.3535 38.6959H25.0386L38.7009 13.6572Z", class: "fill-black" }), h("path", { d: "M20.4789 36.4199L6.36785e-06 5.89713e-05L40.9724 6.61352e-05L20.4789 36.4199Z", class: 'fill-' + this.iconColour })))) : null, this.mainImageUrl != '' ? (h("div", { class: "main-image-container" }, h("div", { class: "image-wrap" }, h("img", { src: this.mainImageUrl, alt: this.mainImageAltText, title: this.mainImageAltText })))) : null, h(HeadingTag, { class: "title" }, this.mainTitle), h("div", { class: "subtitle" }, this.subtitle), h("div", { class: "teaser" }, this.teaser), this.buttonLabel != null && this.buttonUrl != null && this.buttonUrl != '' ? (h("div", { class: 'button-wrap align-' + this.buttonAlign }, h("biggive-button", { "colour-scheme": this.buttonColourScheme, label: this.buttonLabel }))) : null)))));
|
|
39
|
+
}
|
|
40
|
+
static get is() { return "biggive-image-card"; }
|
|
41
|
+
static get encapsulation() { return "shadow"; }
|
|
42
|
+
static get originalStyleUrls() {
|
|
43
|
+
return {
|
|
44
|
+
"$": ["biggive-image-card.scss"]
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
static get styleUrls() {
|
|
48
|
+
return {
|
|
49
|
+
"$": ["biggive-image-card.css"]
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
static get properties() {
|
|
53
|
+
return {
|
|
54
|
+
"spaceBelow": {
|
|
55
|
+
"type": "number",
|
|
56
|
+
"mutable": false,
|
|
57
|
+
"complexType": {
|
|
58
|
+
"original": "spacingOption",
|
|
59
|
+
"resolved": "0 | 1 | 2 | 3 | 4 | 5 | 6",
|
|
60
|
+
"references": {
|
|
61
|
+
"spacingOption": {
|
|
62
|
+
"location": "import",
|
|
63
|
+
"path": "../../globals/spacing-option"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"required": false,
|
|
68
|
+
"optional": false,
|
|
69
|
+
"docs": {
|
|
70
|
+
"tags": [],
|
|
71
|
+
"text": ""
|
|
72
|
+
},
|
|
73
|
+
"attribute": "space-below",
|
|
74
|
+
"reflect": false,
|
|
75
|
+
"defaultValue": "0"
|
|
76
|
+
},
|
|
77
|
+
"backgroundColour": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"mutable": false,
|
|
80
|
+
"complexType": {
|
|
81
|
+
"original": "brandColour",
|
|
82
|
+
"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\"",
|
|
83
|
+
"references": {
|
|
84
|
+
"brandColour": {
|
|
85
|
+
"location": "import",
|
|
86
|
+
"path": "../../globals/brand-colour"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"required": false,
|
|
91
|
+
"optional": false,
|
|
92
|
+
"docs": {
|
|
93
|
+
"tags": [],
|
|
94
|
+
"text": ""
|
|
95
|
+
},
|
|
96
|
+
"attribute": "background-colour",
|
|
97
|
+
"reflect": false,
|
|
98
|
+
"defaultValue": "'primary'"
|
|
99
|
+
},
|
|
100
|
+
"backgroundImageUrl": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"mutable": false,
|
|
103
|
+
"complexType": {
|
|
104
|
+
"original": "string",
|
|
105
|
+
"resolved": "string",
|
|
106
|
+
"references": {}
|
|
107
|
+
},
|
|
108
|
+
"required": false,
|
|
109
|
+
"optional": false,
|
|
110
|
+
"docs": {
|
|
111
|
+
"tags": [],
|
|
112
|
+
"text": ""
|
|
113
|
+
},
|
|
114
|
+
"attribute": "background-image-url",
|
|
115
|
+
"reflect": false,
|
|
116
|
+
"defaultValue": "''"
|
|
117
|
+
},
|
|
118
|
+
"cardColour": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"mutable": false,
|
|
121
|
+
"complexType": {
|
|
122
|
+
"original": "brandColour",
|
|
123
|
+
"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\"",
|
|
124
|
+
"references": {
|
|
125
|
+
"brandColour": {
|
|
126
|
+
"location": "import",
|
|
127
|
+
"path": "../../globals/brand-colour"
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"required": false,
|
|
132
|
+
"optional": false,
|
|
133
|
+
"docs": {
|
|
134
|
+
"tags": [],
|
|
135
|
+
"text": ""
|
|
136
|
+
},
|
|
137
|
+
"attribute": "card-colour",
|
|
138
|
+
"reflect": false,
|
|
139
|
+
"defaultValue": "'white'"
|
|
140
|
+
},
|
|
141
|
+
"textColour": {
|
|
142
|
+
"type": "string",
|
|
143
|
+
"mutable": false,
|
|
144
|
+
"complexType": {
|
|
145
|
+
"original": "brandColour",
|
|
146
|
+
"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\"",
|
|
147
|
+
"references": {
|
|
148
|
+
"brandColour": {
|
|
149
|
+
"location": "import",
|
|
150
|
+
"path": "../../globals/brand-colour"
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"required": false,
|
|
155
|
+
"optional": false,
|
|
156
|
+
"docs": {
|
|
157
|
+
"tags": [],
|
|
158
|
+
"text": ""
|
|
159
|
+
},
|
|
160
|
+
"attribute": "text-colour",
|
|
161
|
+
"reflect": false,
|
|
162
|
+
"defaultValue": "'black'"
|
|
163
|
+
},
|
|
164
|
+
"mainImageUrl": {
|
|
165
|
+
"type": "string",
|
|
166
|
+
"mutable": false,
|
|
167
|
+
"complexType": {
|
|
168
|
+
"original": "string",
|
|
169
|
+
"resolved": "string",
|
|
170
|
+
"references": {}
|
|
171
|
+
},
|
|
172
|
+
"required": false,
|
|
173
|
+
"optional": false,
|
|
174
|
+
"docs": {
|
|
175
|
+
"tags": [],
|
|
176
|
+
"text": ""
|
|
177
|
+
},
|
|
178
|
+
"attribute": "main-image-url",
|
|
179
|
+
"reflect": false
|
|
180
|
+
},
|
|
181
|
+
"mainImageAltText": {
|
|
182
|
+
"type": "string",
|
|
183
|
+
"mutable": false,
|
|
184
|
+
"complexType": {
|
|
185
|
+
"original": "string",
|
|
186
|
+
"resolved": "string",
|
|
187
|
+
"references": {}
|
|
188
|
+
},
|
|
189
|
+
"required": false,
|
|
190
|
+
"optional": false,
|
|
191
|
+
"docs": {
|
|
192
|
+
"tags": [],
|
|
193
|
+
"text": ""
|
|
194
|
+
},
|
|
195
|
+
"attribute": "main-image-alt-text",
|
|
196
|
+
"reflect": false
|
|
197
|
+
},
|
|
198
|
+
"textAlign": {
|
|
199
|
+
"type": "string",
|
|
200
|
+
"mutable": false,
|
|
201
|
+
"complexType": {
|
|
202
|
+
"original": "'left' | 'center' | 'right'",
|
|
203
|
+
"resolved": "\"center\" | \"left\" | \"right\"",
|
|
204
|
+
"references": {}
|
|
205
|
+
},
|
|
206
|
+
"required": false,
|
|
207
|
+
"optional": false,
|
|
208
|
+
"docs": {
|
|
209
|
+
"tags": [],
|
|
210
|
+
"text": ""
|
|
211
|
+
},
|
|
212
|
+
"attribute": "text-align",
|
|
213
|
+
"reflect": false,
|
|
214
|
+
"defaultValue": "'center'"
|
|
215
|
+
},
|
|
216
|
+
"mainTitle": {
|
|
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
|
+
"text": ""
|
|
229
|
+
},
|
|
230
|
+
"attribute": "main-title",
|
|
231
|
+
"reflect": false
|
|
232
|
+
},
|
|
233
|
+
"subtitle": {
|
|
234
|
+
"type": "string",
|
|
235
|
+
"mutable": false,
|
|
236
|
+
"complexType": {
|
|
237
|
+
"original": "string",
|
|
238
|
+
"resolved": "string",
|
|
239
|
+
"references": {}
|
|
240
|
+
},
|
|
241
|
+
"required": false,
|
|
242
|
+
"optional": false,
|
|
243
|
+
"docs": {
|
|
244
|
+
"tags": [],
|
|
245
|
+
"text": ""
|
|
246
|
+
},
|
|
247
|
+
"attribute": "subtitle",
|
|
248
|
+
"reflect": false
|
|
249
|
+
},
|
|
250
|
+
"teaser": {
|
|
251
|
+
"type": "string",
|
|
252
|
+
"mutable": false,
|
|
253
|
+
"complexType": {
|
|
254
|
+
"original": "string",
|
|
255
|
+
"resolved": "string",
|
|
256
|
+
"references": {}
|
|
257
|
+
},
|
|
258
|
+
"required": false,
|
|
259
|
+
"optional": false,
|
|
260
|
+
"docs": {
|
|
261
|
+
"tags": [],
|
|
262
|
+
"text": ""
|
|
263
|
+
},
|
|
264
|
+
"attribute": "teaser",
|
|
265
|
+
"reflect": false
|
|
266
|
+
},
|
|
267
|
+
"icon": {
|
|
268
|
+
"type": "boolean",
|
|
269
|
+
"mutable": false,
|
|
270
|
+
"complexType": {
|
|
271
|
+
"original": "boolean",
|
|
272
|
+
"resolved": "boolean",
|
|
273
|
+
"references": {}
|
|
274
|
+
},
|
|
275
|
+
"required": false,
|
|
276
|
+
"optional": false,
|
|
277
|
+
"docs": {
|
|
278
|
+
"tags": [],
|
|
279
|
+
"text": ""
|
|
280
|
+
},
|
|
281
|
+
"attribute": "icon",
|
|
282
|
+
"reflect": false,
|
|
283
|
+
"defaultValue": "true"
|
|
284
|
+
},
|
|
285
|
+
"iconColour": {
|
|
286
|
+
"type": "string",
|
|
287
|
+
"mutable": false,
|
|
288
|
+
"complexType": {
|
|
289
|
+
"original": "brandColour",
|
|
290
|
+
"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\"",
|
|
291
|
+
"references": {
|
|
292
|
+
"brandColour": {
|
|
293
|
+
"location": "import",
|
|
294
|
+
"path": "../../globals/brand-colour"
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
"required": false,
|
|
299
|
+
"optional": false,
|
|
300
|
+
"docs": {
|
|
301
|
+
"tags": [],
|
|
302
|
+
"text": ""
|
|
303
|
+
},
|
|
304
|
+
"attribute": "icon-colour",
|
|
305
|
+
"reflect": false,
|
|
306
|
+
"defaultValue": "'primary'"
|
|
307
|
+
},
|
|
308
|
+
"buttonAlign": {
|
|
309
|
+
"type": "string",
|
|
310
|
+
"mutable": false,
|
|
311
|
+
"complexType": {
|
|
312
|
+
"original": "string",
|
|
313
|
+
"resolved": "string",
|
|
314
|
+
"references": {}
|
|
315
|
+
},
|
|
316
|
+
"required": false,
|
|
317
|
+
"optional": false,
|
|
318
|
+
"docs": {
|
|
319
|
+
"tags": [],
|
|
320
|
+
"text": ""
|
|
321
|
+
},
|
|
322
|
+
"attribute": "button-align",
|
|
323
|
+
"reflect": false,
|
|
324
|
+
"defaultValue": "'center'"
|
|
325
|
+
},
|
|
326
|
+
"buttonStyle": {
|
|
327
|
+
"type": "string",
|
|
328
|
+
"mutable": false,
|
|
329
|
+
"complexType": {
|
|
330
|
+
"original": "string",
|
|
331
|
+
"resolved": "string",
|
|
332
|
+
"references": {}
|
|
333
|
+
},
|
|
334
|
+
"required": false,
|
|
335
|
+
"optional": false,
|
|
336
|
+
"docs": {
|
|
337
|
+
"tags": [],
|
|
338
|
+
"text": ""
|
|
339
|
+
},
|
|
340
|
+
"attribute": "button-style",
|
|
341
|
+
"reflect": false,
|
|
342
|
+
"defaultValue": "'standard'"
|
|
343
|
+
},
|
|
344
|
+
"buttonLabel": {
|
|
345
|
+
"type": "string",
|
|
346
|
+
"mutable": false,
|
|
347
|
+
"complexType": {
|
|
348
|
+
"original": "string",
|
|
349
|
+
"resolved": "string",
|
|
350
|
+
"references": {}
|
|
351
|
+
},
|
|
352
|
+
"required": false,
|
|
353
|
+
"optional": false,
|
|
354
|
+
"docs": {
|
|
355
|
+
"tags": [],
|
|
356
|
+
"text": ""
|
|
357
|
+
},
|
|
358
|
+
"attribute": "button-label",
|
|
359
|
+
"reflect": false
|
|
360
|
+
},
|
|
361
|
+
"buttonUrl": {
|
|
362
|
+
"type": "string",
|
|
363
|
+
"mutable": false,
|
|
364
|
+
"complexType": {
|
|
365
|
+
"original": "string",
|
|
366
|
+
"resolved": "string",
|
|
367
|
+
"references": {}
|
|
368
|
+
},
|
|
369
|
+
"required": false,
|
|
370
|
+
"optional": false,
|
|
371
|
+
"docs": {
|
|
372
|
+
"tags": [],
|
|
373
|
+
"text": ""
|
|
374
|
+
},
|
|
375
|
+
"attribute": "button-url",
|
|
376
|
+
"reflect": false
|
|
377
|
+
},
|
|
378
|
+
"buttonColourScheme": {
|
|
379
|
+
"type": "string",
|
|
380
|
+
"mutable": false,
|
|
381
|
+
"complexType": {
|
|
382
|
+
"original": "string",
|
|
383
|
+
"resolved": "string",
|
|
384
|
+
"references": {}
|
|
385
|
+
},
|
|
386
|
+
"required": false,
|
|
387
|
+
"optional": false,
|
|
388
|
+
"docs": {
|
|
389
|
+
"tags": [],
|
|
390
|
+
"text": ""
|
|
391
|
+
},
|
|
392
|
+
"attribute": "button-colour-scheme",
|
|
393
|
+
"reflect": false,
|
|
394
|
+
"defaultValue": "'clear-primary'"
|
|
395
|
+
},
|
|
396
|
+
"clipBottomLeftCorner": {
|
|
397
|
+
"type": "boolean",
|
|
398
|
+
"mutable": false,
|
|
399
|
+
"complexType": {
|
|
400
|
+
"original": "boolean",
|
|
401
|
+
"resolved": "boolean",
|
|
402
|
+
"references": {}
|
|
403
|
+
},
|
|
404
|
+
"required": false,
|
|
405
|
+
"optional": false,
|
|
406
|
+
"docs": {
|
|
407
|
+
"tags": [],
|
|
408
|
+
"text": ""
|
|
409
|
+
},
|
|
410
|
+
"attribute": "clip-bottom-left-corner",
|
|
411
|
+
"reflect": false,
|
|
412
|
+
"defaultValue": "true"
|
|
413
|
+
},
|
|
414
|
+
"clipTopRightCorner": {
|
|
415
|
+
"type": "boolean",
|
|
416
|
+
"mutable": false,
|
|
417
|
+
"complexType": {
|
|
418
|
+
"original": "boolean",
|
|
419
|
+
"resolved": "boolean",
|
|
420
|
+
"references": {}
|
|
421
|
+
},
|
|
422
|
+
"required": false,
|
|
423
|
+
"optional": false,
|
|
424
|
+
"docs": {
|
|
425
|
+
"tags": [],
|
|
426
|
+
"text": ""
|
|
427
|
+
},
|
|
428
|
+
"attribute": "clip-top-right-corner",
|
|
429
|
+
"reflect": false,
|
|
430
|
+
"defaultValue": "true"
|
|
431
|
+
},
|
|
432
|
+
"headingLevel": {
|
|
433
|
+
"type": "number",
|
|
434
|
+
"mutable": false,
|
|
435
|
+
"complexType": {
|
|
436
|
+
"original": "1 | 2 | 3 | 4 | 5 | 6",
|
|
437
|
+
"resolved": "1 | 2 | 3 | 4 | 5 | 6",
|
|
438
|
+
"references": {}
|
|
439
|
+
},
|
|
440
|
+
"required": false,
|
|
441
|
+
"optional": false,
|
|
442
|
+
"docs": {
|
|
443
|
+
"tags": [],
|
|
444
|
+
"text": ""
|
|
445
|
+
},
|
|
446
|
+
"attribute": "heading-level",
|
|
447
|
+
"reflect": false,
|
|
448
|
+
"defaultValue": "3"
|
|
449
|
+
},
|
|
450
|
+
"addAnimation": {
|
|
451
|
+
"type": "boolean",
|
|
452
|
+
"mutable": false,
|
|
453
|
+
"complexType": {
|
|
454
|
+
"original": "boolean",
|
|
455
|
+
"resolved": "boolean",
|
|
456
|
+
"references": {}
|
|
457
|
+
},
|
|
458
|
+
"required": false,
|
|
459
|
+
"optional": false,
|
|
460
|
+
"docs": {
|
|
461
|
+
"tags": [],
|
|
462
|
+
"text": ""
|
|
463
|
+
},
|
|
464
|
+
"attribute": "add-animation",
|
|
465
|
+
"reflect": false,
|
|
466
|
+
"defaultValue": "false"
|
|
467
|
+
}
|
|
468
|
+
};
|
|
469
|
+
}
|
|
470
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
title: 'Components/Content',
|
|
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', 'transparent'],
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
backgroundImageUrl: {
|
|
19
|
+
name: 'Background image URL',
|
|
20
|
+
},
|
|
21
|
+
cardColour: {
|
|
22
|
+
name: 'Card colour',
|
|
23
|
+
control: {
|
|
24
|
+
type: 'select',
|
|
25
|
+
options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black', 'transparent'],
|
|
26
|
+
},
|
|
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', 'transparent'],
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
icon: {
|
|
36
|
+
name: 'Icon',
|
|
37
|
+
},
|
|
38
|
+
iconColour: {
|
|
39
|
+
name: 'Icon colour',
|
|
40
|
+
control: {
|
|
41
|
+
type: 'select',
|
|
42
|
+
options: [
|
|
43
|
+
'primary',
|
|
44
|
+
'secondary',
|
|
45
|
+
'tertiary',
|
|
46
|
+
'brand-1',
|
|
47
|
+
'brand-2',
|
|
48
|
+
'brand-3',
|
|
49
|
+
'brand-4',
|
|
50
|
+
'brand-5',
|
|
51
|
+
'brand-6',
|
|
52
|
+
'white',
|
|
53
|
+
'black',
|
|
54
|
+
'red',
|
|
55
|
+
'clear-primary',
|
|
56
|
+
'clear-secondary',
|
|
57
|
+
'clear-tertiary',
|
|
58
|
+
'clear-brand-1',
|
|
59
|
+
'clear-brand-2',
|
|
60
|
+
'clear-brand-3',
|
|
61
|
+
'clear-brand-4',
|
|
62
|
+
'clear-brand-5',
|
|
63
|
+
'clear-brand-6',
|
|
64
|
+
'clear-white',
|
|
65
|
+
'clear-black',
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
mainTitle: {
|
|
70
|
+
name: 'Title',
|
|
71
|
+
},
|
|
72
|
+
subtitle: {
|
|
73
|
+
name: 'Subtitle',
|
|
74
|
+
},
|
|
75
|
+
teaser: {
|
|
76
|
+
name: 'Teaser',
|
|
77
|
+
},
|
|
78
|
+
buttonUrl: {
|
|
79
|
+
name: 'Button URL',
|
|
80
|
+
},
|
|
81
|
+
buttonLabel: {
|
|
82
|
+
name: 'Button label',
|
|
83
|
+
},
|
|
84
|
+
buttonColourScheme: {
|
|
85
|
+
name: 'Button colour scheme',
|
|
86
|
+
control: {
|
|
87
|
+
type: 'select',
|
|
88
|
+
options: [
|
|
89
|
+
'primary',
|
|
90
|
+
'secondary',
|
|
91
|
+
'tertiary',
|
|
92
|
+
'brand-1',
|
|
93
|
+
'brand-2',
|
|
94
|
+
'brand-3',
|
|
95
|
+
'brand-4',
|
|
96
|
+
'brand-5',
|
|
97
|
+
'brand-6',
|
|
98
|
+
'white',
|
|
99
|
+
'black',
|
|
100
|
+
'clear-primary',
|
|
101
|
+
'clear-secondary',
|
|
102
|
+
'clear-tertiary',
|
|
103
|
+
'clear-brand-1',
|
|
104
|
+
'clear-brand-2',
|
|
105
|
+
'clear-brand-3',
|
|
106
|
+
'clear-brand-4',
|
|
107
|
+
'clear-brand-5',
|
|
108
|
+
'clear-brand-6',
|
|
109
|
+
'clear-white',
|
|
110
|
+
'clear-black',
|
|
111
|
+
],
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
clipBottomLeftCorner: {
|
|
115
|
+
name: 'Clip bottom left corner',
|
|
116
|
+
},
|
|
117
|
+
clipTopRight: {
|
|
118
|
+
name: 'Clip top right corner',
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
};
|
|
122
|
+
const Template = (args) => `
|
|
123
|
+
<biggive-image-card
|
|
124
|
+
space-below="${args.spaceBelow}"
|
|
125
|
+
background-colour="${args.backgroundColour}"
|
|
126
|
+
background-image-url="${args.backgroundImageUrl}"
|
|
127
|
+
card-colour="${args.cardColour}"
|
|
128
|
+
text-colour="${args.textColour}"
|
|
129
|
+
icon="${args.icon}"
|
|
130
|
+
icon-colour="${args.iconColour}"
|
|
131
|
+
mainTitle="${args.mainTitle}"
|
|
132
|
+
subtitle="${args.subtitle}"
|
|
133
|
+
teaser="${args.teaser}"
|
|
134
|
+
button-label="${args.buttonLabel}"
|
|
135
|
+
button-url="${args.buttonUrl}"
|
|
136
|
+
button-colour-ccheme="${args.buttonColourScheme}"
|
|
137
|
+
clip-bottom-left-corner="${args.clipBottomLeftCorner}"
|
|
138
|
+
clip-top-right-corner="${args.clipTopRightCorner}"
|
|
139
|
+
>
|
|
140
|
+
</biggive-image-card>
|
|
141
|
+
`;
|
|
142
|
+
export const ImageCardComponent = Template.bind({});
|
|
143
|
+
ImageCardComponent.args = {
|
|
144
|
+
spaceBelow: 4,
|
|
145
|
+
icon: true,
|
|
146
|
+
iconColour: 'primary',
|
|
147
|
+
backgroundColour: 'white',
|
|
148
|
+
backgroundImageUrl: 'https://media.istockphoto.com/vectors/childish-seamless-dotted-pattern-with-colorful-doodle-letters-fun-vector-id1208462693',
|
|
149
|
+
cardColour: 'white',
|
|
150
|
+
textColour: 'white',
|
|
151
|
+
mainTitle: 'Sample main title',
|
|
152
|
+
subtitle: 'Sample subtitle',
|
|
153
|
+
teaser: 'teaser',
|
|
154
|
+
buttonUrl: '#',
|
|
155
|
+
buttonLabel: 'Click here',
|
|
156
|
+
buttonColourScheme: 'clear-primary',
|
|
157
|
+
clipBottomLeftCorner: true,
|
|
158
|
+
clipTopRightCorner: true,
|
|
159
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface BiggiveImageCard extends Components.BiggiveImageCard, HTMLElement {}
|
|
4
|
+
export const BiggiveImageCard: {
|
|
5
|
+
prototype: BiggiveImageCard;
|
|
6
|
+
new (): BiggiveImageCard;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|