@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
@@ -0,0 +1,379 @@
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
+ .background-colour-hover-primary:hover,
13
+ .background-colour-primary {
14
+ background-color: #2C089B;
15
+ }
16
+
17
+ .background-colour-hover-secondary:hover,
18
+ .background-colour-secondary {
19
+ background-color: #2AF135;
20
+ }
21
+
22
+ .background-colour-hover-tertiary:hover,
23
+ .background-colour-tertiary {
24
+ background-color: #FF7272;
25
+ }
26
+
27
+ .background-colour-hover-brand-1:hover,
28
+ .background-colour-brand-1 {
29
+ background-color: #B30510;
30
+ }
31
+
32
+ .background-colour-hover-brand-2:hover,
33
+ .background-colour-brand-2 {
34
+ background-color: #6E0887;
35
+ }
36
+
37
+ .background-colour-hover-brand-3:hover,
38
+ .background-colour-brand-3 {
39
+ background-color: #50B400;
40
+ }
41
+
42
+ .background-colour-hover-brand-4:hover,
43
+ .background-colour-brand-4 {
44
+ background-color: #FFE500;
45
+ }
46
+
47
+ .background-colour-hover-brand-5:hover,
48
+ .background-colour-brand-5 {
49
+ background-color: #F07D00;
50
+ }
51
+
52
+ .background-colour-hover-brand-6:hover,
53
+ .background-colour-brand-6 {
54
+ background-color: #62CFC9;
55
+ }
56
+
57
+ .background-colour-hover-white:hover,
58
+ .background-colour-white {
59
+ background-color: #FFFFFF;
60
+ }
61
+
62
+ .background-colour-hover-black:hover,
63
+ .background-colour-black {
64
+ background-color: #000000;
65
+ }
66
+
67
+ .background-colour-hover-white:hover,
68
+ .background-colour-white {
69
+ background-color: #FFFFFF;
70
+ }
71
+
72
+ .background-colour-hover-grey-extra-light:hover,
73
+ .background-colour-grey-extra-light {
74
+ background-color: #D7D7D7;
75
+ }
76
+
77
+ .background-colour-hover-grey-light:hover,
78
+ .background-colour-grey-light {
79
+ background-color: #E8E8E8;
80
+ }
81
+
82
+ .background-colour-hover-grey-medium:hover,
83
+ .background-colour-grey-medium {
84
+ background-color: #8A8A8A;
85
+ }
86
+
87
+ .background-colour-hover-grey-dark:hover,
88
+ .background-colour-grey-dark {
89
+ background-color: #4A4A4A;
90
+ }
91
+
92
+ .text-colour-hover-primary:hover,
93
+ .text-colour-primary {
94
+ color: #2C089B;
95
+ }
96
+
97
+ .text-colour-hover-secondary:hover,
98
+ .text-colour-secondary {
99
+ color: #2AF135;
100
+ }
101
+
102
+ .text-colour-hover-tertiary:hover,
103
+ .text-colour-tertiary {
104
+ color: #FF7272;
105
+ }
106
+
107
+ .text-colour-hover-brand-1:hover,
108
+ .text-colour-brand-1 {
109
+ color: #B30510;
110
+ }
111
+
112
+ .text-colour-hover-brand-2:hover,
113
+ .text-colour-brand-2 {
114
+ color: #6E0887;
115
+ }
116
+
117
+ .text-colour-hover-brand-3:hover,
118
+ .text-colour-brand-3 {
119
+ color: #50B400;
120
+ }
121
+
122
+ .text-colour-hover-brand-4:hover,
123
+ .text-colour-brand-4 {
124
+ color: #FFE500;
125
+ }
126
+
127
+ .text-colour-hover-brand-5:hover,
128
+ .text-colour-brand-5 {
129
+ color: #F07D00;
130
+ }
131
+
132
+ .text-colour-hover-brand-6:hover,
133
+ .text-colour-brand-6 {
134
+ color: #CBC8C8;
135
+ }
136
+
137
+ .text-colour-hover-white:hover,
138
+ .text-colour-white {
139
+ color: #FFFFFF;
140
+ }
141
+
142
+ .text-colour-hover-black:hover,
143
+ .text-colour-black {
144
+ color: #000000;
145
+ }
146
+
147
+ .text-colour-hover-grey-extra-light:hover,
148
+ .text-colour-grey-extra-light {
149
+ color: #D7D7D7;
150
+ }
151
+
152
+ .text-colour-hover-grey-light:hover,
153
+ .text-colour-grey-light {
154
+ color: #E8E8E8;
155
+ }
156
+
157
+ .text-colour-hover-grey-medium:hover,
158
+ .text-colour-grey-medium {
159
+ color: #8A8A8A;
160
+ }
161
+
162
+ .text-colour-hover-grey-dark:hover,
163
+ .text-colour-grey-dark {
164
+ color: #4A4A4A;
165
+ }
166
+
167
+ .fill-primary {
168
+ fill: #2C089B;
169
+ }
170
+
171
+ .fill-secondary {
172
+ fill: #2AF135;
173
+ }
174
+
175
+ .fill-tertiary {
176
+ fill: #FF7272;
177
+ }
178
+
179
+ .fill-brand-1 {
180
+ fill: #B30510;
181
+ }
182
+
183
+ .fill-brand-2 {
184
+ fill: #6E0887;
185
+ }
186
+
187
+ .fill-brand-3 {
188
+ fill: #50B400;
189
+ }
190
+
191
+ .fill-brand-4 {
192
+ fill: #FFE500;
193
+ }
194
+
195
+ .fill-brand-5 {
196
+ fill: #F07D00;
197
+ }
198
+
199
+ .fill-brand-6 {
200
+ fill: #CBC8C8;
201
+ }
202
+
203
+ .fill-brand-mhf-turquoise {
204
+ fill: #62CFC9;
205
+ }
206
+
207
+ .fill-white {
208
+ fill: #FFFFFF;
209
+ }
210
+
211
+ .fill-black {
212
+ fill: #000000;
213
+ }
214
+
215
+ .fill-grey-extra-light {
216
+ fill: #D7D7D7;
217
+ }
218
+
219
+ .fill-grey-light {
220
+ fill: #E8E8E8;
221
+ }
222
+
223
+ .fill-grey-medium {
224
+ fill: #8A8A8A;
225
+ }
226
+
227
+ .fill-grey-dark {
228
+ fill: #4A4A4A;
229
+ }
230
+
231
+ .fill-red {
232
+ fill: red;
233
+ }
234
+
235
+ :host {
236
+ display: contents;
237
+ font-family: "Euclid Triangle", sans-serif;
238
+ font-size: 17px;
239
+ line-height: 24px;
240
+ }
241
+
242
+ .container.active .popup {
243
+ transform: translateX(0);
244
+ }
245
+ .container.active .background {
246
+ position: fixed;
247
+ left: 0;
248
+ top: 0;
249
+ right: 0;
250
+ bottom: 0;
251
+ background-color: rgba(0, 0, 0, 0.6);
252
+ z-index: 99;
253
+ }
254
+ .container .popup {
255
+ position: fixed;
256
+ transition: transform 1s ease-in-out;
257
+ transform: translateX(100%);
258
+ z-index: 999;
259
+ top: 0;
260
+ bottom: 0;
261
+ right: 0;
262
+ width: 66%;
263
+ }
264
+ .container .popup .header {
265
+ padding: 45px;
266
+ display: flex;
267
+ justify-content: space-between;
268
+ }
269
+ .container .popup .header .back-link {
270
+ cursor: pointer;
271
+ display: flex;
272
+ font-size: 14px;
273
+ }
274
+ .container .popup .header .back-link .svg-wrap {
275
+ display: flex;
276
+ margin: 5px 15px auto 0;
277
+ }
278
+ .container .popup .header .back-link .svg-wrap.colour-primary svg path {
279
+ fill: #2C089B;
280
+ }
281
+ .container .popup .header .back-link .svg-wrap.colour-secondary svg path {
282
+ fill: #2AF135;
283
+ }
284
+ .container .popup .header .back-link .svg-wrap.colour-tertiary svg path {
285
+ fill: #FF7272;
286
+ }
287
+ .container .popup .header .back-link .svg-wrap.colour-brand-1 svg path {
288
+ fill: #B30510;
289
+ }
290
+ .container .popup .header .back-link .svg-wrap.colour-brand-2 svg path {
291
+ fill: #6E0887;
292
+ }
293
+ .container .popup .header .back-link .svg-wrap.colour-brand-3 svg path {
294
+ fill: #50B400;
295
+ }
296
+ .container .popup .header .back-link .svg-wrap.colour-brand-4 svg path {
297
+ fill: #FFE500;
298
+ }
299
+ .container .popup .header .back-link .svg-wrap.colour-brand-5 svg path {
300
+ fill: #F07D00;
301
+ }
302
+ .container .popup .header .back-link .svg-wrap.colour-brand-6 svg path {
303
+ fill: #62CFC9;
304
+ }
305
+ .container .popup .header .back-link .svg-wrap.colour-white svg path {
306
+ fill: #FFFFFF;
307
+ }
308
+ .container .popup .header .back-link .svg-wrap.colour-black svg path {
309
+ fill: #000000;
310
+ }
311
+ .container .popup .header .back-link .svg-wrap.colour-grey-extra-light svg path {
312
+ fill: #D7D7D7;
313
+ }
314
+ .container .popup .header .back-link .svg-wrap.colour-grey-light svg path {
315
+ fill: #E8E8E8;
316
+ }
317
+ .container .popup .header .back-link .svg-wrap.colour-grey-medium svg path {
318
+ fill: #8A8A8A;
319
+ }
320
+ .container .popup .header .back-link .svg-wrap.colour-grey-dark svg path {
321
+ fill: #4A4A4A;
322
+ }
323
+ .container .popup .header .back-link .svg-wrap svg {
324
+ height: 14px;
325
+ width: auto;
326
+ }
327
+ .container .popup .header .close-link {
328
+ margin-bottom: auto;
329
+ cursor: pointer;
330
+ }
331
+ .container .popup .header .close-link .svg-wrap {
332
+ display: block;
333
+ width: 30px;
334
+ height: 30px;
335
+ background-color: #FFFFFF;
336
+ border-radius: 50%;
337
+ text-align: center;
338
+ padding: 6.5px;
339
+ box-sizing: border-box;
340
+ }
341
+ .container .popup .header .close-link .svg-wrap svg {
342
+ height: 15px;
343
+ width: 15px;
344
+ transform: rotate(45deg);
345
+ }
346
+ .container .popup .content {
347
+ padding: 0 45px 90px 90px;
348
+ margin-right: 45px;
349
+ max-height: calc(100vh - 200px);
350
+ overflow-y: scroll;
351
+ box-sizing: border-box;
352
+ }
353
+
354
+ @media screen and (max-width: 768px) {
355
+ .container .header {
356
+ padding: 15px;
357
+ }
358
+ .container .content {
359
+ padding: 0 15px 30px 30px;
360
+ margin-right: 15px;
361
+ max-height: calc(100vh - 90px);
362
+ }
363
+ .container .popup {
364
+ width: 100%;
365
+ }
366
+ }
367
+ @media screen and (max-width: 576px) {
368
+ .container .header {
369
+ padding: 15px;
370
+ }
371
+ .container .content {
372
+ padding: 0 15px 30px 30px;
373
+ margin-right: 15px;
374
+ max-height: calc(100vh - 90px);
375
+ }
376
+ .container .popup {
377
+ width: 100%;
378
+ }
379
+ }
@@ -0,0 +1,111 @@
1
+ import { h } from '@stencil/core';
2
+ export class BiggiveSheet {
3
+ constructor() {
4
+ this.sheetId = '';
5
+ this.backgroundColour = 'primary';
6
+ this.textColour = 'white';
7
+ }
8
+ openSheet(hash) {
9
+ var _a, _b;
10
+ if (hash != '' && hash == this.sheetId) {
11
+ (_b = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.container')) === null || _b === void 0 ? void 0 : _b.classList.add('active');
12
+ }
13
+ }
14
+ componentWillLoad() {
15
+ window.onhashchange = () => {
16
+ this.openSheet(window.location.hash);
17
+ };
18
+ }
19
+ componentDidRender() {
20
+ this.openSheet(window.location.hash);
21
+ }
22
+ closeSheet() {
23
+ var _a, _b;
24
+ (_b = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.container')) === null || _b === void 0 ? void 0 : _b.classList.remove('active');
25
+ history.pushState('', document.title, window.location.pathname);
26
+ }
27
+ render() {
28
+ return (h("div", { class: 'container' }, h("div", { class: "background" }), h("div", { class: 'popup background-colour-' + this.backgroundColour + ' text-colour-' + this.textColour }, h("div", { class: "header" }, h("div", { class: "back-link", onClick: () => this.closeSheet() }, h("span", { class: 'svg-wrap colour-' + this.textColour }, h("svg", { width: "33", height: "16", viewBox: "0 0 33 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M0.292892 7.29289C-0.0976295 7.68342 -0.0976295 8.31658 0.292892 8.70711L6.65685 15.0711C7.04738 15.4616 7.68054 15.4616 8.07107 15.0711C8.46159 14.6805 8.46159 14.0474 8.07107 13.6569L2.41421 8L8.07107 2.34315C8.46159 1.95262 8.46159 1.31946 8.07107 0.928932C7.68054 0.538408 7.04738 0.538408 6.65685 0.928932L0.292892 7.29289ZM33 7L1 7V9L33 9V7Z", fill: "black" }))), "Back"), h("div", { class: "close-link", onClick: () => this.closeSheet() }, h("span", { class: "svg-wrap" }, 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" }))))), h("div", { class: "content" }, h("slot", null)))));
29
+ }
30
+ static get is() { return "biggive-sheet"; }
31
+ static get encapsulation() { return "shadow"; }
32
+ static get originalStyleUrls() {
33
+ return {
34
+ "$": ["biggive-sheet.scss"]
35
+ };
36
+ }
37
+ static get styleUrls() {
38
+ return {
39
+ "$": ["biggive-sheet.css"]
40
+ };
41
+ }
42
+ static get properties() {
43
+ return {
44
+ "sheetId": {
45
+ "type": "string",
46
+ "mutable": false,
47
+ "complexType": {
48
+ "original": "string",
49
+ "resolved": "string",
50
+ "references": {}
51
+ },
52
+ "required": false,
53
+ "optional": false,
54
+ "docs": {
55
+ "tags": [],
56
+ "text": "A string ID (no spaces) unique within the page context, used to trigger the opening of the sheet from an anchor hash."
57
+ },
58
+ "attribute": "sheet-id",
59
+ "reflect": false,
60
+ "defaultValue": "''"
61
+ },
62
+ "backgroundColour": {
63
+ "type": "string",
64
+ "mutable": false,
65
+ "complexType": {
66
+ "original": "brandColour",
67
+ "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\"",
68
+ "references": {
69
+ "brandColour": {
70
+ "location": "import",
71
+ "path": "../../globals/brand-colour"
72
+ }
73
+ }
74
+ },
75
+ "required": false,
76
+ "optional": false,
77
+ "docs": {
78
+ "tags": [],
79
+ "text": ""
80
+ },
81
+ "attribute": "background-colour",
82
+ "reflect": false,
83
+ "defaultValue": "'primary'"
84
+ },
85
+ "textColour": {
86
+ "type": "string",
87
+ "mutable": false,
88
+ "complexType": {
89
+ "original": "brandColour",
90
+ "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\"",
91
+ "references": {
92
+ "brandColour": {
93
+ "location": "import",
94
+ "path": "../../globals/brand-colour"
95
+ }
96
+ }
97
+ },
98
+ "required": false,
99
+ "optional": false,
100
+ "docs": {
101
+ "tags": [],
102
+ "text": ""
103
+ },
104
+ "attribute": "text-colour",
105
+ "reflect": false,
106
+ "defaultValue": "'white'"
107
+ }
108
+ };
109
+ }
110
+ static get elementRef() { return "host"; }
111
+ }
@@ -0,0 +1,34 @@
1
+ export default {
2
+ title: 'Components/Content',
3
+ argTypes: {
4
+ backgroundColour: {
5
+ name: 'Background colour',
6
+ control: {
7
+ type: 'select',
8
+ options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
9
+ },
10
+ },
11
+ textColour: {
12
+ name: 'Text 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'],
16
+ },
17
+ },
18
+ },
19
+ };
20
+ const Template = args => `
21
+ <biggive-sheet
22
+ id="${args.id}"
23
+ background-colour="${args.backgroundColour}"
24
+ text-colour="${args.textColour}"
25
+ >
26
+ </biggive-sheet>
27
+ <div><a href="#test-sheet">Click here to open</a></div>
28
+ `;
29
+ export const SheetComponent = Template.bind({});
30
+ SheetComponent.args = {
31
+ id: 'test-sheet',
32
+ backgroundColour: 'primary',
33
+ textColour: 'white',
34
+ };
@@ -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,
@@ -181,22 +181,26 @@ a:hover {
181
181
  width: 10px;
182
182
  height: 10px;
183
183
  }
184
- .container .navigation ul {
184
+ .container .navigation .sleeve {
185
+ border-bottom: 1px solid #E8E8E8;
186
+ overflow: hidden;
187
+ }
188
+ .container .navigation .sleeve ul {
185
189
  margin: 0;
186
190
  padding: 0;
187
191
  list-style-type: none;
188
- border-bottom: 1px solid transparent;
189
192
  display: flex;
190
193
  }
191
- .container .navigation ul li {
192
- padding: 10px;
194
+ .container .navigation .sleeve ul li {
195
+ flex-grow: 1;
196
+ padding: 10px 20px;
193
197
  margin: 0;
194
198
  width: calc(33.3% - 20px);
195
199
  border-bottom: 3px solid transparent;
196
200
  text-align: center;
197
201
  cursor: pointer;
198
202
  }
199
- .container .navigation ul li.selected {
203
+ .container .navigation .sleeve ul li.selected {
200
204
  font-weight: bold;
201
205
  }
202
206
  .container.text-colour-primary .navigation li {
@@ -2,6 +2,7 @@ import { h } from '@stencil/core';
2
2
  export class BiggiveTabbedContent {
3
3
  constructor() {
4
4
  this.currentTab = 0;
5
+ this.scrollOffset = 0;
5
6
  this.children = [];
6
7
  this.spaceBelow = 0;
7
8
  this.textColour = 'black';
@@ -53,11 +54,40 @@ export class BiggiveTabbedContent {
53
54
  i++;
54
55
  }
55
56
  }
57
+ scrollTab(direction) {
58
+ var _a;
59
+ if (!this.scrollContextTab) {
60
+ return;
61
+ }
62
+ let sleeve = this.scrollContextTab.parentElement;
63
+ let max = sleeve.scrollWidth - ((_a = sleeve.parentElement) === null || _a === void 0 ? void 0 : _a.offsetWidth);
64
+ if (direction == 'PREV') {
65
+ if (this.scrollOffset + this.scrollContextTab.offsetWidth > 0) {
66
+ return;
67
+ }
68
+ this.scrollOffset = this.scrollOffset + this.scrollContextTab.offsetWidth;
69
+ if (this.scrollContextTab.previousElementSibling) {
70
+ this.scrollContextTab = this.scrollContextTab.previousElementSibling;
71
+ }
72
+ }
73
+ else if (direction == 'NEXT') {
74
+ if (0 - this.scrollOffset > max) {
75
+ return;
76
+ }
77
+ this.scrollOffset = this.scrollOffset - this.scrollContextTab.offsetWidth;
78
+ if (this.scrollContextTab.nextElementSibling) {
79
+ this.scrollContextTab = this.scrollContextTab.nextElementSibling;
80
+ }
81
+ }
82
+ sleeve.style.transitionDuration = '0.3s';
83
+ sleeve.style.transitionTimingFunction = 'ease-out';
84
+ sleeve.style.transform = 'translate3d(' + this.scrollOffset + 'px, 0, 0)';
85
+ }
56
86
  clickPrevHandler() {
57
- this.showTab(this.currentTab - 1);
87
+ this.scrollTab('PREV');
58
88
  }
59
89
  clickNextHandler() {
60
- this.showTab(this.currentTab + 1);
90
+ this.scrollTab('NEXT');
61
91
  }
62
92
  render() {
63
93
  return (h("div", { class: 'container space-below-' +
@@ -73,7 +103,7 @@ export class BiggiveTabbedContent {
73
103
  ' button-background-colour-' +
74
104
  this.buttonBackgroundColour +
75
105
  ' 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)));
106
+ 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("div", { class: "sleeve" }, 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)));
77
107
  }
78
108
  static get is() { return "biggive-tabbed-content"; }
79
109
  static get encapsulation() { return "shadow"; }
@@ -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,
@@ -181,22 +181,26 @@ a:hover {
181
181
  width: 10px;
182
182
  height: 10px;
183
183
  }
184
- .container .navigation ul {
184
+ .container .navigation .sleeve {
185
+ border-bottom: 1px solid #E8E8E8;
186
+ overflow-x: hidden;
187
+ }
188
+ .container .navigation .sleeve ul {
185
189
  margin: 0;
186
190
  padding: 0;
187
191
  list-style-type: none;
188
- border-bottom: 1px solid transparent;
189
192
  display: flex;
190
193
  }
191
- .container .navigation ul li {
192
- padding: 10px;
194
+ .container .navigation .sleeve ul li {
195
+ flex-grow: 1;
196
+ padding: 10px 20px;
193
197
  margin: 0;
194
198
  width: calc(33.3% - 20px);
195
199
  border-bottom: 3px solid transparent;
196
200
  text-align: center;
197
201
  cursor: pointer;
198
202
  }
199
- .container .navigation ul li.selected {
203
+ .container .navigation .sleeve ul li.selected {
200
204
  font-weight: bold;
201
205
  }
202
206
  .container .entry-wrap {
@@ -207,12 +211,6 @@ a:hover {
207
211
  border-left: 15px solid transparent;
208
212
  padding: 15px 40px 15px 40px;
209
213
  }
210
- .container .entry-wrap .entry .date {
211
- font-size: 13px;
212
- line-height: 17px;
213
- font-weight: bold;
214
- margin: 0 0 5px 0;
215
- }
216
214
  .container .entry-wrap .entry .title {
217
215
  font-weight: bold;
218
216
  margin: 0 0 5px 0;