@biggive/components 202303031121.0.0 → 202303061752.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 (173) hide show
  1. package/dist/biggive/biggive.esm.js +1 -1
  2. package/dist/biggive/p-01d03da2.entry.js +1 -0
  3. package/dist/biggive/{p-fe9f3e72.entry.js → p-26c0b6cf.entry.js} +1 -1
  4. package/dist/biggive/{p-8876011d.entry.js → p-2c639bd5.entry.js} +1 -1
  5. package/dist/biggive/{p-71054cf6.entry.js → p-41588003.entry.js} +1 -1
  6. package/dist/biggive/{p-0f38685b.entry.js → p-42649676.entry.js} +1 -1
  7. package/dist/biggive/{p-223759f6.entry.js → p-4402efe9.entry.js} +1 -1
  8. package/dist/biggive/p-4a1ba0c4.entry.js +1 -0
  9. package/dist/biggive/p-4adb4dce.entry.js +1 -0
  10. package/dist/biggive/{p-3b378f79.entry.js → p-5406c558.entry.js} +1 -1
  11. package/dist/biggive/p-63abb338.entry.js +1 -0
  12. package/dist/biggive/{p-d7f8a6fd.entry.js → p-87487165.entry.js} +1 -1
  13. package/dist/biggive/{p-eb6aecf0.entry.js → p-87edb8c6.entry.js} +1 -1
  14. package/dist/biggive/p-8feb91ae.entry.js +1 -0
  15. package/dist/biggive/p-b73fddaa.entry.js +1 -0
  16. package/dist/biggive/p-ead5a5ce.entry.js +1 -0
  17. package/dist/biggive/p-ee4f16a8.entry.js +1 -0
  18. package/dist/biggive/{p-f8e38bb9.entry.js → p-f375edb7.entry.js} +1 -1
  19. package/dist/biggive/p-f6dedf7d.entry.js +1 -0
  20. package/dist/biggive/{p-acf3bcd9.js → p-ff8bc382.js} +2 -2
  21. package/dist/cjs/{biggive-back-to-top_27.cjs.entry.js → biggive-accordion_35.cjs.entry.js} +427 -12
  22. package/dist/cjs/biggive-article-card.cjs.entry.js +2 -2
  23. package/dist/cjs/biggive-basic-card.cjs.entry.js +6 -3
  24. package/dist/cjs/biggive-beneficiary-icon.cjs.entry.js +2 -2
  25. package/dist/cjs/biggive-biography-card.cjs.entry.js +1 -1
  26. package/dist/cjs/biggive-boxed-content.cjs.entry.js +2 -2
  27. package/dist/cjs/biggive-category-icon.cjs.entry.js +2 -2
  28. package/dist/cjs/biggive-form.cjs.entry.js +1 -1
  29. package/dist/cjs/biggive-formatted-text.cjs.entry.js +2 -2
  30. package/dist/cjs/biggive-header.cjs.entry.js +1 -1
  31. package/dist/cjs/biggive-icon-group.cjs.entry.js +1 -1
  32. package/dist/cjs/biggive-nav-group.cjs.entry.js +1 -1
  33. package/dist/cjs/biggive-nav-item.cjs.entry.js +1 -1
  34. package/dist/cjs/biggive-popup-standalone.cjs.entry.js +1 -1
  35. package/dist/cjs/biggive-search.cjs.entry.js +1 -1
  36. package/dist/cjs/biggive-table.cjs.entry.js +2 -2
  37. package/dist/cjs/biggive-text-input.cjs.entry.js +1 -1
  38. package/dist/cjs/biggive-video.cjs.entry.js +1 -1
  39. package/dist/cjs/biggive.cjs.js +2 -2
  40. package/dist/cjs/{index-4ae5dbd7.js → index-8dd1da4d.js} +3 -0
  41. package/dist/cjs/loader.cjs.js +2 -2
  42. package/dist/collection/collection-manifest.json +6 -0
  43. package/dist/collection/components/biggive-accordion/biggive-accordion.css +315 -0
  44. package/dist/collection/components/biggive-accordion/biggive-accordion.js +114 -0
  45. package/dist/collection/components/biggive-accordion/biggive-accordion.stories.js +52 -0
  46. package/dist/collection/components/biggive-accordion-entry/biggive-accordion-entry.css +14 -0
  47. package/dist/collection/components/biggive-accordion-entry/biggive-accordion-entry.js +43 -0
  48. package/dist/collection/components/biggive-article-card/biggive-article-card.css +45 -0
  49. package/dist/collection/components/biggive-basic-card/biggive-basic-card.css +70 -0
  50. package/dist/collection/components/biggive-basic-card/biggive-basic-card.js +77 -31
  51. package/dist/collection/components/biggive-beneficiary-icon/biggive-beneficiary-icon.css +65 -0
  52. package/dist/collection/components/biggive-boxed-content/biggive-boxed-content.css +25 -0
  53. package/dist/collection/components/biggive-call-to-action/biggive-call-to-action.css +20 -0
  54. package/dist/collection/components/biggive-carousel/biggive-carousel.css +223 -0
  55. package/dist/collection/components/biggive-carousel/biggive-carousel.js +161 -0
  56. package/dist/collection/components/biggive-carousel/biggive-carousel.stories.js +84 -0
  57. package/dist/collection/components/biggive-category-icon/biggive-category-icon.css +65 -0
  58. package/dist/collection/components/biggive-formatted-text/biggive-formatted-text.css +20 -0
  59. package/dist/collection/components/biggive-hero-image/biggive-hero-image.css +88 -18
  60. package/dist/collection/components/biggive-hero-image/biggive-hero-image.js +68 -19
  61. package/dist/collection/components/biggive-hero-image/biggive-hero-image.stories.js +2 -0
  62. package/dist/collection/components/biggive-image-feature/biggive-image-feature.css +20 -0
  63. package/dist/collection/components/biggive-main-menu/biggive-main-menu.css +9 -1
  64. package/dist/collection/components/biggive-main-menu/biggive-main-menu.js +8 -0
  65. package/dist/collection/components/biggive-misc-icon/biggive-misc-icon.css +89 -0
  66. package/dist/collection/components/biggive-quote/biggive-quote.css +65 -0
  67. package/dist/collection/components/biggive-quote/biggive-quote.js +45 -11
  68. package/dist/collection/components/biggive-social-icon/biggive-social-icon.css +113 -0
  69. package/dist/collection/components/biggive-tab/biggive-tab.js +2 -2
  70. package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.css +355 -0
  71. package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.js +206 -12
  72. package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.stories.js +48 -3
  73. package/dist/collection/components/biggive-table/biggive-table.css +41 -0
  74. package/dist/collection/components/biggive-table/biggive-table.js +8 -3
  75. package/dist/collection/components/biggive-timeline/biggive-timeline.css +733 -0
  76. package/dist/collection/components/biggive-timeline/biggive-timeline.js +394 -0
  77. package/dist/collection/components/biggive-timeline/biggive-timeline.stories.js +133 -0
  78. package/dist/collection/components/biggive-timeline-entry/biggive-timeline-entry.css +14 -0
  79. package/dist/collection/components/biggive-timeline-entry/biggive-timeline-entry.js +59 -0
  80. package/dist/collection/components/biggive-tipping-slider/biggive-tipping-slider.css +224 -0
  81. package/dist/collection/components/biggive-tipping-slider/biggive-tipping-slider.js +198 -0
  82. package/dist/collection/components/biggive-tipping-slider/biggive-tipping-slider.stories.js +62 -0
  83. package/dist/collection/components/biggive-totalizer/biggive-totalizer.css +45 -0
  84. package/dist/collection/components/biggive-video-feature/biggive-video-feature.css +20 -0
  85. package/dist/components/biggive-accordion-entry.d.ts +11 -0
  86. package/dist/components/biggive-accordion-entry.js +37 -0
  87. package/dist/components/biggive-accordion.d.ts +11 -0
  88. package/dist/components/biggive-accordion.js +58 -0
  89. package/dist/components/biggive-article-card.js +1 -1
  90. package/dist/components/biggive-basic-card.js +7 -3
  91. package/dist/components/biggive-beneficiary-icon.js +1 -1
  92. package/dist/components/biggive-boxed-content.js +1 -1
  93. package/dist/components/biggive-call-to-action.js +1 -1
  94. package/dist/components/biggive-carousel.d.ts +11 -0
  95. package/dist/components/biggive-carousel.js +88 -0
  96. package/dist/components/biggive-category-icon.js +1 -1
  97. package/dist/components/biggive-formatted-text.js +1 -1
  98. package/dist/components/biggive-hero-image.js +4 -2
  99. package/dist/components/biggive-image-feature.js +1 -1
  100. package/dist/components/biggive-main-menu.js +9 -1
  101. package/dist/components/biggive-misc-icon2.js +1 -1
  102. package/dist/components/biggive-quote.js +5 -3
  103. package/dist/components/biggive-social-icon.js +1 -1
  104. package/dist/components/biggive-tab.js +1 -1
  105. package/dist/components/biggive-tabbed-content.js +78 -4
  106. package/dist/components/biggive-table.js +1 -1
  107. package/dist/components/biggive-timeline-entry.d.ts +11 -0
  108. package/dist/components/biggive-timeline-entry.js +38 -0
  109. package/dist/components/biggive-timeline.d.ts +11 -0
  110. package/dist/components/biggive-timeline.js +140 -0
  111. package/dist/components/biggive-tipping-slider.d.ts +11 -0
  112. package/dist/components/biggive-tipping-slider.js +100 -0
  113. package/dist/components/biggive-totalizer.js +1 -1
  114. package/dist/components/biggive-video-feature.js +1 -1
  115. package/dist/components/index.d.ts +6 -0
  116. package/dist/components/index.js +6 -0
  117. package/dist/esm/{biggive-back-to-top_27.entry.js → biggive-accordion_35.entry.js} +420 -13
  118. package/dist/esm/biggive-article-card.entry.js +2 -2
  119. package/dist/esm/biggive-basic-card.entry.js +6 -3
  120. package/dist/esm/biggive-beneficiary-icon.entry.js +2 -2
  121. package/dist/esm/biggive-biography-card.entry.js +1 -1
  122. package/dist/esm/biggive-boxed-content.entry.js +2 -2
  123. package/dist/esm/biggive-category-icon.entry.js +2 -2
  124. package/dist/esm/biggive-form.entry.js +1 -1
  125. package/dist/esm/biggive-formatted-text.entry.js +2 -2
  126. package/dist/esm/biggive-header.entry.js +1 -1
  127. package/dist/esm/biggive-icon-group.entry.js +1 -1
  128. package/dist/esm/biggive-nav-group.entry.js +1 -1
  129. package/dist/esm/biggive-nav-item.entry.js +1 -1
  130. package/dist/esm/biggive-popup-standalone.entry.js +1 -1
  131. package/dist/esm/biggive-search.entry.js +1 -1
  132. package/dist/esm/biggive-table.entry.js +2 -2
  133. package/dist/esm/biggive-text-input.entry.js +1 -1
  134. package/dist/esm/biggive-video.entry.js +1 -1
  135. package/dist/esm/biggive.js +2 -2
  136. package/dist/esm/{index-43541c5f.js → index-801eebfb.js} +4 -1
  137. package/dist/esm/loader.js +2 -2
  138. package/dist/types/components/biggive-accordion/biggive-accordion.d.ts +12 -0
  139. package/dist/types/components/biggive-accordion/biggive-accordion.stories.d.ts +28 -0
  140. package/dist/types/components/biggive-accordion-entry/biggive-accordion-entry.d.ts +5 -0
  141. package/dist/types/components/biggive-basic-card/biggive-basic-card.d.ts +8 -50
  142. package/dist/types/components/biggive-carousel/biggive-carousel.d.ts +18 -0
  143. package/dist/types/components/biggive-carousel/biggive-carousel.stories.d.ts +35 -0
  144. package/dist/types/components/biggive-hero-image/biggive-hero-image.d.ts +14 -8
  145. package/dist/types/components/biggive-main-menu/biggive-main-menu.d.ts +1 -0
  146. package/dist/types/components/biggive-quote/biggive-quote.d.ts +5 -14
  147. package/dist/types/components/biggive-tab/biggive-tab.d.ts +0 -3
  148. package/dist/types/components/biggive-tabbed-content/biggive-tabbed-content.d.ts +18 -8
  149. package/dist/types/components/biggive-tabbed-content/biggive-tabbed-content.stories.d.ts +36 -1
  150. package/dist/types/components/biggive-table/biggive-table.d.ts +2 -1
  151. package/dist/types/components/biggive-timeline/biggive-timeline.d.ts +27 -0
  152. package/dist/types/components/biggive-timeline/biggive-timeline.stories.d.ts +91 -0
  153. package/dist/types/components/biggive-timeline-entry/biggive-timeline-entry.d.ts +8 -0
  154. package/dist/types/components/biggive-tipping-slider/biggive-tipping-slider.d.ts +14 -0
  155. package/dist/types/components/biggive-tipping-slider/biggive-tipping-slider.stories.d.ts +45 -0
  156. package/dist/types/components.d.ts +194 -164
  157. package/hydrate/index.js +507 -28
  158. package/package.json +1 -1
  159. package/dist/biggive/p-13f4a2c4.entry.js +0 -1
  160. package/dist/biggive/p-34cfc5da.entry.js +0 -1
  161. package/dist/biggive/p-3e2d205e.entry.js +0 -1
  162. package/dist/biggive/p-52bb0267.entry.js +0 -1
  163. package/dist/biggive/p-53189bc6.entry.js +0 -1
  164. package/dist/biggive/p-5a38b219.entry.js +0 -1
  165. package/dist/biggive/p-64a544fa.entry.js +0 -1
  166. package/dist/biggive/p-95bd7f7a.entry.js +0 -1
  167. package/dist/biggive/p-99f18976.entry.js +0 -1
  168. package/dist/biggive/p-a0941518.entry.js +0 -1
  169. package/dist/biggive/p-d8432f12.entry.js +0 -1
  170. package/dist/cjs/biggive-tab.cjs.entry.js +0 -20
  171. package/dist/cjs/biggive-tabbed-content.cjs.entry.js +0 -21
  172. package/dist/esm/biggive-tab.entry.js +0 -16
  173. package/dist/esm/biggive-tabbed-content.entry.js +0 -17
@@ -120,12 +120,367 @@ a:hover {
120
120
  color: #000000;
121
121
  }
122
122
 
123
+ .text-colour-hover-grey-extra-light:hover,
124
+ .text-colour-grey-extra-light {
125
+ color: #D7D7D7;
126
+ }
127
+
128
+ .text-colour-hover-grey-light:hover,
129
+ .text-colour-grey-light {
130
+ color: #E8E8E8;
131
+ }
132
+
133
+ .text-colour-hover-grey-medium:hover,
134
+ .text-colour-grey-medium {
135
+ color: #8A8A8A;
136
+ }
137
+
138
+ .text-colour-hover-grey-dark:hover,
139
+ .text-colour-grey-dark {
140
+ color: #4A4A4A;
141
+ }
142
+
123
143
  :host {
124
144
  display: contents;
125
145
  }
126
146
 
147
+ ::slotted(*) {
148
+ display: none;
149
+ }
150
+
127
151
  .container {
128
152
  font-family: "Euclid Triangle", sans-serif;
129
153
  font-size: 17px;
130
154
  line-height: 24px;
155
+ position: relative;
156
+ }
157
+ .container .navigation {
158
+ padding: 0 40px;
159
+ }
160
+ .container .navigation .button {
161
+ position: absolute;
162
+ top: 5px;
163
+ display: block;
164
+ width: 30px;
165
+ height: 30px;
166
+ padding: 2.5px 10px;
167
+ box-sizing: border-box;
168
+ background-color: #FFFFFF;
169
+ box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.25);
170
+ border-radius: 50%;
171
+ cursor: pointer;
172
+ text-align: center;
173
+ }
174
+ .container .navigation .button.prev {
175
+ left: 0;
176
+ }
177
+ .container .navigation .button.next {
178
+ right: 0;
179
+ }
180
+ .container .navigation .button svg {
181
+ width: 10px;
182
+ height: 10px;
183
+ }
184
+ .container .navigation ul {
185
+ margin: 0;
186
+ padding: 0;
187
+ list-style-type: none;
188
+ border-bottom: 1px solid transparent;
189
+ display: flex;
190
+ }
191
+ .container .navigation ul li {
192
+ padding: 10px;
193
+ margin: 0;
194
+ width: calc(33.3% - 20px);
195
+ border-bottom: 3px solid transparent;
196
+ text-align: center;
197
+ cursor: pointer;
198
+ }
199
+ .container .navigation ul li.selected {
200
+ font-weight: bold;
201
+ }
202
+ .container.text-colour-primary .navigation li {
203
+ color: #2C089B;
204
+ }
205
+ .container.navigation-highlight-colour-primary .navigation ul {
206
+ border-color: #2C089B;
207
+ }
208
+ .container.selected-text-colour-primary .navigation li.selected {
209
+ color: #2C089B;
210
+ border-color: #2C089B;
211
+ }
212
+ .container.selected-navigation-highlight-colour-primary .navigation li.selected {
213
+ border-color: #2C089B;
214
+ }
215
+ .container.button-background-colour-primary .navigation .button {
216
+ background-color: #2C089B;
217
+ }
218
+ .container.button-icon-colour-primary .navigation .button svg path {
219
+ stroke: #2C089B;
220
+ }
221
+ .container.text-colour-secondary .navigation li {
222
+ color: #2AF135;
223
+ }
224
+ .container.navigation-highlight-colour-secondary .navigation ul {
225
+ border-color: #2AF135;
226
+ }
227
+ .container.selected-text-colour-secondary .navigation li.selected {
228
+ color: #2AF135;
229
+ border-color: #2AF135;
230
+ }
231
+ .container.selected-navigation-highlight-colour-secondary .navigation li.selected {
232
+ border-color: #2AF135;
233
+ }
234
+ .container.button-background-colour-secondary .navigation .button {
235
+ background-color: #2AF135;
236
+ }
237
+ .container.button-icon-colour-secondary .navigation .button svg path {
238
+ stroke: #2AF135;
239
+ }
240
+ .container.text-colour-tertiary .navigation li {
241
+ color: #FF7272;
242
+ }
243
+ .container.navigation-highlight-colour-tertiary .navigation ul {
244
+ border-color: #FF7272;
245
+ }
246
+ .container.selected-text-colour-tertiary .navigation li.selected {
247
+ color: #FF7272;
248
+ border-color: #FF7272;
249
+ }
250
+ .container.selected-navigation-highlight-colour-tertiary .navigation li.selected {
251
+ border-color: #FF7272;
252
+ }
253
+ .container.button-background-colour-tertiary .navigation .button {
254
+ background-color: #FF7272;
255
+ }
256
+ .container.button-icon-colour-tertiary .navigation .button svg path {
257
+ stroke: #FF7272;
258
+ }
259
+ .container.text-colour-brand-1 .navigation li {
260
+ color: #B30510;
261
+ }
262
+ .container.navigation-highlight-colour-brand-1 .navigation ul {
263
+ border-color: #B30510;
264
+ }
265
+ .container.selected-text-colour-brand-1 .navigation li.selected {
266
+ color: #B30510;
267
+ border-color: #B30510;
268
+ }
269
+ .container.selected-navigation-highlight-colour-brand-1 .navigation li.selected {
270
+ border-color: #B30510;
271
+ }
272
+ .container.button-background-colour-brand-1 .navigation .button {
273
+ background-color: #B30510;
274
+ }
275
+ .container.button-icon-colour-brand-1 .navigation .button svg path {
276
+ stroke: #B30510;
277
+ }
278
+ .container.text-colour-brand-2 .navigation li {
279
+ color: #6E0887;
280
+ }
281
+ .container.navigation-highlight-colour-brand-2 .navigation ul {
282
+ border-color: #6E0887;
283
+ }
284
+ .container.selected-text-colour-brand-2 .navigation li.selected {
285
+ color: #6E0887;
286
+ border-color: #6E0887;
287
+ }
288
+ .container.selected-navigation-highlight-colour-brand-2 .navigation li.selected {
289
+ border-color: #6E0887;
290
+ }
291
+ .container.button-background-colour-brand-2 .navigation .button {
292
+ background-color: #6E0887;
293
+ }
294
+ .container.button-icon-colour-brand-2 .navigation .button svg path {
295
+ stroke: #6E0887;
296
+ }
297
+ .container.text-colour-brand-3 .navigation li {
298
+ color: #50B400;
299
+ }
300
+ .container.navigation-highlight-colour-brand-3 .navigation ul {
301
+ border-color: #50B400;
302
+ }
303
+ .container.selected-text-colour-brand-3 .navigation li.selected {
304
+ color: #50B400;
305
+ border-color: #50B400;
306
+ }
307
+ .container.selected-navigation-highlight-colour-brand-3 .navigation li.selected {
308
+ border-color: #50B400;
309
+ }
310
+ .container.button-background-colour-brand-3 .navigation .button {
311
+ background-color: #50B400;
312
+ }
313
+ .container.button-icon-colour-brand-3 .navigation .button svg path {
314
+ stroke: #50B400;
315
+ }
316
+ .container.text-colour-brand-4 .navigation li {
317
+ color: #FFE500;
318
+ }
319
+ .container.navigation-highlight-colour-brand-4 .navigation ul {
320
+ border-color: #FFE500;
321
+ }
322
+ .container.selected-text-colour-brand-4 .navigation li.selected {
323
+ color: #FFE500;
324
+ border-color: #FFE500;
325
+ }
326
+ .container.selected-navigation-highlight-colour-brand-4 .navigation li.selected {
327
+ border-color: #FFE500;
328
+ }
329
+ .container.button-background-colour-brand-4 .navigation .button {
330
+ background-color: #FFE500;
331
+ }
332
+ .container.button-icon-colour-brand-4 .navigation .button svg path {
333
+ stroke: #FFE500;
334
+ }
335
+ .container.text-colour-brand-5 .navigation li {
336
+ color: #F07D00;
337
+ }
338
+ .container.navigation-highlight-colour-brand-5 .navigation ul {
339
+ border-color: #F07D00;
340
+ }
341
+ .container.selected-text-colour-brand-5 .navigation li.selected {
342
+ color: #F07D00;
343
+ border-color: #F07D00;
344
+ }
345
+ .container.selected-navigation-highlight-colour-brand-5 .navigation li.selected {
346
+ border-color: #F07D00;
347
+ }
348
+ .container.button-background-colour-brand-5 .navigation .button {
349
+ background-color: #F07D00;
350
+ }
351
+ .container.button-icon-colour-brand-5 .navigation .button svg path {
352
+ stroke: #F07D00;
353
+ }
354
+ .container.text-colour-brand-6 .navigation li {
355
+ color: #62CFC9;
356
+ }
357
+ .container.navigation-highlight-colour-brand-6 .navigation ul {
358
+ border-color: #62CFC9;
359
+ }
360
+ .container.selected-text-colour-brand-6 .navigation li.selected {
361
+ color: #62CFC9;
362
+ border-color: #62CFC9;
363
+ }
364
+ .container.selected-navigation-highlight-colour-brand-6 .navigation li.selected {
365
+ border-color: #62CFC9;
366
+ }
367
+ .container.button-background-colour-brand-6 .navigation .button {
368
+ background-color: #62CFC9;
369
+ }
370
+ .container.button-icon-colour-brand-6 .navigation .button svg path {
371
+ stroke: #62CFC9;
372
+ }
373
+ .container.text-colour-white .navigation li {
374
+ color: #FFFFFF;
375
+ }
376
+ .container.navigation-highlight-colour-white .navigation ul {
377
+ border-color: #FFFFFF;
378
+ }
379
+ .container.selected-text-colour-white .navigation li.selected {
380
+ color: #FFFFFF;
381
+ border-color: #FFFFFF;
382
+ }
383
+ .container.selected-navigation-highlight-colour-white .navigation li.selected {
384
+ border-color: #FFFFFF;
385
+ }
386
+ .container.button-background-colour-white .navigation .button {
387
+ background-color: #FFFFFF;
388
+ }
389
+ .container.button-icon-colour-white .navigation .button svg path {
390
+ stroke: #FFFFFF;
391
+ }
392
+ .container.text-colour-black .navigation li {
393
+ color: #000000;
394
+ }
395
+ .container.navigation-highlight-colour-black .navigation ul {
396
+ border-color: #000000;
397
+ }
398
+ .container.selected-text-colour-black .navigation li.selected {
399
+ color: #000000;
400
+ border-color: #000000;
401
+ }
402
+ .container.selected-navigation-highlight-colour-black .navigation li.selected {
403
+ border-color: #000000;
404
+ }
405
+ .container.button-background-colour-black .navigation .button {
406
+ background-color: #000000;
407
+ }
408
+ .container.button-icon-colour-black .navigation .button svg path {
409
+ stroke: #000000;
410
+ }
411
+ .container.text-colour-grey-extra-light .navigation li {
412
+ color: #D7D7D7;
413
+ }
414
+ .container.navigation-highlight-colour-grey-extra-light .navigation ul {
415
+ border-color: #D7D7D7;
416
+ }
417
+ .container.selected-text-colour-grey-extra-light .navigation li.selected {
418
+ color: #D7D7D7;
419
+ border-color: #D7D7D7;
420
+ }
421
+ .container.selected-navigation-highlight-colour-grey-extra-light .navigation li.selected {
422
+ border-color: #D7D7D7;
423
+ }
424
+ .container.button-background-colour-grey-extra-light .navigation .button {
425
+ background-color: #D7D7D7;
426
+ }
427
+ .container.button-icon-colour-grey-extra-light .navigation .button svg path {
428
+ stroke: #D7D7D7;
429
+ }
430
+ .container.text-colour-grey-light .navigation li {
431
+ color: #E8E8E8;
432
+ }
433
+ .container.navigation-highlight-colour-grey-light .navigation ul {
434
+ border-color: #E8E8E8;
435
+ }
436
+ .container.selected-text-colour-grey-light .navigation li.selected {
437
+ color: #E8E8E8;
438
+ border-color: #E8E8E8;
439
+ }
440
+ .container.selected-navigation-highlight-colour-grey-light .navigation li.selected {
441
+ border-color: #E8E8E8;
442
+ }
443
+ .container.button-background-colour-grey-light .navigation .button {
444
+ background-color: #E8E8E8;
445
+ }
446
+ .container.button-icon-colour-grey-light .navigation .button svg path {
447
+ stroke: #E8E8E8;
448
+ }
449
+ .container.text-colour-grey-medium .navigation li {
450
+ color: #8A8A8A;
451
+ }
452
+ .container.navigation-highlight-colour-grey-medium .navigation ul {
453
+ border-color: #8A8A8A;
454
+ }
455
+ .container.selected-text-colour-grey-medium .navigation li.selected {
456
+ color: #8A8A8A;
457
+ border-color: #8A8A8A;
458
+ }
459
+ .container.selected-navigation-highlight-colour-grey-medium .navigation li.selected {
460
+ border-color: #8A8A8A;
461
+ }
462
+ .container.button-background-colour-grey-medium .navigation .button {
463
+ background-color: #8A8A8A;
464
+ }
465
+ .container.button-icon-colour-grey-medium .navigation .button svg path {
466
+ stroke: #8A8A8A;
467
+ }
468
+ .container.text-colour-grey-dark .navigation li {
469
+ color: #4A4A4A;
470
+ }
471
+ .container.navigation-highlight-colour-grey-dark .navigation ul {
472
+ border-color: #4A4A4A;
473
+ }
474
+ .container.selected-text-colour-grey-dark .navigation li.selected {
475
+ color: #4A4A4A;
476
+ border-color: #4A4A4A;
477
+ }
478
+ .container.selected-navigation-highlight-colour-grey-dark .navigation li.selected {
479
+ border-color: #4A4A4A;
480
+ }
481
+ .container.button-background-colour-grey-dark .navigation .button {
482
+ background-color: #4A4A4A;
483
+ }
484
+ .container.button-icon-colour-grey-dark .navigation .button svg path {
485
+ stroke: #4A4A4A;
131
486
  }
@@ -1,11 +1,79 @@
1
1
  import { h } from '@stencil/core';
2
2
  export class BiggiveTabbedContent {
3
3
  constructor() {
4
+ this.currentTab = 0;
5
+ this.children = [];
4
6
  this.spaceBelow = 0;
5
- this.defaultTextColour = 'black';
7
+ this.textColour = 'black';
8
+ this.selectedTextColour = 'primary';
9
+ this.navigationHighlightColour = 'grey-medium';
10
+ this.selectedNavigationHighlightColour = 'primary';
11
+ this.buttonBackgroundColour = 'white';
12
+ this.buttonIconColour = 'primary';
13
+ }
14
+ componentWillLoad() {
15
+ this.children = Array.from(this.host.children);
16
+ }
17
+ componentDidRender() {
18
+ this.showTab(0);
19
+ }
20
+ /*
21
+ * Shows the i'th tab, counting from zero. Does nothing if i out of range.
22
+ */
23
+ showTab(i) {
24
+ var _a;
25
+ const tabs = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.navigation ul li');
26
+ if (i >= 0 && i <= (tabs === null || tabs === void 0 ? void 0 : tabs.length) - 1) {
27
+ this.currentTab = i;
28
+ let j = 0;
29
+ tabs === null || tabs === void 0 ? void 0 : tabs.forEach(function (tab) {
30
+ if (i == j) {
31
+ tab.classList.add('selected');
32
+ }
33
+ else {
34
+ tab.classList.remove('selected');
35
+ }
36
+ j++;
37
+ });
38
+ j = 0;
39
+ this.host.querySelectorAll('biggive-tab').forEach(function (tab) {
40
+ tab.style.display = i == j ? 'block' : 'none';
41
+ j++;
42
+ });
43
+ }
44
+ }
45
+ clickTabHandler(e) {
46
+ let i = 0;
47
+ const parent = e.target.parentElement;
48
+ for (let el of Array.from(parent.children)) {
49
+ if (el == e.target) {
50
+ this.showTab(i);
51
+ return;
52
+ }
53
+ i++;
54
+ }
55
+ }
56
+ clickPrevHandler() {
57
+ this.showTab(this.currentTab - 1);
58
+ }
59
+ clickNextHandler() {
60
+ this.showTab(this.currentTab + 1);
6
61
  }
7
62
  render() {
8
- return (h("div", { class: 'container space-below-' + this.spaceBelow + ' text-colour-' + this.defaultTextColour }, h("slot", null)));
63
+ return (h("div", { class: 'container space-below-' +
64
+ this.spaceBelow +
65
+ ' text-colour-' +
66
+ this.textColour +
67
+ ' selected-text-colour-' +
68
+ this.selectedTextColour +
69
+ ' navigation-highlight-colour-' +
70
+ this.navigationHighlightColour +
71
+ ' selected-navigation-highlight-colour-' +
72
+ this.selectedNavigationHighlightColour +
73
+ ' button-background-colour-' +
74
+ this.buttonBackgroundColour +
75
+ ' button-icon-colour-' +
76
+ this.buttonIconColour }, h("div", { class: "navigation" }, h("div", { class: "button prev", onClick: () => this.clickPrevHandler(), title: "Previous" }, h("svg", { width: "9", height: "16", viewBox: "0 0 9 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M8.29311 14.5703L1.73926 8.01646L8.29311 1.46261", stroke: "#000000", "stroke-width": "2" }))), h("ul", null, this.children.map(child => (h("li", { onClick: event => this.clickTabHandler(event) }, child.tabTitle)))), h("div", { class: "button next", onClick: () => this.clickNextHandler(), title: "Next" }, h("svg", { width: "9", height: "16", viewBox: "0 0 9 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M0.739117 1.46094L7.29297 8.01479L0.739118 14.5686", stroke: "#000000", "stroke-width": "2" })))), h("slot", null)));
9
77
  }
10
78
  static get is() { return "biggive-tabbed-content"; }
11
79
  static get encapsulation() { return "shadow"; }
@@ -25,38 +93,164 @@ export class BiggiveTabbedContent {
25
93
  "type": "number",
26
94
  "mutable": false,
27
95
  "complexType": {
28
- "original": "number",
29
- "resolved": "number",
30
- "references": {}
96
+ "original": "spacingOption",
97
+ "resolved": "0 | 1 | 2 | 3 | 4 | 5 | 6",
98
+ "references": {
99
+ "spacingOption": {
100
+ "location": "import",
101
+ "path": "../../globals/spacing-option"
102
+ }
103
+ }
31
104
  },
32
105
  "required": false,
33
106
  "optional": false,
34
107
  "docs": {
35
108
  "tags": [],
36
- "text": "Space below component"
109
+ "text": ""
37
110
  },
38
111
  "attribute": "space-below",
39
112
  "reflect": false,
40
113
  "defaultValue": "0"
41
114
  },
42
- "defaultTextColour": {
115
+ "textColour": {
43
116
  "type": "string",
44
117
  "mutable": false,
45
118
  "complexType": {
46
- "original": "string",
47
- "resolved": "string",
48
- "references": {}
119
+ "original": "brandColour",
120
+ "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\"",
121
+ "references": {
122
+ "brandColour": {
123
+ "location": "import",
124
+ "path": "../../globals/brand-colour"
125
+ }
126
+ }
49
127
  },
50
128
  "required": false,
51
129
  "optional": false,
52
130
  "docs": {
53
131
  "tags": [],
54
- "text": "Default text colour"
132
+ "text": ""
55
133
  },
56
- "attribute": "default-text-colour",
134
+ "attribute": "text-colour",
57
135
  "reflect": false,
58
136
  "defaultValue": "'black'"
137
+ },
138
+ "selectedTextColour": {
139
+ "type": "string",
140
+ "mutable": false,
141
+ "complexType": {
142
+ "original": "brandColour",
143
+ "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\"",
144
+ "references": {
145
+ "brandColour": {
146
+ "location": "import",
147
+ "path": "../../globals/brand-colour"
148
+ }
149
+ }
150
+ },
151
+ "required": false,
152
+ "optional": false,
153
+ "docs": {
154
+ "tags": [],
155
+ "text": ""
156
+ },
157
+ "attribute": "selected-text-colour",
158
+ "reflect": false,
159
+ "defaultValue": "'primary'"
160
+ },
161
+ "navigationHighlightColour": {
162
+ "type": "string",
163
+ "mutable": false,
164
+ "complexType": {
165
+ "original": "brandColour",
166
+ "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\"",
167
+ "references": {
168
+ "brandColour": {
169
+ "location": "import",
170
+ "path": "../../globals/brand-colour"
171
+ }
172
+ }
173
+ },
174
+ "required": false,
175
+ "optional": false,
176
+ "docs": {
177
+ "tags": [],
178
+ "text": ""
179
+ },
180
+ "attribute": "navigation-highlight-colour",
181
+ "reflect": false,
182
+ "defaultValue": "'grey-medium'"
183
+ },
184
+ "selectedNavigationHighlightColour": {
185
+ "type": "string",
186
+ "mutable": false,
187
+ "complexType": {
188
+ "original": "brandColour",
189
+ "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\"",
190
+ "references": {
191
+ "brandColour": {
192
+ "location": "import",
193
+ "path": "../../globals/brand-colour"
194
+ }
195
+ }
196
+ },
197
+ "required": false,
198
+ "optional": false,
199
+ "docs": {
200
+ "tags": [],
201
+ "text": ""
202
+ },
203
+ "attribute": "selected-navigation-highlight-colour",
204
+ "reflect": false,
205
+ "defaultValue": "'primary'"
206
+ },
207
+ "buttonBackgroundColour": {
208
+ "type": "string",
209
+ "mutable": false,
210
+ "complexType": {
211
+ "original": "brandColour",
212
+ "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\"",
213
+ "references": {
214
+ "brandColour": {
215
+ "location": "import",
216
+ "path": "../../globals/brand-colour"
217
+ }
218
+ }
219
+ },
220
+ "required": false,
221
+ "optional": false,
222
+ "docs": {
223
+ "tags": [],
224
+ "text": ""
225
+ },
226
+ "attribute": "button-background-colour",
227
+ "reflect": false,
228
+ "defaultValue": "'white'"
229
+ },
230
+ "buttonIconColour": {
231
+ "type": "string",
232
+ "mutable": false,
233
+ "complexType": {
234
+ "original": "brandColour",
235
+ "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\"",
236
+ "references": {
237
+ "brandColour": {
238
+ "location": "import",
239
+ "path": "../../globals/brand-colour"
240
+ }
241
+ }
242
+ },
243
+ "required": false,
244
+ "optional": false,
245
+ "docs": {
246
+ "tags": [],
247
+ "text": ""
248
+ },
249
+ "attribute": "button-icon-colour",
250
+ "reflect": false,
251
+ "defaultValue": "'primary'"
59
252
  }
60
253
  };
61
254
  }
255
+ static get elementRef() { return "host"; }
62
256
  }
@@ -8,19 +8,59 @@ export default {
8
8
  options: [0, 1, 2, 3, 4, 5, 6],
9
9
  },
10
10
  },
11
- defaultTextColour: {
11
+ textColour: {
12
12
  name: 'Default text colour',
13
13
  control: {
14
14
  type: 'select',
15
15
  options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
16
16
  },
17
17
  },
18
+ selectedTextColour: {
19
+ name: 'Selected text 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'],
23
+ },
24
+ },
25
+ navigationHighlightColour: {
26
+ name: 'Navigation highlight colour',
27
+ control: {
28
+ type: 'select',
29
+ options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
30
+ },
31
+ },
32
+ selectedNavigationHighlightColour: {
33
+ name: 'Selected navigation highlight colour',
34
+ control: {
35
+ type: 'select',
36
+ options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
37
+ },
38
+ },
39
+ buttonBackgroundColour: {
40
+ name: 'Button background colour',
41
+ control: {
42
+ type: 'select',
43
+ options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
44
+ },
45
+ },
46
+ buttonIconColour: {
47
+ name: 'Button icon colour',
48
+ control: {
49
+ type: 'select',
50
+ options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
51
+ },
52
+ },
18
53
  },
19
54
  };
20
55
  const Template = args => `
21
56
  <biggive-tabbed-content
22
57
  space-below="${args.spaceBelow}"
23
- default-text-colour="${args.defaultTextColour}"
58
+ text-colour="${args.textColour}"
59
+ selected-text-colour="${args.selectedTextColour}"
60
+ navigation-highlight-colour="${args.navigationHighlightColour}"
61
+ selected-navigation-highlight-colour="${args.selectedNavigationHighlightColour}"
62
+ button-background-colour="${args.buttonBackgroundColour}"
63
+ button-icon-colour="${args.buttonIconColour}"
24
64
  >
25
65
  <biggive-tab tab-title="this is my title">
26
66
  This is the content for the first item
@@ -33,5 +73,10 @@ const Template = args => `
33
73
  export const TabbedContentComponent = Template.bind({});
34
74
  TabbedContentComponent.args = {
35
75
  spaceBelow: 4,
36
- defaultTextColour: 'black',
76
+ textColour: 'black',
77
+ selectedTextColour: 'primary',
78
+ navigationHighlightColour: 'grey-medium',
79
+ selectedNavigationHighlightColour: 'primary',
80
+ buttonBackgroundColour: 'white',
81
+ buttonIconColour: 'primary',
37
82
  };