@biggive/components 202303201542.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 (155) 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} +444 -31
  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-misc-icon/biggive-misc-icon.css +1 -1
  64. package/dist/collection/components/biggive-page-section/biggive-page-section.css +33 -1
  65. package/dist/collection/components/biggive-sheet/biggive-sheet.css +379 -0
  66. package/dist/collection/components/biggive-sheet/biggive-sheet.js +111 -0
  67. package/dist/collection/components/biggive-sheet/biggive-sheet.stories.js +34 -0
  68. package/dist/collection/components/biggive-social-icon/biggive-social-icon.css +1 -1
  69. package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.css +9 -5
  70. package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.js +33 -3
  71. package/dist/collection/components/biggive-table/biggive-table.css +1 -1
  72. package/dist/collection/components/biggive-timeline/biggive-timeline.css +9 -11
  73. package/dist/collection/components/biggive-timeline/biggive-timeline.js +38 -5
  74. package/dist/collection/components/biggive-tipping-slider/biggive-tipping-slider.css +1 -1
  75. package/dist/collection/components/biggive-tipping-slider/biggive-tipping-slider.js +1 -1
  76. package/dist/collection/components/biggive-totalizer/biggive-totalizer.css +1 -1
  77. package/dist/components/biggive-accordion.js +1 -1
  78. package/dist/components/biggive-article-card.js +44 -9
  79. package/dist/components/biggive-basic-card.js +1 -1
  80. package/dist/components/biggive-beneficiary-icon.js +1 -1
  81. package/dist/components/biggive-biography-card.js +40 -3
  82. package/dist/components/biggive-boxed-content.js +1 -1
  83. package/dist/components/biggive-button2.js +1 -1
  84. package/dist/components/biggive-carousel.js +1 -83
  85. package/dist/components/biggive-carousel2.js +92 -0
  86. package/dist/components/biggive-category-icon.js +1 -1
  87. package/dist/components/biggive-filtered-carousel.d.ts +11 -0
  88. package/dist/components/biggive-filtered-carousel.js +99 -0
  89. package/dist/components/biggive-generic-icon.d.ts +11 -0
  90. package/dist/components/biggive-generic-icon.js +6 -0
  91. package/dist/components/biggive-generic-icon2.js +59 -0
  92. package/dist/components/biggive-grid.js +5 -3
  93. package/dist/components/biggive-icon-button.d.ts +11 -0
  94. package/dist/components/biggive-icon-button.js +89 -0
  95. package/dist/components/biggive-image-button.d.ts +11 -0
  96. package/dist/components/biggive-image-button.js +83 -0
  97. package/dist/components/biggive-misc-icon2.js +1 -1
  98. package/dist/components/biggive-page-section.js +1 -1
  99. package/dist/components/biggive-sheet.d.ts +11 -0
  100. package/dist/components/biggive-sheet.js +60 -0
  101. package/dist/components/biggive-social-icon2.js +1 -1
  102. package/dist/components/biggive-tabbed-content.js +34 -4
  103. package/dist/components/biggive-table.js +1 -1
  104. package/dist/components/biggive-timeline.js +39 -6
  105. package/dist/components/biggive-tipping-slider.js +2 -2
  106. package/dist/components/biggive-totalizer.js +1 -1
  107. package/dist/components/index.d.ts +5 -0
  108. package/dist/components/index.js +5 -0
  109. package/dist/esm/{biggive-accordion_35.entry.js → biggive-accordion_43.entry.js} +437 -32
  110. package/dist/esm/biggive-basic-card.entry.js +2 -2
  111. package/dist/esm/biggive-beneficiary-icon.entry.js +2 -2
  112. package/dist/esm/biggive-boxed-content.entry.js +2 -2
  113. package/dist/esm/biggive-category-icon.entry.js +2 -2
  114. package/dist/esm/biggive-form.entry.js +1 -1
  115. package/dist/esm/biggive-header.entry.js +1 -1
  116. package/dist/esm/biggive-icon-group.entry.js +1 -1
  117. package/dist/esm/biggive-nav-group.entry.js +1 -1
  118. package/dist/esm/biggive-nav-item.entry.js +1 -1
  119. package/dist/esm/biggive-popup-standalone.entry.js +1 -1
  120. package/dist/esm/biggive-search.entry.js +1 -1
  121. package/dist/esm/biggive-table.entry.js +2 -2
  122. package/dist/esm/biggive-text-input.entry.js +1 -1
  123. package/dist/esm/biggive-video.entry.js +1 -1
  124. package/dist/esm/biggive.js +2 -2
  125. package/dist/esm/{index-801eebfb.js → index-341903f8.js} +3 -0
  126. package/dist/esm/loader.js +2 -2
  127. package/dist/types/components/biggive-article-card/biggive-article-card.d.ts +17 -42
  128. package/dist/types/components/biggive-biography-card/biggive-biography-card.d.ts +12 -13
  129. package/dist/types/components/biggive-carousel/biggive-carousel.d.ts +2 -1
  130. package/dist/types/components/biggive-filtered-carousel/biggive-filtered-carousel.d.ts +12 -0
  131. package/dist/types/components/biggive-generic-icon/biggive-generic-icon.d.ts +10 -0
  132. package/dist/types/components/biggive-generic-icon/biggive-generic-icon.stories.d.ts +38 -0
  133. package/dist/types/components/biggive-grid/biggive-grid.d.ts +3 -7
  134. package/dist/types/components/biggive-icon-button/biggive-icon-button.d.ts +28 -0
  135. package/dist/types/components/biggive-icon-button/biggive-icon-button.stories.d.ts +81 -0
  136. package/dist/types/components/biggive-image-button/biggive-image-button.d.ts +28 -0
  137. package/dist/types/components/biggive-image-button/biggive-image-button.stories.d.ts +78 -0
  138. package/dist/types/components/biggive-sheet/biggive-sheet.d.ts +15 -0
  139. package/dist/types/components/biggive-sheet/biggive-sheet.stories.d.ts +21 -0
  140. package/dist/types/components/biggive-tabbed-content/biggive-tabbed-content.d.ts +3 -0
  141. package/dist/types/components/biggive-timeline/biggive-timeline.d.ts +3 -0
  142. package/dist/types/components.d.ts +229 -126
  143. package/hydrate/index.js +516 -50
  144. package/package.json +1 -1
  145. package/dist/biggive/p-28e16ef9.entry.js +0 -1
  146. package/dist/biggive/p-4a1ba0c4.entry.js +0 -1
  147. package/dist/biggive/p-4adb4dce.entry.js +0 -1
  148. package/dist/biggive/p-87edb8c6.entry.js +0 -1
  149. package/dist/biggive/p-8feb91ae.entry.js +0 -1
  150. package/dist/cjs/biggive-article-card.cjs.entry.js +0 -31
  151. package/dist/cjs/biggive-biography-card.cjs.entry.js +0 -23
  152. package/dist/cjs/biggive-formatted-text.cjs.entry.js +0 -22
  153. package/dist/esm/biggive-article-card.entry.js +0 -27
  154. package/dist/esm/biggive-biography-card.entry.js +0 -19
  155. package/dist/esm/biggive-formatted-text.entry.js +0 -18
@@ -2,12 +2,40 @@ import { h } from '@stencil/core';
2
2
  export class BiggiveBiographyCard {
3
3
  constructor() {
4
4
  this.spaceBelow = 0;
5
+ this.borderWidth = 0;
5
6
  this.imageUrl = '';
7
+ this.imageStyle = 'cover';
8
+ this.textColour = 'black';
9
+ this.backgroundColour = 'white';
6
10
  this.fullName = '';
7
11
  this.jobTitle = '';
12
+ this.textAlign = 'left';
13
+ this.ratio = '1,1.5';
14
+ this.circle = false;
15
+ this.rounded = false;
16
+ this.url = '';
8
17
  }
9
18
  render() {
10
- return (h("div", { class: 'container space-below-' + this.spaceBelow }, this.imageUrl != '' ? (h("div", { class: "image-wrap", style: { 'background-image': "url('" + this.imageUrl + "')" } }, h("img", { src: this.imageUrl, alt: this.fullName, title: this.fullName }))) : null, h("h3", { class: "full-name" }, this.fullName), h("div", { class: "job-title" }, this.jobTitle)));
19
+ if (this.url != '') {
20
+ return (h("div", { class: 'container space-below-' + this.spaceBelow + ' text-colour-' + this.textColour + ' text-align-' + this.textAlign }, h("a", { href: this.url }, h("div", { class: 'sleeve circle-' +
21
+ this.circle.toString() +
22
+ ' border-colour-' +
23
+ this.backgroundColour +
24
+ ' background-colour-' +
25
+ this.backgroundColour +
26
+ ' border-width-' +
27
+ this.borderWidth }, this.imageUrl != '' ? (h("div", { "data-ratio": this.ratio, class: 'image-wrap image-style-' + this.imageStyle + ' rounded-' + this.rounded.toString(), style: { 'background-image': "url('" + this.imageUrl + "')" } }, h("img", { src: this.imageUrl, alt: this.fullName, title: this.fullName }), h("div", { class: "circle" }, h("svg", { width: "24", height: "24", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M11 11v-11h1v11h11v1h-11v11h-1v-11h-11v-1h11z" }))))) : null), h("h3", { class: "full-name" }, this.fullName), h("div", { class: "job-title" }, this.jobTitle))));
28
+ }
29
+ else {
30
+ return (h("div", { class: 'container space-below-' + this.spaceBelow + ' text-colour-' + this.textColour + ' text-align-' + this.textAlign }, h("div", { class: 'sleeve circle-' +
31
+ this.circle.toString() +
32
+ ' border-colour-' +
33
+ this.backgroundColour +
34
+ ' background-colour-' +
35
+ this.backgroundColour +
36
+ ' border-width-' +
37
+ this.borderWidth }, this.imageUrl != '' ? (h("div", { "data-ratio": this.ratio, class: 'image-wrap image-style-' + this.imageStyle + ' rounded-' + this.rounded.toString(), style: { 'background-image': "url('" + this.imageUrl + "')" } }, h("img", { src: this.imageUrl, alt: this.fullName, title: this.fullName }))) : null), h("h3", { class: "full-name" }, this.fullName), h("div", { class: "job-title" }, this.jobTitle)));
38
+ }
11
39
  }
12
40
  static get is() { return "biggive-biography-card"; }
13
41
  static get encapsulation() { return "shadow"; }
@@ -27,20 +55,48 @@ export class BiggiveBiographyCard {
27
55
  "type": "number",
28
56
  "mutable": false,
29
57
  "complexType": {
30
- "original": "number",
31
- "resolved": "number",
32
- "references": {}
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
+ }
33
66
  },
34
67
  "required": false,
35
68
  "optional": false,
36
69
  "docs": {
37
70
  "tags": [],
38
- "text": "Space below component"
71
+ "text": ""
39
72
  },
40
73
  "attribute": "space-below",
41
74
  "reflect": false,
42
75
  "defaultValue": "0"
43
76
  },
77
+ "borderWidth": {
78
+ "type": "number",
79
+ "mutable": false,
80
+ "complexType": {
81
+ "original": "spacingOption",
82
+ "resolved": "0 | 1 | 2 | 3 | 4 | 5 | 6",
83
+ "references": {
84
+ "spacingOption": {
85
+ "location": "import",
86
+ "path": "../../globals/spacing-option"
87
+ }
88
+ }
89
+ },
90
+ "required": false,
91
+ "optional": false,
92
+ "docs": {
93
+ "tags": [],
94
+ "text": ""
95
+ },
96
+ "attribute": "border-width",
97
+ "reflect": false,
98
+ "defaultValue": "0"
99
+ },
44
100
  "imageUrl": {
45
101
  "type": "string",
46
102
  "mutable": false,
@@ -53,12 +109,76 @@ export class BiggiveBiographyCard {
53
109
  "optional": false,
54
110
  "docs": {
55
111
  "tags": [],
56
- "text": "Full URL of the main image."
112
+ "text": ""
57
113
  },
58
114
  "attribute": "image-url",
59
115
  "reflect": false,
60
116
  "defaultValue": "''"
61
117
  },
118
+ "imageStyle": {
119
+ "type": "string",
120
+ "mutable": false,
121
+ "complexType": {
122
+ "original": "'cover' | 'contain'",
123
+ "resolved": "\"contain\" | \"cover\"",
124
+ "references": {}
125
+ },
126
+ "required": false,
127
+ "optional": false,
128
+ "docs": {
129
+ "tags": [],
130
+ "text": ""
131
+ },
132
+ "attribute": "image-style",
133
+ "reflect": false,
134
+ "defaultValue": "'cover'"
135
+ },
136
+ "textColour": {
137
+ "type": "string",
138
+ "mutable": false,
139
+ "complexType": {
140
+ "original": "brandColour",
141
+ "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\"",
142
+ "references": {
143
+ "brandColour": {
144
+ "location": "import",
145
+ "path": "../../globals/brand-colour"
146
+ }
147
+ }
148
+ },
149
+ "required": false,
150
+ "optional": false,
151
+ "docs": {
152
+ "tags": [],
153
+ "text": ""
154
+ },
155
+ "attribute": "text-colour",
156
+ "reflect": false,
157
+ "defaultValue": "'black'"
158
+ },
159
+ "backgroundColour": {
160
+ "type": "string",
161
+ "mutable": false,
162
+ "complexType": {
163
+ "original": "brandColour",
164
+ "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\"",
165
+ "references": {
166
+ "brandColour": {
167
+ "location": "import",
168
+ "path": "../../globals/brand-colour"
169
+ }
170
+ }
171
+ },
172
+ "required": false,
173
+ "optional": false,
174
+ "docs": {
175
+ "tags": [],
176
+ "text": ""
177
+ },
178
+ "attribute": "background-colour",
179
+ "reflect": false,
180
+ "defaultValue": "'white'"
181
+ },
62
182
  "fullName": {
63
183
  "type": "string",
64
184
  "mutable": false,
@@ -71,7 +191,7 @@ export class BiggiveBiographyCard {
71
191
  "optional": false,
72
192
  "docs": {
73
193
  "tags": [],
74
- "text": "Job title"
194
+ "text": ""
75
195
  },
76
196
  "attribute": "full-name",
77
197
  "reflect": false,
@@ -89,11 +209,101 @@ export class BiggiveBiographyCard {
89
209
  "optional": false,
90
210
  "docs": {
91
211
  "tags": [],
92
- "text": "Job title"
212
+ "text": ""
93
213
  },
94
214
  "attribute": "job-title",
95
215
  "reflect": false,
96
216
  "defaultValue": "''"
217
+ },
218
+ "textAlign": {
219
+ "type": "string",
220
+ "mutable": false,
221
+ "complexType": {
222
+ "original": "'center' | 'left' | 'right'",
223
+ "resolved": "\"center\" | \"left\" | \"right\"",
224
+ "references": {}
225
+ },
226
+ "required": false,
227
+ "optional": false,
228
+ "docs": {
229
+ "tags": [],
230
+ "text": ""
231
+ },
232
+ "attribute": "text-align",
233
+ "reflect": false,
234
+ "defaultValue": "'left'"
235
+ },
236
+ "ratio": {
237
+ "type": "string",
238
+ "mutable": false,
239
+ "complexType": {
240
+ "original": "'1,1' | '1,1.5' | '1,2'",
241
+ "resolved": "\"1,1\" | \"1,1.5\" | \"1,2\"",
242
+ "references": {}
243
+ },
244
+ "required": false,
245
+ "optional": false,
246
+ "docs": {
247
+ "tags": [],
248
+ "text": ""
249
+ },
250
+ "attribute": "ratio",
251
+ "reflect": false,
252
+ "defaultValue": "'1,1.5'"
253
+ },
254
+ "circle": {
255
+ "type": "boolean",
256
+ "mutable": false,
257
+ "complexType": {
258
+ "original": "boolean",
259
+ "resolved": "boolean",
260
+ "references": {}
261
+ },
262
+ "required": false,
263
+ "optional": false,
264
+ "docs": {
265
+ "tags": [],
266
+ "text": ""
267
+ },
268
+ "attribute": "circle",
269
+ "reflect": false,
270
+ "defaultValue": "false"
271
+ },
272
+ "rounded": {
273
+ "type": "boolean",
274
+ "mutable": false,
275
+ "complexType": {
276
+ "original": "boolean",
277
+ "resolved": "boolean",
278
+ "references": {}
279
+ },
280
+ "required": false,
281
+ "optional": false,
282
+ "docs": {
283
+ "tags": [],
284
+ "text": ""
285
+ },
286
+ "attribute": "rounded",
287
+ "reflect": false,
288
+ "defaultValue": "false"
289
+ },
290
+ "url": {
291
+ "type": "string",
292
+ "mutable": false,
293
+ "complexType": {
294
+ "original": "string",
295
+ "resolved": "string",
296
+ "references": {}
297
+ },
298
+ "required": false,
299
+ "optional": false,
300
+ "docs": {
301
+ "tags": [],
302
+ "text": ""
303
+ },
304
+ "attribute": "url",
305
+ "reflect": false,
306
+ "defaultValue": "''"
97
307
  }
98
308
  };
99
309
  }
@@ -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,
@@ -226,6 +226,46 @@ a:hover {
226
226
  background-color: #FFFFFF;
227
227
  }
228
228
 
229
+ .button-grey-extra-light {
230
+ color: #000000;
231
+ background-color: #D7D7D7;
232
+ border-color: #D7D7D7;
233
+ }
234
+ .button-grey-extra-light:hover {
235
+ color: #D7D7D7;
236
+ background-color: #000000;
237
+ }
238
+
239
+ .button-grey-light {
240
+ color: #000000;
241
+ background-color: #E8E8E8;
242
+ border-color: #E8E8E8;
243
+ }
244
+ .button-grey-light:hover {
245
+ color: #E8E8E8;
246
+ background-color: #000000;
247
+ }
248
+
249
+ .button-grey-medium {
250
+ color: #FFFFFF;
251
+ background-color: #8A8A8A;
252
+ border-color: #8A8A8A;
253
+ }
254
+ .button-grey-medium:hover {
255
+ color: #8A8A8A;
256
+ background-color: #FFFFFF;
257
+ }
258
+
259
+ .button-grey-dark {
260
+ color: #FFFFFF;
261
+ background-color: #4A4A4A;
262
+ border-color: #4A4A4A;
263
+ }
264
+ .button-grey-dark:hover {
265
+ color: #4A4A4A;
266
+ background-color: #FFFFFF;
267
+ }
268
+
229
269
  .button-clear-primary {
230
270
  color: #2C089B;
231
271
  background-color: transparent;
@@ -357,6 +397,76 @@ a:hover {
357
397
  background-color: transparent;
358
398
  }
359
399
 
400
+ .button-clear-black {
401
+ color: #000000;
402
+ background-color: transparent;
403
+ text-decoration: underline;
404
+ border: 0;
405
+ padding-left: 0;
406
+ padding-right: 0;
407
+ }
408
+ .button-clear-black:hover {
409
+ color: #000000;
410
+ text-decoration: none;
411
+ background-color: transparent;
412
+ }
413
+
414
+ .button-clear-grey-extra-light {
415
+ color: #D7D7D7;
416
+ background-color: transparent;
417
+ text-decoration: underline;
418
+ border: 0;
419
+ padding-left: 0;
420
+ padding-right: 0;
421
+ }
422
+ .button-clear-grey-extra-light:hover {
423
+ color: #D7D7D7;
424
+ text-decoration: none;
425
+ background-color: transparent;
426
+ }
427
+
428
+ .button-clear-grey-light {
429
+ color: #E8E8E8;
430
+ background-color: transparent;
431
+ text-decoration: underline;
432
+ border: 0;
433
+ padding-left: 0;
434
+ padding-right: 0;
435
+ }
436
+ .button-clear-grey-light:hover {
437
+ color: #E8E8E8;
438
+ text-decoration: none;
439
+ background-color: transparent;
440
+ }
441
+
442
+ .button-clear-grey-medium {
443
+ color: #8A8A8A;
444
+ background-color: transparent;
445
+ text-decoration: underline;
446
+ border: 0;
447
+ padding-left: 0;
448
+ padding-right: 0;
449
+ }
450
+ .button-clear-grey-medium:hover {
451
+ color: #8A8A8A;
452
+ text-decoration: none;
453
+ background-color: transparent;
454
+ }
455
+
456
+ .button-clear-grey-dark {
457
+ color: #4A4A4A;
458
+ background-color: transparent;
459
+ text-decoration: underline;
460
+ border: 0;
461
+ padding-left: 0;
462
+ padding-right: 0;
463
+ }
464
+ .button-clear-grey-dark:hover {
465
+ color: #4A4A4A;
466
+ text-decoration: none;
467
+ background-color: transparent;
468
+ }
469
+
360
470
  .button-rounded {
361
471
  border-radius: 27.5px;
362
472
  }
@@ -156,6 +156,7 @@ a:hover {
156
156
  .container .items .sleeve {
157
157
  display: flex;
158
158
  flex-flow: row wrap;
159
+ min-width: 100%;
159
160
  }
160
161
  .container .navigation {
161
162
  padding: 10px 0;
@@ -189,20 +190,30 @@ a:hover {
189
190
  height: 10px;
190
191
  }
191
192
 
193
+ .container ::slotted(.hidden) {
194
+ display: none;
195
+ }
196
+
197
+ .column-count-5 ::slotted(*) {
198
+ width: calc(20% - 24px);
199
+ display: flex;
200
+ flex-direction: column;
201
+ }
202
+
192
203
  .column-count-4 ::slotted(*) {
193
- width: 25%;
204
+ width: calc(25% - 22.5px);
194
205
  display: flex;
195
206
  flex-direction: column;
196
207
  }
197
208
 
198
209
  .column-count-3 ::slotted(*) {
199
- width: 33.3333333333%;
210
+ width: calc(33.3333333333% - 20px);
200
211
  display: flex;
201
212
  flex-direction: column;
202
213
  }
203
214
 
204
215
  .column-count-2 ::slotted(*) {
205
- width: 50%;
216
+ width: calc(50% - 15px);
206
217
  display: flex;
207
218
  flex-direction: column;
208
219
  }
@@ -210,14 +221,16 @@ a:hover {
210
221
  @media screen and (max-width: 768px) {
211
222
  .column-count-2 ::slotted(*),
212
223
  .column-count-3 ::slotted(*),
213
- .column-count-4 ::slotted(*) {
224
+ .column-count-4 ::slotted(*),
225
+ .column-count-5 ::slotted(*) {
214
226
  width: calc(50% - 15px);
215
227
  }
216
228
  }
217
229
  @media screen and (max-width: 576px) {
218
230
  .column-count-2 ::slotted(*),
219
231
  .column-count-3 ::slotted(*),
220
- .column-count-4 ::slotted(*) {
232
+ .column-count-4 ::slotted(*),
233
+ .column-count-5 ::slotted(*) {
221
234
  width: 100%;
222
235
  }
223
236
  }
@@ -4,22 +4,29 @@ export class BiggiveCarousel {
4
4
  this.currentTab = 0;
5
5
  this.itemCount = 0;
6
6
  this.itemWidthPx = 0;
7
+ this.columnGapPx = 0;
7
8
  this.spaceBelow = 4;
8
9
  this.columnCount = 3;
9
10
  this.buttonBackgroundColour = 'white';
10
11
  this.buttonIconColour = 'primary';
11
12
  }
12
13
  componentDidRender() {
13
- var _a;
14
+ var _a, _b;
14
15
  this.sleeve = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.sleeve');
15
- let children = Array.from(this.host.children);
16
+ let children = new Array();
17
+ Array.from(this.host.children).forEach(item => {
18
+ if (!item.classList.contains('hidden')) {
19
+ children.push(item);
20
+ }
21
+ });
16
22
  this.itemCount = children.length;
17
23
  if (children.length > 0) {
18
- // Item widths are set in CSS so we know they will all be the same.
19
- this.itemWidthPx = children[0].offsetWidth;
20
- this.sleeve.style.width = this.itemWidthPx * children.length + 'px';
21
- children.forEach(function (el) {
22
- el.style.width = 'calc( 100% / ' + children.length + ' )';
24
+ this.columnGapPx = 30;
25
+ this.itemWidthPx = (((_b = this.sleeve.parentElement) === null || _b === void 0 ? void 0 : _b.offsetWidth) - (this.columnCount - 1) * this.columnGapPx) / this.columnCount;
26
+ this.sleeve.style.width = (this.itemWidthPx + this.columnGapPx) * children.length + 'px';
27
+ children.forEach(el => {
28
+ el.style.width = this.itemWidthPx + 'px';
29
+ el.style.marginRight = this.columnGapPx + 'px';
23
30
  });
24
31
  }
25
32
  }
@@ -29,10 +36,10 @@ export class BiggiveCarousel {
29
36
  */
30
37
  showTab(direction) {
31
38
  const newTab = this.currentTab + (direction === 'PREV' ? -1 : 1);
32
- if (newTab < 0 || newTab > this.itemCount - 1) {
39
+ if (newTab < 0 || newTab > this.itemCount - this.columnCount) {
33
40
  return;
34
41
  }
35
- const pos = 0 - this.itemWidthPx * newTab;
42
+ const pos = 0 - (this.itemWidthPx + this.columnGapPx) * newTab;
36
43
  this.sleeve.style.transitionDuration = '0.3s';
37
44
  this.sleeve.style.transitionTimingFunction = 'ease-out';
38
45
  this.sleeve.style.transform = 'translate3d(' + pos + 'px, 0, 0)';
@@ -95,8 +102,8 @@ export class BiggiveCarousel {
95
102
  "type": "number",
96
103
  "mutable": false,
97
104
  "complexType": {
98
- "original": "number",
99
- "resolved": "number",
105
+ "original": "1 | 2 | 3 | 4 | 5",
106
+ "resolved": "1 | 2 | 3 | 4 | 5",
100
107
  "references": {}
101
108
  },
102
109
  "required": false,
@@ -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,
@@ -0,0 +1,34 @@
1
+ /**
2
+ * @see brandColour in src/globals/brand-colour.ts . This and that should be updated together.
3
+ */
4
+ a {
5
+ color: inherit;
6
+ text-decoration: underline;
7
+ }
8
+ a:hover {
9
+ text-decoration: none;
10
+ }
11
+
12
+ :host {
13
+ display: block;
14
+ }
15
+
16
+ .filters {
17
+ margin-bottom: 15px;
18
+ }
19
+ .filters .button {
20
+ cursor: pointer;
21
+ border-radius: 20px;
22
+ padding: 5px 20px;
23
+ margin-right: 15px;
24
+ font-size: 13px;
25
+ line-height: 17px;
26
+ background-color: #FF7272;
27
+ color: #000000;
28
+ border-color: #FF7272;
29
+ }
30
+ .filters .button.active {
31
+ background-color: #000000;
32
+ border-color: #000000;
33
+ color: #FFFFFF;
34
+ }