@biggive/components 202307201413.0.0 → 202307271559.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-0d3008a2.entry.js → p-4ac3c59d.entry.js} +1 -1
- package/dist/biggive/p-5ff6d84f.entry.js +1 -0
- package/dist/biggive/{p-9c09a586.entry.js → p-a70e0902.entry.js} +1 -1
- package/dist/biggive/p-b878559d.entry.js +1 -0
- package/dist/biggive/{p-9946cc08.entry.js → p-c0f333bc.entry.js} +1 -1
- package/dist/biggive/{p-e5f630d1.entry.js → p-e0041d91.entry.js} +1 -1
- package/dist/biggive/{p-50d9a75b.entry.js → p-e1f37ddb.entry.js} +1 -1
- package/dist/cjs/biggive-accordion_42.cjs.entry.js +27 -28
- package/dist/cjs/biggive-basic-card.cjs.entry.js +1 -1
- package/dist/cjs/biggive-beneficiary-icon.cjs.entry.js +1 -1
- package/dist/cjs/biggive-boxed-content.cjs.entry.js +1 -1
- package/dist/cjs/biggive-category-icon.cjs.entry.js +1 -1
- package/dist/cjs/biggive-image-card.cjs.entry.js +57 -0
- package/dist/cjs/biggive-table.cjs.entry.js +1 -1
- 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-accordion/biggive-accordion.css +4 -4
- package/dist/collection/components/biggive-article-card/biggive-article-card.css +6 -6
- package/dist/collection/components/biggive-basic-card/biggive-basic-card.css +3 -3
- package/dist/collection/components/biggive-beneficiary-icon/biggive-beneficiary-icon.css +4 -4
- package/dist/collection/components/biggive-biography-card/biggive-biography-card.css +9 -9
- package/dist/collection/components/biggive-boxed-content/biggive-boxed-content.css +1 -1
- package/dist/collection/components/biggive-button/biggive-button.css +5 -5
- package/dist/collection/components/biggive-call-to-action/biggive-call-to-action.css +1 -1
- package/dist/collection/components/biggive-campaign-card/biggive-campaign-card.css +1 -1
- package/dist/collection/components/biggive-campaign-highlights/biggive-campaign-highlights.css +1 -1
- package/dist/collection/components/biggive-carousel/biggive-carousel.css +1 -1
- package/dist/collection/components/biggive-category-icon/biggive-category-icon.css +4 -4
- package/dist/collection/components/biggive-form-field-text-input/biggive-text-input.js +1 -19
- package/dist/collection/components/biggive-form-field-text-input/biggive-text-input.stories.js +25 -0
- package/dist/collection/components/biggive-formatted-text/biggive-formatted-text.css +1 -1
- package/dist/collection/components/biggive-formatted-text/biggive-formatted-text.js +1 -1
- package/dist/collection/components/biggive-generic-icon/biggive-generic-icon.css +6 -6
- package/dist/collection/components/biggive-heading/biggive-heading.css +2 -2
- package/dist/collection/components/biggive-hero-image/biggive-hero-image.css +2 -2
- package/dist/collection/components/biggive-icon-button/biggive-icon-button.css +4 -4
- package/dist/collection/components/biggive-image-button/biggive-image-button.css +3 -3
- package/dist/collection/components/biggive-image-card/biggive-image-card.css +496 -0
- package/dist/collection/components/biggive-image-card/biggive-image-card.js +481 -0
- package/dist/collection/components/biggive-image-card/biggive-image-card.stories.js +80 -0
- package/dist/collection/components/biggive-image-feature/biggive-image-feature.css +1 -1
- package/dist/collection/components/biggive-misc-icon/biggive-misc-icon.css +6 -6
- package/dist/collection/components/biggive-page-section/biggive-page-section.css +1 -1
- package/dist/collection/components/biggive-progress-bar/biggive-progress-bar.css +1 -1
- package/dist/collection/components/biggive-quote/biggive-quote.css +2 -2
- package/dist/collection/components/biggive-sheet/biggive-sheet.css +4 -4
- package/dist/collection/components/biggive-social-icon/biggive-social-icon.css +8 -8
- package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.css +54 -9
- package/dist/collection/components/biggive-table/biggive-table.css +12 -6
- package/dist/collection/components/biggive-timeline/biggive-timeline.css +13 -13
- package/dist/collection/components/biggive-totalizer/biggive-totalizer.css +2 -2
- package/dist/collection/components/biggive-video-feature/biggive-video-feature.css +1 -1
- package/dist/components/biggive-accordion.js +1 -1
- package/dist/components/biggive-article-card.js +1 -1
- package/dist/components/biggive-basic-card.js +1 -1
- package/dist/components/biggive-beneficiary-icon.js +1 -1
- package/dist/components/biggive-biography-card.js +1 -1
- package/dist/components/biggive-boxed-content.js +1 -1
- package/dist/components/biggive-button2.js +1 -1
- package/dist/components/biggive-call-to-action.js +1 -1
- package/dist/components/biggive-campaign-card.js +1 -1
- package/dist/components/biggive-campaign-highlights.js +1 -1
- package/dist/components/biggive-carousel2.js +1 -1
- package/dist/components/biggive-category-icon.js +1 -1
- package/dist/components/biggive-formatted-text.js +2 -2
- package/dist/components/biggive-generic-icon2.js +1 -1
- package/dist/components/biggive-heading.js +1 -1
- package/dist/components/biggive-hero-image.js +1 -1
- package/dist/components/biggive-icon-button.js +1 -1
- package/dist/components/biggive-image-button.js +1 -1
- package/dist/components/biggive-image-card.d.ts +11 -0
- package/dist/components/biggive-image-card.js +100 -0
- package/dist/components/biggive-image-feature.js +1 -1
- package/dist/components/biggive-misc-icon2.js +1 -1
- package/dist/components/biggive-page-section.js +1 -1
- package/dist/components/biggive-progress-bar2.js +1 -1
- package/dist/components/biggive-quote.js +1 -1
- package/dist/components/biggive-sheet.js +1 -1
- package/dist/components/biggive-social-icon2.js +1 -1
- package/dist/components/biggive-tabbed-content.js +1 -1
- package/dist/components/biggive-table.js +1 -1
- package/dist/components/biggive-text-input.js +2 -4
- package/dist/components/biggive-timeline.js +1 -1
- package/dist/components/biggive-totalizer.js +1 -1
- package/dist/components/biggive-video-feature.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/esm/biggive-accordion_42.entry.js +27 -28
- package/dist/esm/biggive-basic-card.entry.js +1 -1
- package/dist/esm/biggive-beneficiary-icon.entry.js +1 -1
- package/dist/esm/biggive-boxed-content.entry.js +1 -1
- package/dist/esm/biggive-category-icon.entry.js +1 -1
- package/dist/esm/biggive-image-card.entry.js +53 -0
- package/dist/esm/biggive-table.entry.js +1 -1
- package/dist/esm/biggive.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/biggive-form-field-text-input/biggive-text-input.d.ts +0 -4
- package/dist/types/components/biggive-form-field-text-input/biggive-text-input.stories.d.ts +5 -0
- 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 +52 -0
- package/dist/types/components.d.ts +57 -8
- package/hydrate/index.js +115 -35
- package/package.json +1 -1
- package/dist/biggive/p-b9acc214.entry.js +0 -1
|
@@ -0,0 +1,481 @@
|
|
|
1
|
+
import { h } from '@stencil/core';
|
|
2
|
+
export class BiggiveImageCard {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.spaceBelow = 0;
|
|
5
|
+
this.backgroundColour = 'white';
|
|
6
|
+
this.backgroundImageUrl = '';
|
|
7
|
+
this.slug = undefined;
|
|
8
|
+
this.slugColour = 'black';
|
|
9
|
+
this.date = undefined;
|
|
10
|
+
this.dateColour = 'black';
|
|
11
|
+
this.mainTitle = undefined;
|
|
12
|
+
this.mainTitleColour = 'black';
|
|
13
|
+
this.mainImageUrl = undefined;
|
|
14
|
+
this.mainImageAltText = undefined;
|
|
15
|
+
this.image1Url = undefined;
|
|
16
|
+
this.image1AltText = undefined;
|
|
17
|
+
this.image2Url = undefined;
|
|
18
|
+
this.image2AltText = undefined;
|
|
19
|
+
this.imageLabel = undefined;
|
|
20
|
+
this.imageLabelColour = 'black';
|
|
21
|
+
this.buttonLabel = undefined;
|
|
22
|
+
this.buttonUrl = undefined;
|
|
23
|
+
this.buttonColour = 'black';
|
|
24
|
+
this.clipBottomLeftCorner = true;
|
|
25
|
+
this.clipTopRightCorner = true;
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
return (h("div", { class: 'container space-below-' + this.spaceBelow }, h("div", { class: 'sleeve background-colour-' +
|
|
29
|
+
this.backgroundColour +
|
|
30
|
+
' text-colour-black ' +
|
|
31
|
+
' slug-colour-' +
|
|
32
|
+
this.slugColour +
|
|
33
|
+
' date-colour-' +
|
|
34
|
+
this.dateColour +
|
|
35
|
+
' main-title-colour-' +
|
|
36
|
+
this.mainTitleColour +
|
|
37
|
+
' image-label-colour-' +
|
|
38
|
+
this.imageLabelColour +
|
|
39
|
+
' button-colour' +
|
|
40
|
+
this.buttonColour +
|
|
41
|
+
' clip-bottom-left-corner-' +
|
|
42
|
+
this.clipBottomLeftCorner +
|
|
43
|
+
' clip-top-right-corner-' +
|
|
44
|
+
this.clipTopRightCorner, style: { 'background-image': "url('" + this.backgroundImageUrl + "')" } }, h("div", { class: "content-wrap" }, h("div", { class: "meta" }, this.slug != '' ? h("div", { class: "slug text-colour-primary" }, this.slug) : null, this.date != '' ? h("div", { class: "date" }, this.date) : null), this.mainImageUrl != '' ? (h("div", { class: "main-image-container" }, h("div", { class: "image-wrap" }, h("img", { src: this.mainImageUrl, alt: this.mainImageAltText })))) : null, h("h3", { class: "title" }, h("a", { href: this.buttonUrl }, this.mainTitle)), this.image1Url != '' || this.image2Url != '' ? (h("div", { class: "image-group" }, this.image1Url != '' ? (h("div", { class: "image-container" }, h("div", { class: "image-wrap", style: { 'background-image': "url('" + this.image1Url + "')" } }, h("img", { src: this.image1Url, alt: this.image1AltText })))) : null, this.image2Url != '' ? (h("div", { class: "image-container" }, h("div", { class: "image-wrap", style: { 'background-image': "url('" + this.image2Url + "')" } }, h("img", { src: this.image2Url, alt: this.image2AltText })))) : null)) : null, this.imageLabel != '' ? h("div", { class: "image-label" }, this.imageLabel) : null, this.buttonLabel != null && this.buttonUrl != null ? (h("div", { class: "button-wrap align-right" }, h("biggive-button", { "colour-scheme": 'clear-' + this.buttonColour, url: this.buttonUrl, label: this.buttonLabel }))) : null))));
|
|
45
|
+
}
|
|
46
|
+
static get is() { return "biggive-image-card"; }
|
|
47
|
+
static get encapsulation() { return "shadow"; }
|
|
48
|
+
static get originalStyleUrls() {
|
|
49
|
+
return {
|
|
50
|
+
"$": ["biggive-image-card.scss"]
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
static get styleUrls() {
|
|
54
|
+
return {
|
|
55
|
+
"$": ["biggive-image-card.css"]
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
static get properties() {
|
|
59
|
+
return {
|
|
60
|
+
"spaceBelow": {
|
|
61
|
+
"type": "number",
|
|
62
|
+
"mutable": false,
|
|
63
|
+
"complexType": {
|
|
64
|
+
"original": "spacingOption",
|
|
65
|
+
"resolved": "0 | 1 | 2 | 3 | 4 | 5 | 6",
|
|
66
|
+
"references": {
|
|
67
|
+
"spacingOption": {
|
|
68
|
+
"location": "import",
|
|
69
|
+
"path": "../../globals/spacing-option"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"required": false,
|
|
74
|
+
"optional": false,
|
|
75
|
+
"docs": {
|
|
76
|
+
"tags": [],
|
|
77
|
+
"text": ""
|
|
78
|
+
},
|
|
79
|
+
"attribute": "space-below",
|
|
80
|
+
"reflect": false,
|
|
81
|
+
"defaultValue": "0"
|
|
82
|
+
},
|
|
83
|
+
"backgroundColour": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"mutable": false,
|
|
86
|
+
"complexType": {
|
|
87
|
+
"original": "brandColour",
|
|
88
|
+
"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\"",
|
|
89
|
+
"references": {
|
|
90
|
+
"brandColour": {
|
|
91
|
+
"location": "import",
|
|
92
|
+
"path": "../../globals/brand-colour"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"required": false,
|
|
97
|
+
"optional": false,
|
|
98
|
+
"docs": {
|
|
99
|
+
"tags": [],
|
|
100
|
+
"text": ""
|
|
101
|
+
},
|
|
102
|
+
"attribute": "background-colour",
|
|
103
|
+
"reflect": false,
|
|
104
|
+
"defaultValue": "'white'"
|
|
105
|
+
},
|
|
106
|
+
"backgroundImageUrl": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"mutable": false,
|
|
109
|
+
"complexType": {
|
|
110
|
+
"original": "string",
|
|
111
|
+
"resolved": "string",
|
|
112
|
+
"references": {}
|
|
113
|
+
},
|
|
114
|
+
"required": false,
|
|
115
|
+
"optional": false,
|
|
116
|
+
"docs": {
|
|
117
|
+
"tags": [],
|
|
118
|
+
"text": ""
|
|
119
|
+
},
|
|
120
|
+
"attribute": "background-image-url",
|
|
121
|
+
"reflect": false,
|
|
122
|
+
"defaultValue": "''"
|
|
123
|
+
},
|
|
124
|
+
"slug": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"mutable": false,
|
|
127
|
+
"complexType": {
|
|
128
|
+
"original": "string",
|
|
129
|
+
"resolved": "string",
|
|
130
|
+
"references": {}
|
|
131
|
+
},
|
|
132
|
+
"required": false,
|
|
133
|
+
"optional": false,
|
|
134
|
+
"docs": {
|
|
135
|
+
"tags": [],
|
|
136
|
+
"text": ""
|
|
137
|
+
},
|
|
138
|
+
"attribute": "slug",
|
|
139
|
+
"reflect": false
|
|
140
|
+
},
|
|
141
|
+
"slugColour": {
|
|
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": "slug-colour",
|
|
161
|
+
"reflect": false,
|
|
162
|
+
"defaultValue": "'black'"
|
|
163
|
+
},
|
|
164
|
+
"date": {
|
|
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": "date",
|
|
179
|
+
"reflect": false
|
|
180
|
+
},
|
|
181
|
+
"dateColour": {
|
|
182
|
+
"type": "string",
|
|
183
|
+
"mutable": false,
|
|
184
|
+
"complexType": {
|
|
185
|
+
"original": "brandColour",
|
|
186
|
+
"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\"",
|
|
187
|
+
"references": {
|
|
188
|
+
"brandColour": {
|
|
189
|
+
"location": "import",
|
|
190
|
+
"path": "../../globals/brand-colour"
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"required": false,
|
|
195
|
+
"optional": false,
|
|
196
|
+
"docs": {
|
|
197
|
+
"tags": [],
|
|
198
|
+
"text": ""
|
|
199
|
+
},
|
|
200
|
+
"attribute": "date-colour",
|
|
201
|
+
"reflect": false,
|
|
202
|
+
"defaultValue": "'black'"
|
|
203
|
+
},
|
|
204
|
+
"mainTitle": {
|
|
205
|
+
"type": "string",
|
|
206
|
+
"mutable": false,
|
|
207
|
+
"complexType": {
|
|
208
|
+
"original": "string",
|
|
209
|
+
"resolved": "string",
|
|
210
|
+
"references": {}
|
|
211
|
+
},
|
|
212
|
+
"required": false,
|
|
213
|
+
"optional": false,
|
|
214
|
+
"docs": {
|
|
215
|
+
"tags": [],
|
|
216
|
+
"text": ""
|
|
217
|
+
},
|
|
218
|
+
"attribute": "main-title",
|
|
219
|
+
"reflect": false
|
|
220
|
+
},
|
|
221
|
+
"mainTitleColour": {
|
|
222
|
+
"type": "string",
|
|
223
|
+
"mutable": false,
|
|
224
|
+
"complexType": {
|
|
225
|
+
"original": "brandColour",
|
|
226
|
+
"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\"",
|
|
227
|
+
"references": {
|
|
228
|
+
"brandColour": {
|
|
229
|
+
"location": "import",
|
|
230
|
+
"path": "../../globals/brand-colour"
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"required": false,
|
|
235
|
+
"optional": false,
|
|
236
|
+
"docs": {
|
|
237
|
+
"tags": [],
|
|
238
|
+
"text": ""
|
|
239
|
+
},
|
|
240
|
+
"attribute": "main-title-colour",
|
|
241
|
+
"reflect": false,
|
|
242
|
+
"defaultValue": "'black'"
|
|
243
|
+
},
|
|
244
|
+
"mainImageUrl": {
|
|
245
|
+
"type": "string",
|
|
246
|
+
"mutable": false,
|
|
247
|
+
"complexType": {
|
|
248
|
+
"original": "string",
|
|
249
|
+
"resolved": "string",
|
|
250
|
+
"references": {}
|
|
251
|
+
},
|
|
252
|
+
"required": false,
|
|
253
|
+
"optional": false,
|
|
254
|
+
"docs": {
|
|
255
|
+
"tags": [],
|
|
256
|
+
"text": ""
|
|
257
|
+
},
|
|
258
|
+
"attribute": "main-image-url",
|
|
259
|
+
"reflect": false
|
|
260
|
+
},
|
|
261
|
+
"mainImageAltText": {
|
|
262
|
+
"type": "string",
|
|
263
|
+
"mutable": false,
|
|
264
|
+
"complexType": {
|
|
265
|
+
"original": "string",
|
|
266
|
+
"resolved": "string",
|
|
267
|
+
"references": {}
|
|
268
|
+
},
|
|
269
|
+
"required": false,
|
|
270
|
+
"optional": false,
|
|
271
|
+
"docs": {
|
|
272
|
+
"tags": [],
|
|
273
|
+
"text": ""
|
|
274
|
+
},
|
|
275
|
+
"attribute": "main-image-alt-text",
|
|
276
|
+
"reflect": false
|
|
277
|
+
},
|
|
278
|
+
"image1Url": {
|
|
279
|
+
"type": "string",
|
|
280
|
+
"mutable": false,
|
|
281
|
+
"complexType": {
|
|
282
|
+
"original": "string",
|
|
283
|
+
"resolved": "string",
|
|
284
|
+
"references": {}
|
|
285
|
+
},
|
|
286
|
+
"required": false,
|
|
287
|
+
"optional": false,
|
|
288
|
+
"docs": {
|
|
289
|
+
"tags": [],
|
|
290
|
+
"text": ""
|
|
291
|
+
},
|
|
292
|
+
"attribute": "image-1-url",
|
|
293
|
+
"reflect": false
|
|
294
|
+
},
|
|
295
|
+
"image1AltText": {
|
|
296
|
+
"type": "string",
|
|
297
|
+
"mutable": false,
|
|
298
|
+
"complexType": {
|
|
299
|
+
"original": "string",
|
|
300
|
+
"resolved": "string",
|
|
301
|
+
"references": {}
|
|
302
|
+
},
|
|
303
|
+
"required": false,
|
|
304
|
+
"optional": false,
|
|
305
|
+
"docs": {
|
|
306
|
+
"tags": [],
|
|
307
|
+
"text": ""
|
|
308
|
+
},
|
|
309
|
+
"attribute": "image-1-alt-text",
|
|
310
|
+
"reflect": false
|
|
311
|
+
},
|
|
312
|
+
"image2Url": {
|
|
313
|
+
"type": "string",
|
|
314
|
+
"mutable": false,
|
|
315
|
+
"complexType": {
|
|
316
|
+
"original": "string",
|
|
317
|
+
"resolved": "string",
|
|
318
|
+
"references": {}
|
|
319
|
+
},
|
|
320
|
+
"required": false,
|
|
321
|
+
"optional": false,
|
|
322
|
+
"docs": {
|
|
323
|
+
"tags": [],
|
|
324
|
+
"text": ""
|
|
325
|
+
},
|
|
326
|
+
"attribute": "image-2-url",
|
|
327
|
+
"reflect": false
|
|
328
|
+
},
|
|
329
|
+
"image2AltText": {
|
|
330
|
+
"type": "string",
|
|
331
|
+
"mutable": false,
|
|
332
|
+
"complexType": {
|
|
333
|
+
"original": "string",
|
|
334
|
+
"resolved": "string",
|
|
335
|
+
"references": {}
|
|
336
|
+
},
|
|
337
|
+
"required": false,
|
|
338
|
+
"optional": false,
|
|
339
|
+
"docs": {
|
|
340
|
+
"tags": [],
|
|
341
|
+
"text": ""
|
|
342
|
+
},
|
|
343
|
+
"attribute": "image-2-alt-text",
|
|
344
|
+
"reflect": false
|
|
345
|
+
},
|
|
346
|
+
"imageLabel": {
|
|
347
|
+
"type": "string",
|
|
348
|
+
"mutable": false,
|
|
349
|
+
"complexType": {
|
|
350
|
+
"original": "string",
|
|
351
|
+
"resolved": "string",
|
|
352
|
+
"references": {}
|
|
353
|
+
},
|
|
354
|
+
"required": false,
|
|
355
|
+
"optional": false,
|
|
356
|
+
"docs": {
|
|
357
|
+
"tags": [],
|
|
358
|
+
"text": ""
|
|
359
|
+
},
|
|
360
|
+
"attribute": "image-label",
|
|
361
|
+
"reflect": false
|
|
362
|
+
},
|
|
363
|
+
"imageLabelColour": {
|
|
364
|
+
"type": "string",
|
|
365
|
+
"mutable": false,
|
|
366
|
+
"complexType": {
|
|
367
|
+
"original": "brandColour",
|
|
368
|
+
"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\"",
|
|
369
|
+
"references": {
|
|
370
|
+
"brandColour": {
|
|
371
|
+
"location": "import",
|
|
372
|
+
"path": "../../globals/brand-colour"
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
"required": false,
|
|
377
|
+
"optional": false,
|
|
378
|
+
"docs": {
|
|
379
|
+
"tags": [],
|
|
380
|
+
"text": ""
|
|
381
|
+
},
|
|
382
|
+
"attribute": "image-label-colour",
|
|
383
|
+
"reflect": false,
|
|
384
|
+
"defaultValue": "'black'"
|
|
385
|
+
},
|
|
386
|
+
"buttonLabel": {
|
|
387
|
+
"type": "string",
|
|
388
|
+
"mutable": false,
|
|
389
|
+
"complexType": {
|
|
390
|
+
"original": "string",
|
|
391
|
+
"resolved": "string",
|
|
392
|
+
"references": {}
|
|
393
|
+
},
|
|
394
|
+
"required": false,
|
|
395
|
+
"optional": false,
|
|
396
|
+
"docs": {
|
|
397
|
+
"tags": [],
|
|
398
|
+
"text": ""
|
|
399
|
+
},
|
|
400
|
+
"attribute": "button-label",
|
|
401
|
+
"reflect": false
|
|
402
|
+
},
|
|
403
|
+
"buttonUrl": {
|
|
404
|
+
"type": "string",
|
|
405
|
+
"mutable": false,
|
|
406
|
+
"complexType": {
|
|
407
|
+
"original": "string",
|
|
408
|
+
"resolved": "string",
|
|
409
|
+
"references": {}
|
|
410
|
+
},
|
|
411
|
+
"required": false,
|
|
412
|
+
"optional": false,
|
|
413
|
+
"docs": {
|
|
414
|
+
"tags": [],
|
|
415
|
+
"text": ""
|
|
416
|
+
},
|
|
417
|
+
"attribute": "button-url",
|
|
418
|
+
"reflect": false
|
|
419
|
+
},
|
|
420
|
+
"buttonColour": {
|
|
421
|
+
"type": "string",
|
|
422
|
+
"mutable": false,
|
|
423
|
+
"complexType": {
|
|
424
|
+
"original": "brandColour",
|
|
425
|
+
"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\"",
|
|
426
|
+
"references": {
|
|
427
|
+
"brandColour": {
|
|
428
|
+
"location": "import",
|
|
429
|
+
"path": "../../globals/brand-colour"
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
"required": false,
|
|
434
|
+
"optional": false,
|
|
435
|
+
"docs": {
|
|
436
|
+
"tags": [],
|
|
437
|
+
"text": ""
|
|
438
|
+
},
|
|
439
|
+
"attribute": "button-colour",
|
|
440
|
+
"reflect": false,
|
|
441
|
+
"defaultValue": "'black'"
|
|
442
|
+
},
|
|
443
|
+
"clipBottomLeftCorner": {
|
|
444
|
+
"type": "boolean",
|
|
445
|
+
"mutable": false,
|
|
446
|
+
"complexType": {
|
|
447
|
+
"original": "boolean",
|
|
448
|
+
"resolved": "boolean",
|
|
449
|
+
"references": {}
|
|
450
|
+
},
|
|
451
|
+
"required": false,
|
|
452
|
+
"optional": false,
|
|
453
|
+
"docs": {
|
|
454
|
+
"tags": [],
|
|
455
|
+
"text": ""
|
|
456
|
+
},
|
|
457
|
+
"attribute": "clip-bottom-left-corner",
|
|
458
|
+
"reflect": false,
|
|
459
|
+
"defaultValue": "true"
|
|
460
|
+
},
|
|
461
|
+
"clipTopRightCorner": {
|
|
462
|
+
"type": "boolean",
|
|
463
|
+
"mutable": false,
|
|
464
|
+
"complexType": {
|
|
465
|
+
"original": "boolean",
|
|
466
|
+
"resolved": "boolean",
|
|
467
|
+
"references": {}
|
|
468
|
+
},
|
|
469
|
+
"required": false,
|
|
470
|
+
"optional": false,
|
|
471
|
+
"docs": {
|
|
472
|
+
"tags": [],
|
|
473
|
+
"text": ""
|
|
474
|
+
},
|
|
475
|
+
"attribute": "clip-top-right-corner",
|
|
476
|
+
"reflect": false,
|
|
477
|
+
"defaultValue": "true"
|
|
478
|
+
}
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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
|
+
backgroundColourHover: {
|
|
19
|
+
name: 'Hover background colour',
|
|
20
|
+
control: {
|
|
21
|
+
type: 'select',
|
|
22
|
+
options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black', 'transparent'],
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
slug: {
|
|
26
|
+
name: 'Slug',
|
|
27
|
+
},
|
|
28
|
+
date: {
|
|
29
|
+
name: 'Date',
|
|
30
|
+
},
|
|
31
|
+
mainTitle: {
|
|
32
|
+
name: 'Title',
|
|
33
|
+
},
|
|
34
|
+
imageUrl: {
|
|
35
|
+
name: 'Image URL',
|
|
36
|
+
},
|
|
37
|
+
imageAltText: {
|
|
38
|
+
name: 'Image alt text',
|
|
39
|
+
},
|
|
40
|
+
imageLabel: {
|
|
41
|
+
name: 'Image Label',
|
|
42
|
+
},
|
|
43
|
+
buttonUrl: {
|
|
44
|
+
name: 'Button URL',
|
|
45
|
+
},
|
|
46
|
+
buttonLabel: {
|
|
47
|
+
name: 'Button label',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
const Template = (args) => `
|
|
52
|
+
<biggive-image-card
|
|
53
|
+
space-below="${args.spaceBelow}"
|
|
54
|
+
background-colour="${args.backgroundColour}"
|
|
55
|
+
background-colour-hover="${args.backgroundColourHover}"
|
|
56
|
+
slug="${args.slug}"
|
|
57
|
+
date="${args.date}"
|
|
58
|
+
main-title="${args.mainTitle}"
|
|
59
|
+
image-url="${args.imageUrl}"
|
|
60
|
+
image-alt-text="${args.imageAltText}"
|
|
61
|
+
image-label="${args.imageLabel}"
|
|
62
|
+
button-label="${args.buttonLabel}"
|
|
63
|
+
button-url="${args.buttonUrl}"
|
|
64
|
+
>
|
|
65
|
+
</biggive-image-card>
|
|
66
|
+
`;
|
|
67
|
+
export const ImageCardComponent = Template.bind({});
|
|
68
|
+
ImageCardComponent.args = {
|
|
69
|
+
spaceBelow: 4,
|
|
70
|
+
backgroundColour: 'white',
|
|
71
|
+
backgroundColourHover: 'tertiary',
|
|
72
|
+
slug: '• Blog Post • Mental Health',
|
|
73
|
+
date: 'September 2022',
|
|
74
|
+
mainTitle: 'Sample main title',
|
|
75
|
+
imageUrl: 'https://media.istockphoto.com/vectors/childish-seamless-dotted-pattern-with-colorful-doodle-letters-fun-vector-id1208462693',
|
|
76
|
+
imageAltText: 'Image description',
|
|
77
|
+
imageLabel: 'By Joe Bloggs',
|
|
78
|
+
buttonUrl: '#',
|
|
79
|
+
buttonLabel: 'Click here',
|
|
80
|
+
};
|
|
@@ -76,7 +76,7 @@ a:hover {
|
|
|
76
76
|
|
|
77
77
|
.background-colour-hover-grey-light:hover,
|
|
78
78
|
.background-colour-grey-light {
|
|
79
|
-
background-color: #
|
|
79
|
+
background-color: #F6F6F6;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
.background-colour-hover-grey-medium:hover,
|
|
@@ -142,7 +142,7 @@ a:hover {
|
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
.fill-grey-light {
|
|
145
|
-
fill: #
|
|
145
|
+
fill: #F6F6F6;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
.fill-grey-medium {
|
|
@@ -243,10 +243,10 @@ a:hover {
|
|
|
243
243
|
fill: #D7D7D7;
|
|
244
244
|
}
|
|
245
245
|
.misc-icon-item.colour-scheme-black {
|
|
246
|
-
background-color: #
|
|
246
|
+
background-color: #F6F6F6;
|
|
247
247
|
}
|
|
248
248
|
.misc-icon-item.colour-scheme-black svg {
|
|
249
|
-
fill: #
|
|
249
|
+
fill: #F6F6F6;
|
|
250
250
|
}
|
|
251
251
|
.misc-icon-item.colour-scheme-black {
|
|
252
252
|
background-color: #8A8A8A;
|
|
@@ -363,10 +363,10 @@ a:hover {
|
|
|
363
363
|
fill: #D7D7D7;
|
|
364
364
|
}
|
|
365
365
|
.misc-icon-item.colour-scheme-black {
|
|
366
|
-
background-color: #
|
|
366
|
+
background-color: #F6F6F6;
|
|
367
367
|
}
|
|
368
368
|
.misc-icon-item.colour-scheme-black svg {
|
|
369
|
-
fill: #
|
|
369
|
+
fill: #F6F6F6;
|
|
370
370
|
}
|
|
371
371
|
.misc-icon-item.colour-scheme-black {
|
|
372
372
|
background-color: #8A8A8A;
|
|
@@ -347,7 +347,7 @@ a:hover {
|
|
|
347
347
|
.container.background-color-grey-light:after,
|
|
348
348
|
.container.background-color-grey-light .sleeve:before,
|
|
349
349
|
.container.background-color-grey-light .sleeve {
|
|
350
|
-
background-color: #
|
|
350
|
+
background-color: #F6F6F6;
|
|
351
351
|
color: #000000;
|
|
352
352
|
}
|
|
353
353
|
|
|
@@ -132,7 +132,7 @@ a:hover {
|
|
|
132
132
|
|
|
133
133
|
.text-colour-hover-grey-light:hover,
|
|
134
134
|
.text-colour-grey-light {
|
|
135
|
-
color: #
|
|
135
|
+
color: #F6F6F6;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
.text-colour-hover-grey-medium:hover,
|
|
@@ -210,7 +210,7 @@ a:hover {
|
|
|
210
210
|
fill: #D7D7D7;
|
|
211
211
|
}
|
|
212
212
|
.container.quote-icon-colour-grey-light .image-wrap path {
|
|
213
|
-
fill: #
|
|
213
|
+
fill: #F6F6F6;
|
|
214
214
|
}
|
|
215
215
|
.container.quote-icon-colour-grey-medium .image-wrap path {
|
|
216
216
|
fill: #8A8A8A;
|
|
@@ -76,7 +76,7 @@ a:hover {
|
|
|
76
76
|
|
|
77
77
|
.background-colour-hover-grey-light:hover,
|
|
78
78
|
.background-colour-grey-light {
|
|
79
|
-
background-color: #
|
|
79
|
+
background-color: #F6F6F6;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
.background-colour-hover-grey-medium:hover,
|
|
@@ -151,7 +151,7 @@ a:hover {
|
|
|
151
151
|
|
|
152
152
|
.text-colour-hover-grey-light:hover,
|
|
153
153
|
.text-colour-grey-light {
|
|
154
|
-
color: #
|
|
154
|
+
color: #F6F6F6;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
.text-colour-hover-grey-medium:hover,
|
|
@@ -217,7 +217,7 @@ a:hover {
|
|
|
217
217
|
}
|
|
218
218
|
|
|
219
219
|
.fill-grey-light {
|
|
220
|
-
fill: #
|
|
220
|
+
fill: #F6F6F6;
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
.fill-grey-medium {
|
|
@@ -312,7 +312,7 @@ a:hover {
|
|
|
312
312
|
fill: #D7D7D7;
|
|
313
313
|
}
|
|
314
314
|
.container .popup .header .back-link .svg-wrap.colour-grey-light svg path {
|
|
315
|
-
fill: #
|
|
315
|
+
fill: #F6F6F6;
|
|
316
316
|
}
|
|
317
317
|
.container .popup .header .back-link .svg-wrap.colour-grey-medium svg path {
|
|
318
318
|
fill: #8A8A8A;
|