@biggive/components 202303031447.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 (169) 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} +418 -11
  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-misc-icon/biggive-misc-icon.css +89 -0
  64. package/dist/collection/components/biggive-quote/biggive-quote.css +65 -0
  65. package/dist/collection/components/biggive-quote/biggive-quote.js +45 -11
  66. package/dist/collection/components/biggive-social-icon/biggive-social-icon.css +113 -0
  67. package/dist/collection/components/biggive-tab/biggive-tab.js +2 -2
  68. package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.css +355 -0
  69. package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.js +206 -12
  70. package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.stories.js +48 -3
  71. package/dist/collection/components/biggive-table/biggive-table.css +41 -0
  72. package/dist/collection/components/biggive-table/biggive-table.js +8 -3
  73. package/dist/collection/components/biggive-timeline/biggive-timeline.css +733 -0
  74. package/dist/collection/components/biggive-timeline/biggive-timeline.js +394 -0
  75. package/dist/collection/components/biggive-timeline/biggive-timeline.stories.js +133 -0
  76. package/dist/collection/components/biggive-timeline-entry/biggive-timeline-entry.css +14 -0
  77. package/dist/collection/components/biggive-timeline-entry/biggive-timeline-entry.js +59 -0
  78. package/dist/collection/components/biggive-tipping-slider/biggive-tipping-slider.css +224 -0
  79. package/dist/collection/components/biggive-tipping-slider/biggive-tipping-slider.js +198 -0
  80. package/dist/collection/components/biggive-tipping-slider/biggive-tipping-slider.stories.js +62 -0
  81. package/dist/collection/components/biggive-totalizer/biggive-totalizer.css +45 -0
  82. package/dist/collection/components/biggive-video-feature/biggive-video-feature.css +20 -0
  83. package/dist/components/biggive-accordion-entry.d.ts +11 -0
  84. package/dist/components/biggive-accordion-entry.js +37 -0
  85. package/dist/components/biggive-accordion.d.ts +11 -0
  86. package/dist/components/biggive-accordion.js +58 -0
  87. package/dist/components/biggive-article-card.js +1 -1
  88. package/dist/components/biggive-basic-card.js +7 -3
  89. package/dist/components/biggive-beneficiary-icon.js +1 -1
  90. package/dist/components/biggive-boxed-content.js +1 -1
  91. package/dist/components/biggive-call-to-action.js +1 -1
  92. package/dist/components/biggive-carousel.d.ts +11 -0
  93. package/dist/components/biggive-carousel.js +88 -0
  94. package/dist/components/biggive-category-icon.js +1 -1
  95. package/dist/components/biggive-formatted-text.js +1 -1
  96. package/dist/components/biggive-hero-image.js +4 -2
  97. package/dist/components/biggive-image-feature.js +1 -1
  98. package/dist/components/biggive-misc-icon2.js +1 -1
  99. package/dist/components/biggive-quote.js +5 -3
  100. package/dist/components/biggive-social-icon.js +1 -1
  101. package/dist/components/biggive-tab.js +1 -1
  102. package/dist/components/biggive-tabbed-content.js +78 -4
  103. package/dist/components/biggive-table.js +1 -1
  104. package/dist/components/biggive-timeline-entry.d.ts +11 -0
  105. package/dist/components/biggive-timeline-entry.js +38 -0
  106. package/dist/components/biggive-timeline.d.ts +11 -0
  107. package/dist/components/biggive-timeline.js +140 -0
  108. package/dist/components/biggive-tipping-slider.d.ts +11 -0
  109. package/dist/components/biggive-tipping-slider.js +100 -0
  110. package/dist/components/biggive-totalizer.js +1 -1
  111. package/dist/components/biggive-video-feature.js +1 -1
  112. package/dist/components/index.d.ts +6 -0
  113. package/dist/components/index.js +6 -0
  114. package/dist/esm/{biggive-back-to-top_27.entry.js → biggive-accordion_35.entry.js} +411 -12
  115. package/dist/esm/biggive-article-card.entry.js +2 -2
  116. package/dist/esm/biggive-basic-card.entry.js +6 -3
  117. package/dist/esm/biggive-beneficiary-icon.entry.js +2 -2
  118. package/dist/esm/biggive-biography-card.entry.js +1 -1
  119. package/dist/esm/biggive-boxed-content.entry.js +2 -2
  120. package/dist/esm/biggive-category-icon.entry.js +2 -2
  121. package/dist/esm/biggive-form.entry.js +1 -1
  122. package/dist/esm/biggive-formatted-text.entry.js +2 -2
  123. package/dist/esm/biggive-header.entry.js +1 -1
  124. package/dist/esm/biggive-icon-group.entry.js +1 -1
  125. package/dist/esm/biggive-nav-group.entry.js +1 -1
  126. package/dist/esm/biggive-nav-item.entry.js +1 -1
  127. package/dist/esm/biggive-popup-standalone.entry.js +1 -1
  128. package/dist/esm/biggive-search.entry.js +1 -1
  129. package/dist/esm/biggive-table.entry.js +2 -2
  130. package/dist/esm/biggive-text-input.entry.js +1 -1
  131. package/dist/esm/biggive-video.entry.js +1 -1
  132. package/dist/esm/biggive.js +2 -2
  133. package/dist/esm/{index-43541c5f.js → index-801eebfb.js} +4 -1
  134. package/dist/esm/loader.js +2 -2
  135. package/dist/types/components/biggive-accordion/biggive-accordion.d.ts +12 -0
  136. package/dist/types/components/biggive-accordion/biggive-accordion.stories.d.ts +28 -0
  137. package/dist/types/components/biggive-accordion-entry/biggive-accordion-entry.d.ts +5 -0
  138. package/dist/types/components/biggive-basic-card/biggive-basic-card.d.ts +8 -50
  139. package/dist/types/components/biggive-carousel/biggive-carousel.d.ts +18 -0
  140. package/dist/types/components/biggive-carousel/biggive-carousel.stories.d.ts +35 -0
  141. package/dist/types/components/biggive-hero-image/biggive-hero-image.d.ts +14 -8
  142. package/dist/types/components/biggive-quote/biggive-quote.d.ts +5 -14
  143. package/dist/types/components/biggive-tab/biggive-tab.d.ts +0 -3
  144. package/dist/types/components/biggive-tabbed-content/biggive-tabbed-content.d.ts +18 -8
  145. package/dist/types/components/biggive-tabbed-content/biggive-tabbed-content.stories.d.ts +36 -1
  146. package/dist/types/components/biggive-table/biggive-table.d.ts +2 -1
  147. package/dist/types/components/biggive-timeline/biggive-timeline.d.ts +27 -0
  148. package/dist/types/components/biggive-timeline/biggive-timeline.stories.d.ts +91 -0
  149. package/dist/types/components/biggive-timeline-entry/biggive-timeline-entry.d.ts +8 -0
  150. package/dist/types/components/biggive-tipping-slider/biggive-tipping-slider.d.ts +14 -0
  151. package/dist/types/components/biggive-tipping-slider/biggive-tipping-slider.stories.d.ts +45 -0
  152. package/dist/types/components.d.ts +194 -164
  153. package/hydrate/index.js +498 -27
  154. package/package.json +1 -1
  155. package/dist/biggive/p-13f4a2c4.entry.js +0 -1
  156. package/dist/biggive/p-34cfc5da.entry.js +0 -1
  157. package/dist/biggive/p-52bb0267.entry.js +0 -1
  158. package/dist/biggive/p-53189bc6.entry.js +0 -1
  159. package/dist/biggive/p-5a38b219.entry.js +0 -1
  160. package/dist/biggive/p-64a544fa.entry.js +0 -1
  161. package/dist/biggive/p-95bd7f7a.entry.js +0 -1
  162. package/dist/biggive/p-99f18976.entry.js +0 -1
  163. package/dist/biggive/p-a0941518.entry.js +0 -1
  164. package/dist/biggive/p-d8432f12.entry.js +0 -1
  165. package/dist/biggive/p-ee1c5baf.entry.js +0 -1
  166. package/dist/cjs/biggive-tab.cjs.entry.js +0 -20
  167. package/dist/cjs/biggive-tabbed-content.cjs.entry.js +0 -21
  168. package/dist/esm/biggive-tab.entry.js +0 -16
  169. package/dist/esm/biggive-tabbed-content.entry.js +0 -17
@@ -0,0 +1,315 @@
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
+ .space-above-0 {
13
+ margin-top: 0;
14
+ }
15
+
16
+ .space-above-1 {
17
+ margin-top: 5px;
18
+ }
19
+
20
+ .space-above-2 {
21
+ margin-top: 10px;
22
+ }
23
+
24
+ .space-above-3 {
25
+ margin-top: 15px;
26
+ }
27
+
28
+ .space-above-4 {
29
+ margin-top: 30px;
30
+ }
31
+
32
+ .space-above-5 {
33
+ margin-top: 45px;
34
+ }
35
+
36
+ .space-above-6 {
37
+ margin-top: 60px;
38
+ }
39
+
40
+ .space-below-0 {
41
+ margin-bottom: 0;
42
+ }
43
+
44
+ .space-below-1 {
45
+ margin-bottom: 5px;
46
+ }
47
+
48
+ .space-below-2 {
49
+ margin-bottom: 10px;
50
+ }
51
+
52
+ .space-below-3 {
53
+ margin-bottom: 15px;
54
+ }
55
+
56
+ .space-below-4 {
57
+ margin-bottom: 30px;
58
+ }
59
+
60
+ .space-below-5 {
61
+ margin-bottom: 45px;
62
+ }
63
+
64
+ .space-below-6 {
65
+ margin-bottom: 60px;
66
+ }
67
+
68
+ .text-colour-hover-primary:hover,
69
+ .text-colour-primary {
70
+ color: #2C089B;
71
+ }
72
+
73
+ .text-colour-hover-secondary:hover,
74
+ .text-colour-secondary {
75
+ color: #2AF135;
76
+ }
77
+
78
+ .text-colour-hover-tertiary:hover,
79
+ .text-colour-tertiary {
80
+ color: #FF7272;
81
+ }
82
+
83
+ .text-colour-hover-brand-1:hover,
84
+ .text-colour-brand-1 {
85
+ color: #B30510;
86
+ }
87
+
88
+ .text-colour-hover-brand-2:hover,
89
+ .text-colour-brand-2 {
90
+ color: #6E0887;
91
+ }
92
+
93
+ .text-colour-hover-brand-3:hover,
94
+ .text-colour-brand-3 {
95
+ color: #50B400;
96
+ }
97
+
98
+ .text-colour-hover-brand-4:hover,
99
+ .text-colour-brand-4 {
100
+ color: #FFE500;
101
+ }
102
+
103
+ .text-colour-hover-brand-5:hover,
104
+ .text-colour-brand-5 {
105
+ color: #F07D00;
106
+ }
107
+
108
+ .text-colour-hover-brand-6:hover,
109
+ .text-colour-brand-6 {
110
+ color: #CBC8C8;
111
+ }
112
+
113
+ .text-colour-hover-white:hover,
114
+ .text-colour-white {
115
+ color: #FFFFFF;
116
+ }
117
+
118
+ .text-colour-hover-black:hover,
119
+ .text-colour-black {
120
+ color: #000000;
121
+ }
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
+
143
+ :host {
144
+ display: contents;
145
+ }
146
+
147
+ .container {
148
+ font-family: "Euclid Triangle", sans-serif;
149
+ font-size: 17px;
150
+ line-height: 24px;
151
+ position: relative;
152
+ }
153
+ .container .entry h3.heading {
154
+ position: relative;
155
+ margin: 15px 0 0 0;
156
+ padding: 10px 60px 10px 20px;
157
+ border-bottom: 1px solid #000000;
158
+ cursor: pointer;
159
+ }
160
+ .container .entry h3.heading span.arrow {
161
+ display: block;
162
+ position: absolute;
163
+ right: 20px;
164
+ top: 10px;
165
+ width: 40px;
166
+ height: 20px;
167
+ text-align: center;
168
+ }
169
+ .container .entry .content {
170
+ overflow: hidden;
171
+ max-height: 0;
172
+ padding: 0 20px;
173
+ transition: max-height 0.5s ease-in-out;
174
+ }
175
+ .container .entry.expanded .content {
176
+ max-height: 100%;
177
+ }
178
+ .container .entry.expanded span.arrow {
179
+ transform: rotate(-180deg);
180
+ }
181
+ .container.heading-colour-primary .entry h3.heading svg path {
182
+ stroke: #2C089B;
183
+ }
184
+ .container.heading-colour-primary h3.heading {
185
+ color: #2C089B;
186
+ }
187
+ .container.text-colour-primary .content {
188
+ color: #2C089B;
189
+ }
190
+ .container.heading-colour-secondary .entry h3.heading svg path {
191
+ stroke: #2AF135;
192
+ }
193
+ .container.heading-colour-secondary h3.heading {
194
+ color: #2AF135;
195
+ }
196
+ .container.text-colour-secondary .content {
197
+ color: #2AF135;
198
+ }
199
+ .container.heading-colour-tertiary .entry h3.heading svg path {
200
+ stroke: #FF7272;
201
+ }
202
+ .container.heading-colour-tertiary h3.heading {
203
+ color: #FF7272;
204
+ }
205
+ .container.text-colour-tertiary .content {
206
+ color: #FF7272;
207
+ }
208
+ .container.heading-colour-brand-1 .entry h3.heading svg path {
209
+ stroke: #B30510;
210
+ }
211
+ .container.heading-colour-brand-1 h3.heading {
212
+ color: #B30510;
213
+ }
214
+ .container.text-colour-brand-1 .content {
215
+ color: #B30510;
216
+ }
217
+ .container.heading-colour-brand-2 .entry h3.heading svg path {
218
+ stroke: #6E0887;
219
+ }
220
+ .container.heading-colour-brand-2 h3.heading {
221
+ color: #6E0887;
222
+ }
223
+ .container.text-colour-brand-2 .content {
224
+ color: #6E0887;
225
+ }
226
+ .container.heading-colour-brand-3 .entry h3.heading svg path {
227
+ stroke: #50B400;
228
+ }
229
+ .container.heading-colour-brand-3 h3.heading {
230
+ color: #50B400;
231
+ }
232
+ .container.text-colour-brand-3 .content {
233
+ color: #50B400;
234
+ }
235
+ .container.heading-colour-brand-4 .entry h3.heading svg path {
236
+ stroke: #FFE500;
237
+ }
238
+ .container.heading-colour-brand-4 h3.heading {
239
+ color: #FFE500;
240
+ }
241
+ .container.text-colour-brand-4 .content {
242
+ color: #FFE500;
243
+ }
244
+ .container.heading-colour-brand-5 .entry h3.heading svg path {
245
+ stroke: #F07D00;
246
+ }
247
+ .container.heading-colour-brand-5 h3.heading {
248
+ color: #F07D00;
249
+ }
250
+ .container.text-colour-brand-5 .content {
251
+ color: #F07D00;
252
+ }
253
+ .container.heading-colour-brand-6 .entry h3.heading svg path {
254
+ stroke: #62CFC9;
255
+ }
256
+ .container.heading-colour-brand-6 h3.heading {
257
+ color: #62CFC9;
258
+ }
259
+ .container.text-colour-brand-6 .content {
260
+ color: #62CFC9;
261
+ }
262
+ .container.heading-colour-white .entry h3.heading svg path {
263
+ stroke: #FFFFFF;
264
+ }
265
+ .container.heading-colour-white h3.heading {
266
+ color: #FFFFFF;
267
+ }
268
+ .container.text-colour-white .content {
269
+ color: #FFFFFF;
270
+ }
271
+ .container.heading-colour-black .entry h3.heading svg path {
272
+ stroke: #000000;
273
+ }
274
+ .container.heading-colour-black h3.heading {
275
+ color: #000000;
276
+ }
277
+ .container.text-colour-black .content {
278
+ color: #000000;
279
+ }
280
+ .container.heading-colour-grey-extra-light .entry h3.heading svg path {
281
+ stroke: #D7D7D7;
282
+ }
283
+ .container.heading-colour-grey-extra-light h3.heading {
284
+ color: #D7D7D7;
285
+ }
286
+ .container.text-colour-grey-extra-light .content {
287
+ color: #D7D7D7;
288
+ }
289
+ .container.heading-colour-grey-light .entry h3.heading svg path {
290
+ stroke: #E8E8E8;
291
+ }
292
+ .container.heading-colour-grey-light h3.heading {
293
+ color: #E8E8E8;
294
+ }
295
+ .container.text-colour-grey-light .content {
296
+ color: #E8E8E8;
297
+ }
298
+ .container.heading-colour-grey-medium .entry h3.heading svg path {
299
+ stroke: #8A8A8A;
300
+ }
301
+ .container.heading-colour-grey-medium h3.heading {
302
+ color: #8A8A8A;
303
+ }
304
+ .container.text-colour-grey-medium .content {
305
+ color: #8A8A8A;
306
+ }
307
+ .container.heading-colour-grey-dark .entry h3.heading svg path {
308
+ stroke: #4A4A4A;
309
+ }
310
+ .container.heading-colour-grey-dark h3.heading {
311
+ color: #4A4A4A;
312
+ }
313
+ .container.text-colour-grey-dark .content {
314
+ color: #4A4A4A;
315
+ }
@@ -0,0 +1,114 @@
1
+ import { h } from '@stencil/core';
2
+ export class BiggiveAccordion {
3
+ constructor() {
4
+ this.children = [];
5
+ this.spaceBelow = 0;
6
+ this.textColour = 'black';
7
+ this.headingColour = 'primary';
8
+ }
9
+ componentWillLoad() {
10
+ this.children = Array.from(this.host.children);
11
+ }
12
+ toggleSection(e) {
13
+ const target = e.target;
14
+ const entry = target.closest('.entry');
15
+ const arrow = entry.querySelector('.arrow');
16
+ if (entry.classList.contains('expanded')) {
17
+ entry.classList.remove('expanded');
18
+ arrow.setAttribute('title', 'Expand section');
19
+ }
20
+ else {
21
+ entry.classList.add('expanded');
22
+ arrow.setAttribute('title', 'Collapse section');
23
+ }
24
+ }
25
+ render() {
26
+ return (h("div", { class: 'container' + ' space-below-' + this.spaceBelow + ' text-colour-' + this.textColour + ' heading-colour-' + this.headingColour }, h("div", { class: "sleeve" }, this.children.map(entry => (h("div", { class: "entry" }, h("h3", { class: "heading", onClick: event => this.toggleSection(event), title: "Expand section" }, entry.heading, h("span", { class: "arrow" }, h("svg", { width: "15", height: "9", viewBox: "0 0 15 9", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M14.1074 0.999859L7.55357 7.55371L0.999718 0.99986", stroke: "black", "stroke-width": "2" })))), h("div", { class: "content", innerHTML: entry.innerHTML })))))));
27
+ }
28
+ static get is() { return "biggive-accordion"; }
29
+ static get encapsulation() { return "shadow"; }
30
+ static get originalStyleUrls() {
31
+ return {
32
+ "$": ["biggive-accordion.scss"]
33
+ };
34
+ }
35
+ static get styleUrls() {
36
+ return {
37
+ "$": ["biggive-accordion.css"]
38
+ };
39
+ }
40
+ static get properties() {
41
+ return {
42
+ "spaceBelow": {
43
+ "type": "number",
44
+ "mutable": false,
45
+ "complexType": {
46
+ "original": "spacingOption",
47
+ "resolved": "0 | 1 | 2 | 3 | 4 | 5 | 6",
48
+ "references": {
49
+ "spacingOption": {
50
+ "location": "import",
51
+ "path": "../../globals/spacing-option"
52
+ }
53
+ }
54
+ },
55
+ "required": false,
56
+ "optional": false,
57
+ "docs": {
58
+ "tags": [],
59
+ "text": ""
60
+ },
61
+ "attribute": "space-below",
62
+ "reflect": false,
63
+ "defaultValue": "0"
64
+ },
65
+ "textColour": {
66
+ "type": "string",
67
+ "mutable": false,
68
+ "complexType": {
69
+ "original": "brandColour",
70
+ "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\"",
71
+ "references": {
72
+ "brandColour": {
73
+ "location": "import",
74
+ "path": "../../globals/brand-colour"
75
+ }
76
+ }
77
+ },
78
+ "required": false,
79
+ "optional": false,
80
+ "docs": {
81
+ "tags": [],
82
+ "text": ""
83
+ },
84
+ "attribute": "text-colour",
85
+ "reflect": false,
86
+ "defaultValue": "'black'"
87
+ },
88
+ "headingColour": {
89
+ "type": "string",
90
+ "mutable": false,
91
+ "complexType": {
92
+ "original": "brandColour",
93
+ "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\"",
94
+ "references": {
95
+ "brandColour": {
96
+ "location": "import",
97
+ "path": "../../globals/brand-colour"
98
+ }
99
+ }
100
+ },
101
+ "required": false,
102
+ "optional": false,
103
+ "docs": {
104
+ "tags": [],
105
+ "text": ""
106
+ },
107
+ "attribute": "heading-colour",
108
+ "reflect": false,
109
+ "defaultValue": "'primary'"
110
+ }
111
+ };
112
+ }
113
+ static get elementRef() { return "host"; }
114
+ }
@@ -0,0 +1,52 @@
1
+ export default {
2
+ title: 'Components/Layout',
3
+ argTypes: {
4
+ spaceBelow: {
5
+ name: 'Space below',
6
+ control: {
7
+ type: 'select',
8
+ options: [0, 1, 2, 3, 4, 5, 6],
9
+ },
10
+ },
11
+ 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
+ headingColour: {
19
+ name: 'Heading 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
+ },
26
+ };
27
+ const Template = args => `
28
+ <biggive-accordion
29
+ space-below="${args.spaceBelow}"
30
+ text-colour="${args.textColour}"
31
+ heading-colour="${args.headingColour}"
32
+ >
33
+ <biggive-accordion-entry entry-heading="Heading 1">
34
+ <p>1 Lorem ipsum dolor sit amet, fabulas appetere no sed. Per ea partem pertinacia, modo mollis usu ut. Audire eruditi ex his, ut imperdiet constituam ullamcorper nam. Sed cu etiam iudico qualisque. Dicam alienum ei vel.</p>
35
+ <p>Quo ex mutat malorum conceptam, at usu dicta perfecto deserunt. An prompta offendit mel, sit regione constituto ei. Ludus possim hendrerit id vis, cu vim sonet dolorem mnesarchum, sit soleat aliquid eu. Ancillae appellantur cum ea. Agam delenit id qui, est summo corpora an.</p>
36
+ </biggive-accordion-entry>
37
+ <biggive-accordion-entry entry-heading="Heading 2">
38
+ <p>1 Lorem ipsum dolor sit amet, fabulas appetere no sed. Per ea partem pertinacia, modo mollis usu ut. Audire eruditi ex his, ut imperdiet constituam ullamcorper nam. Sed cu etiam iudico qualisque. Dicam alienum ei vel.</p>
39
+ <p>Quo ex mutat malorum conceptam, at usu dicta perfecto deserunt. An prompta offendit mel, sit regione constituto ei. Ludus possim hendrerit id vis, cu vim sonet dolorem mnesarchum, sit soleat aliquid eu. Ancillae appellantur cum ea. Agam delenit id qui, est summo corpora an.</p>
40
+ </biggive-accordion-entry>
41
+ <biggive-accordion-entry entry-heading="Heading 3">
42
+ <p>1 Lorem ipsum dolor sit amet, fabulas appetere no sed. Per ea partem pertinacia, modo mollis usu ut. Audire eruditi ex his, ut imperdiet constituam ullamcorper nam. Sed cu etiam iudico qualisque. Dicam alienum ei vel.</p>
43
+ <p>Quo ex mutat malorum conceptam, at usu dicta perfecto deserunt. An prompta offendit mel, sit regione constituto ei. Ludus possim hendrerit id vis, cu vim sonet dolorem mnesarchum, sit soleat aliquid eu. Ancillae appellantur cum ea. Agam delenit id qui, est summo corpora an.</p>
44
+ </biggive-accordion-entry>
45
+ </biggive-accordion>
46
+ `;
47
+ export const AccordionComponent = Template.bind({});
48
+ AccordionComponent.args = {
49
+ spaceBelow: 4,
50
+ textColour: 'black',
51
+ headingColour: 'primary',
52
+ };
@@ -0,0 +1,14 @@
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
+ }
@@ -0,0 +1,43 @@
1
+ export class BiggiveAccordionEntry {
2
+ constructor() {
3
+ this.heading = '';
4
+ }
5
+ render() {
6
+ return null;
7
+ }
8
+ static get is() { return "biggive-accordion-entry"; }
9
+ static get encapsulation() { return "shadow"; }
10
+ static get originalStyleUrls() {
11
+ return {
12
+ "$": ["biggive-accordion-entry.scss"]
13
+ };
14
+ }
15
+ static get styleUrls() {
16
+ return {
17
+ "$": ["biggive-accordion-entry.css"]
18
+ };
19
+ }
20
+ static get properties() {
21
+ return {
22
+ "heading": {
23
+ "type": "string",
24
+ "mutable": false,
25
+ "complexType": {
26
+ "original": "string",
27
+ "resolved": "string",
28
+ "references": {}
29
+ },
30
+ "required": false,
31
+ "optional": false,
32
+ "docs": {
33
+ "tags": [],
34
+ "text": ""
35
+ },
36
+ "attribute": "heading",
37
+ "reflect": false,
38
+ "defaultValue": "''"
39
+ }
40
+ };
41
+ }
42
+ static get elementRef() { return "host"; }
43
+ }
@@ -64,6 +64,31 @@ a:hover {
64
64
  background-color: #000000;
65
65
  }
66
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
+
67
92
  .image-wrap img {
68
93
  width: 100%;
69
94
  height: auto;
@@ -180,6 +205,26 @@ a:hover {
180
205
  color: #000000;
181
206
  }
182
207
 
208
+ .text-colour-hover-grey-extra-light:hover,
209
+ .text-colour-grey-extra-light {
210
+ color: #D7D7D7;
211
+ }
212
+
213
+ .text-colour-hover-grey-light:hover,
214
+ .text-colour-grey-light {
215
+ color: #E8E8E8;
216
+ }
217
+
218
+ .text-colour-hover-grey-medium:hover,
219
+ .text-colour-grey-medium {
220
+ color: #8A8A8A;
221
+ }
222
+
223
+ .text-colour-hover-grey-dark:hover,
224
+ .text-colour-grey-dark {
225
+ color: #4A4A4A;
226
+ }
227
+
183
228
  :host {
184
229
  display: contents;
185
230
  }
@@ -64,6 +64,31 @@ a:hover {
64
64
  background-color: #000000;
65
65
  }
66
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
+
67
92
  .fill-primary {
68
93
  fill: #2C089B;
69
94
  }
@@ -112,6 +137,22 @@ a:hover {
112
137
  fill: #000000;
113
138
  }
114
139
 
140
+ .fill-grey-extra-light {
141
+ fill: #D7D7D7;
142
+ }
143
+
144
+ .fill-grey-light {
145
+ fill: #E8E8E8;
146
+ }
147
+
148
+ .fill-grey-medium {
149
+ fill: #8A8A8A;
150
+ }
151
+
152
+ .fill-grey-dark {
153
+ fill: #4A4A4A;
154
+ }
155
+
115
156
  .fill-red {
116
157
  fill: red;
117
158
  }
@@ -227,6 +268,26 @@ a:hover {
227
268
  color: #000000;
228
269
  }
229
270
 
271
+ .text-colour-hover-grey-extra-light:hover,
272
+ .text-colour-grey-extra-light {
273
+ color: #D7D7D7;
274
+ }
275
+
276
+ .text-colour-hover-grey-light:hover,
277
+ .text-colour-grey-light {
278
+ color: #E8E8E8;
279
+ }
280
+
281
+ .text-colour-hover-grey-medium:hover,
282
+ .text-colour-grey-medium {
283
+ color: #8A8A8A;
284
+ }
285
+
286
+ .text-colour-hover-grey-dark:hover,
287
+ .text-colour-grey-dark {
288
+ color: #4A4A4A;
289
+ }
290
+
230
291
  :host {
231
292
  display: contents;
232
293
  }
@@ -243,10 +304,19 @@ a:hover {
243
304
  height: 100%;
244
305
  white-space: pre-wrap;
245
306
  }
307
+ .container a,
308
+ .container a:hover {
309
+ text-decoration: none;
310
+ }
246
311
  .container .sleeve {
247
312
  padding: 30px;
248
313
  height: 100%;
249
314
  box-sizing: border-box;
315
+ transition: all 1s ease-in-out;
316
+ }
317
+ .container.add-animation-true:hover .sleeve {
318
+ margin: -30px;
319
+ padding: 60px;
250
320
  }
251
321
  .container.clip-bottom-left-corner-false.clip-top-right-corner-true .sleeve {
252
322
  clip-path: polygon(0% 0%, 0% 0%, calc(100% - 50px) 0%, 100% 50px, 100% 100%, 100% 100%, 0% 100%, 0 100%);