@biggive/components 202303031447.0.0 → 202303171148.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-2d024615.entry.js +1 -0
  6. package/dist/biggive/{p-71054cf6.entry.js → p-41588003.entry.js} +1 -1
  7. package/dist/biggive/{p-0f38685b.entry.js → p-42649676.entry.js} +1 -1
  8. package/dist/biggive/{p-223759f6.entry.js → p-4402efe9.entry.js} +1 -1
  9. package/dist/biggive/p-4a1ba0c4.entry.js +1 -0
  10. package/dist/biggive/p-4adb4dce.entry.js +1 -0
  11. package/dist/biggive/{p-3b378f79.entry.js → p-5406c558.entry.js} +1 -1
  12. package/dist/biggive/p-63abb338.entry.js +1 -0
  13. package/dist/biggive/{p-d7f8a6fd.entry.js → p-87487165.entry.js} +1 -1
  14. package/dist/biggive/{p-eb6aecf0.entry.js → p-87edb8c6.entry.js} +1 -1
  15. package/dist/biggive/p-8feb91ae.entry.js +1 -0
  16. package/dist/biggive/p-b73fddaa.entry.js +1 -0
  17. package/dist/biggive/p-ead5a5ce.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} +433 -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 +213 -0
  80. package/dist/collection/components/biggive-tipping-slider/biggive-tipping-slider.stories.js +63 -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 +115 -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} +426 -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 +18 -0
  151. package/dist/types/components/biggive-tipping-slider/biggive-tipping-slider.stories.d.ts +46 -0
  152. package/dist/types/components.d.ts +200 -164
  153. package/hydrate/index.js +513 -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,224 @@
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: #CBC8C8;
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
+ .fill-primary {
93
+ fill: #2C089B;
94
+ }
95
+
96
+ .fill-secondary {
97
+ fill: #2AF135;
98
+ }
99
+
100
+ .fill-tertiary {
101
+ fill: #FF7272;
102
+ }
103
+
104
+ .fill-brand-1 {
105
+ fill: #B30510;
106
+ }
107
+
108
+ .fill-brand-2 {
109
+ fill: #6E0887;
110
+ }
111
+
112
+ .fill-brand-3 {
113
+ fill: #50B400;
114
+ }
115
+
116
+ .fill-brand-4 {
117
+ fill: #FFE500;
118
+ }
119
+
120
+ .fill-brand-5 {
121
+ fill: #F07D00;
122
+ }
123
+
124
+ .fill-brand-6 {
125
+ fill: #CBC8C8;
126
+ }
127
+
128
+ .fill-brand-mhf-turquoise {
129
+ fill: #62CFC9;
130
+ }
131
+
132
+ .fill-white {
133
+ fill: #FFFFFF;
134
+ }
135
+
136
+ .fill-black {
137
+ fill: #000000;
138
+ }
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
+
156
+ .fill-red {
157
+ fill: red;
158
+ }
159
+
160
+ :host {
161
+ display: contents;
162
+ font-family: "Euclid Triangle", sans-serif;
163
+ font-size: 17px;
164
+ line-height: 24px;
165
+ }
166
+
167
+ .container {
168
+ overflow: hidden;
169
+ padding: 50px 30px 0 30px;
170
+ }
171
+ .container .bar {
172
+ position: relative;
173
+ margin: 25px 0 15px 0;
174
+ background-color: #8A8A8A;
175
+ border-radius: 5px;
176
+ height: 10px;
177
+ }
178
+ .container .bar .handle {
179
+ border-radius: 50%;
180
+ position: absolute;
181
+ width: 40px;
182
+ height: 40px;
183
+ background-color: #2C089B;
184
+ transform: translate(0, -15px);
185
+ cursor: pointer;
186
+ }
187
+ .container .bar .handle .tooltip {
188
+ display: block;
189
+ position: absolute;
190
+ left: 50%;
191
+ transform: translate(-50%, -110%);
192
+ white-space: nowrap;
193
+ box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.25);
194
+ padding: 2px 10px;
195
+ }
196
+ .container .bar .handle .tooltip .donation {
197
+ font-weight: bold;
198
+ }
199
+ .container .bar .handle .tooltip .percentage {
200
+ font-size: 75%;
201
+ }
202
+ .container .labels {
203
+ display: flex;
204
+ justify-content: space-around;
205
+ margin: 20px 15px 15px 15px;
206
+ font-weight: 600;
207
+ }
208
+ .container .labels .label-start {
209
+ text-align: left;
210
+ margin-right: auto;
211
+ }
212
+ .container .labels .label-end {
213
+ text-align: right;
214
+ margin-left: auto;
215
+ }
216
+ .container .reset {
217
+ margin-bottom: 15px;
218
+ display: flex;
219
+ }
220
+ .container .reset .button {
221
+ margin-left: auto;
222
+ cursor: pointer;
223
+ text-decoration: underline;
224
+ }
@@ -0,0 +1,213 @@
1
+ import { h } from '@stencil/core';
2
+ export class BiggiveTippingSlider {
3
+ constructor() {
4
+ this.resetSlider = () => {
5
+ var _a;
6
+ const handle = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.handle');
7
+ const percentageWrap = handle === null || handle === void 0 ? void 0 : handle.querySelector('.percentage-value');
8
+ const donationWrap = handle === null || handle === void 0 ? void 0 : handle.querySelector('.donation-value');
9
+ handle.style.marginLeft = '0px';
10
+ percentageWrap.innerHTML = '0';
11
+ donationWrap.innerHTML = '0';
12
+ };
13
+ this.spaceBelow = 0;
14
+ this.colourScheme = 'primary';
15
+ this.percentageStart = undefined;
16
+ this.percentageEnd = undefined;
17
+ this.donationAmount = undefined;
18
+ this.donationCurrency = undefined;
19
+ }
20
+ format(currencyCode, amount) {
21
+ return Intl.NumberFormat('en-GB', {
22
+ style: 'currency',
23
+ currency: currencyCode,
24
+ }).format(amount);
25
+ }
26
+ componentDidRender() {
27
+ var _a, _b;
28
+ var isMoving = false;
29
+ const handle = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.handle');
30
+ const bar = (_b = this.host.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('.bar');
31
+ const percentageWrap = handle === null || handle === void 0 ? void 0 : handle.querySelector('.percentage-value');
32
+ const donationWrap = handle === null || handle === void 0 ? void 0 : handle.querySelector('.donation-value');
33
+ var move = (e) => {
34
+ var _a;
35
+ if (isMoving) {
36
+ const max = bar.offsetWidth - handle.offsetWidth;
37
+ let pageX;
38
+ if (window.TouchEvent && e instanceof TouchEvent) {
39
+ pageX = (_a = e.touches[0]) === null || _a === void 0 ? void 0 : _a.pageX;
40
+ }
41
+ else {
42
+ // we Know e is a MouseEvent because all platforms that supports TouchEvent would also have
43
+ // a truthy window.TouchEvent - see https://stackoverflow.com/a/32882849/2803757
44
+ pageX = e.pageX;
45
+ }
46
+ if (typeof pageX != 'undefined') {
47
+ const mousePos = pageX - bar.offsetLeft - handle.offsetWidth / 2;
48
+ const position = mousePos > max ? max : mousePos < 0 ? 0 : mousePos;
49
+ const percentage = (position / max) * this.percentageEnd;
50
+ const donation = Math.round(this.donationAmount * (percentage / 100));
51
+ percentageWrap.innerHTML = Math.round(percentage).toString();
52
+ donationWrap.innerHTML = this.format(this.donationCurrency, donation);
53
+ handle.style.marginLeft = position + 'px';
54
+ }
55
+ }
56
+ };
57
+ bar.addEventListener('mousedown', function (e) {
58
+ isMoving = true;
59
+ move(e);
60
+ });
61
+ document.addEventListener('mouseup', function () {
62
+ isMoving = false;
63
+ });
64
+ document.addEventListener('mousemove', function (e) {
65
+ move(e);
66
+ });
67
+ bar.addEventListener('touchstart', function (e) {
68
+ isMoving = true;
69
+ move(e);
70
+ });
71
+ bar.addEventListener('touchend', function () {
72
+ isMoving = false;
73
+ });
74
+ document.addEventListener('touchmove', function (e) {
75
+ move(e);
76
+ });
77
+ }
78
+ render() {
79
+ const currencyFormatted = this.format(this.donationCurrency, 0);
80
+ return (h("div", { class: 'container space-below-' + this.spaceBelow }, h("div", { class: "bar" }, h("div", { class: "handle", id: "handle" }, h("div", { class: "tooltip" }, h("span", { class: "donation" }, h("span", { class: "donation-value" }, currencyFormatted)), "\u00A0", h("span", { class: "percentage" }, "(", h("span", { class: "percentage-value" }, "0"), "%)")))), h("div", { class: "labels" }, h("div", { class: "label-start" }, this.percentageStart, "%"), h("div", { class: "label-end" }, this.percentageEnd, "%")), h("div", { class: "reset" }, h("span", { class: "button", onClick: this.resetSlider }, "Back to default"))));
81
+ }
82
+ static get is() { return "biggive-tipping-slider"; }
83
+ static get encapsulation() { return "shadow"; }
84
+ static get originalStyleUrls() {
85
+ return {
86
+ "$": ["biggive-tipping-slider.scss"]
87
+ };
88
+ }
89
+ static get styleUrls() {
90
+ return {
91
+ "$": ["biggive-tipping-slider.css"]
92
+ };
93
+ }
94
+ static get properties() {
95
+ return {
96
+ "spaceBelow": {
97
+ "type": "number",
98
+ "mutable": false,
99
+ "complexType": {
100
+ "original": "spacingOption",
101
+ "resolved": "0 | 1 | 2 | 3 | 4 | 5 | 6",
102
+ "references": {
103
+ "spacingOption": {
104
+ "location": "import",
105
+ "path": "../../globals/spacing-option"
106
+ }
107
+ }
108
+ },
109
+ "required": false,
110
+ "optional": false,
111
+ "docs": {
112
+ "tags": [],
113
+ "text": ""
114
+ },
115
+ "attribute": "space-below",
116
+ "reflect": false,
117
+ "defaultValue": "0"
118
+ },
119
+ "colourScheme": {
120
+ "type": "string",
121
+ "mutable": false,
122
+ "complexType": {
123
+ "original": "brandColour",
124
+ "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\"",
125
+ "references": {
126
+ "brandColour": {
127
+ "location": "import",
128
+ "path": "../../globals/brand-colour"
129
+ }
130
+ }
131
+ },
132
+ "required": false,
133
+ "optional": false,
134
+ "docs": {
135
+ "tags": [],
136
+ "text": ""
137
+ },
138
+ "attribute": "colour-scheme",
139
+ "reflect": false,
140
+ "defaultValue": "'primary'"
141
+ },
142
+ "percentageStart": {
143
+ "type": "number",
144
+ "mutable": false,
145
+ "complexType": {
146
+ "original": "number",
147
+ "resolved": "number",
148
+ "references": {}
149
+ },
150
+ "required": false,
151
+ "optional": false,
152
+ "docs": {
153
+ "tags": [],
154
+ "text": ""
155
+ },
156
+ "attribute": "percentage-start",
157
+ "reflect": false
158
+ },
159
+ "percentageEnd": {
160
+ "type": "number",
161
+ "mutable": false,
162
+ "complexType": {
163
+ "original": "number",
164
+ "resolved": "number",
165
+ "references": {}
166
+ },
167
+ "required": false,
168
+ "optional": false,
169
+ "docs": {
170
+ "tags": [],
171
+ "text": ""
172
+ },
173
+ "attribute": "percentage-end",
174
+ "reflect": false
175
+ },
176
+ "donationAmount": {
177
+ "type": "number",
178
+ "mutable": false,
179
+ "complexType": {
180
+ "original": "number",
181
+ "resolved": "number",
182
+ "references": {}
183
+ },
184
+ "required": false,
185
+ "optional": false,
186
+ "docs": {
187
+ "tags": [],
188
+ "text": ""
189
+ },
190
+ "attribute": "donation-amount",
191
+ "reflect": false
192
+ },
193
+ "donationCurrency": {
194
+ "type": "string",
195
+ "mutable": false,
196
+ "complexType": {
197
+ "original": "'GBP' | 'USD'",
198
+ "resolved": "\"GBP\" | \"USD\"",
199
+ "references": {}
200
+ },
201
+ "required": true,
202
+ "optional": false,
203
+ "docs": {
204
+ "tags": [],
205
+ "text": "ISO-4217 currency code (e.g. GBP, USD)"
206
+ },
207
+ "attribute": "donation-currency",
208
+ "reflect": false
209
+ }
210
+ };
211
+ }
212
+ static get elementRef() { return "host"; }
213
+ }
@@ -0,0 +1,63 @@
1
+ export default {
2
+ title: 'Components/Content',
3
+ argTypes: {
4
+ spaceBelow: {
5
+ name: 'Space below',
6
+ control: {
7
+ type: 'select',
8
+ options: [0, 1, 2, 3, 4, 5, 6],
9
+ },
10
+ },
11
+ colourScheme: {
12
+ name: 'Colour Scheme',
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
+ percentageStart: {
19
+ name: 'Percentage Start',
20
+ control: {
21
+ type: 'number',
22
+ },
23
+ },
24
+ percentageEnd: {
25
+ name: 'Percentage End',
26
+ control: {
27
+ type: 'number',
28
+ },
29
+ },
30
+ donationAmount: {
31
+ name: 'Donation Amount',
32
+ control: {
33
+ type: 'number',
34
+ },
35
+ },
36
+ donationCurrency: {
37
+ name: 'Donation Currency',
38
+ control: {
39
+ type: 'select',
40
+ options: ['GBP', 'USD'],
41
+ },
42
+ },
43
+ },
44
+ };
45
+ const Template = args => `
46
+ <biggive-tipping-slider
47
+ space-below="${args.spaceBelow}"
48
+ colour-scheme="${args.colourScheme}"
49
+ percentage-start="${args.percentageStart}"
50
+ percentage-end="${args.percentageEnd}"
51
+ donation-amount="${args.donationAmount}"
52
+ donation-currency="${args.donationCurrency}"
53
+ ></biggive-tipping-slider>
54
+ `;
55
+ export const TippingSliderComponent = Template.bind({});
56
+ TippingSliderComponent.args = {
57
+ spaceBelow: 4,
58
+ colourScheme: 'primary',
59
+ percentageStart: 0,
60
+ percentageEnd: 30,
61
+ donationAmount: 200,
62
+ donationCurrency: 'GBP',
63
+ };
@@ -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
  .space-above-0 {
68
93
  margin-top: 0;
69
94
  }
@@ -175,6 +200,26 @@ a:hover {
175
200
  color: #000000;
176
201
  }
177
202
 
203
+ .text-colour-hover-grey-extra-light:hover,
204
+ .text-colour-grey-extra-light {
205
+ color: #D7D7D7;
206
+ }
207
+
208
+ .text-colour-hover-grey-light:hover,
209
+ .text-colour-grey-light {
210
+ color: #E8E8E8;
211
+ }
212
+
213
+ .text-colour-hover-grey-medium:hover,
214
+ .text-colour-grey-medium {
215
+ color: #8A8A8A;
216
+ }
217
+
218
+ .text-colour-hover-grey-dark:hover,
219
+ .text-colour-grey-dark {
220
+ color: #4A4A4A;
221
+ }
222
+
178
223
  :host {
179
224
  display: contents;
180
225
  font-family: "Euclid Triangle", sans-serif;
@@ -120,6 +120,26 @@ 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
  }
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface BiggiveAccordionEntry extends Components.BiggiveAccordionEntry, HTMLElement {}
4
+ export const BiggiveAccordionEntry: {
5
+ prototype: BiggiveAccordionEntry;
6
+ new (): BiggiveAccordionEntry;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,37 @@
1
+ import { proxyCustomElement, HTMLElement } from '@stencil/core/internal/client';
2
+
3
+ const biggiveAccordionEntryCss = "a{color:inherit;text-decoration:underline}a:hover{text-decoration:none}:host{display:block}";
4
+
5
+ const BiggiveAccordionEntry$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
+ constructor() {
7
+ super();
8
+ this.__registerHost();
9
+ this.__attachShadow();
10
+ this.heading = '';
11
+ }
12
+ render() {
13
+ return null;
14
+ }
15
+ get host() { return this; }
16
+ static get style() { return biggiveAccordionEntryCss; }
17
+ }, [1, "biggive-accordion-entry", {
18
+ "heading": [1]
19
+ }]);
20
+ function defineCustomElement$1() {
21
+ if (typeof customElements === "undefined") {
22
+ return;
23
+ }
24
+ const components = ["biggive-accordion-entry"];
25
+ components.forEach(tagName => { switch (tagName) {
26
+ case "biggive-accordion-entry":
27
+ if (!customElements.get(tagName)) {
28
+ customElements.define(tagName, BiggiveAccordionEntry$1);
29
+ }
30
+ break;
31
+ } });
32
+ }
33
+
34
+ const BiggiveAccordionEntry = BiggiveAccordionEntry$1;
35
+ const defineCustomElement = defineCustomElement$1;
36
+
37
+ export { BiggiveAccordionEntry, defineCustomElement };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface BiggiveAccordion extends Components.BiggiveAccordion, HTMLElement {}
4
+ export const BiggiveAccordion: {
5
+ prototype: BiggiveAccordion;
6
+ new (): BiggiveAccordion;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;