@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,394 @@
1
+ import { h } from '@stencil/core';
2
+ export class BiggiveTimeline {
3
+ constructor() {
4
+ this.currentTab = 0;
5
+ this.tabHeadings = [];
6
+ this.children = [];
7
+ this.spaceBelow = 0;
8
+ this.textColour = 'black';
9
+ this.selectedTextColour = 'primary';
10
+ this.navigationHighlightColour = 'grey-medium';
11
+ this.selectedNavigationHighlightColour = 'primary';
12
+ this.buttonBackgroundColour = 'white';
13
+ this.buttonIconColour = 'primary';
14
+ this.entryBackgroundColour = 'white';
15
+ this.entryHighlightColour = 'secondary';
16
+ this.entryDateColour = 'black';
17
+ this.entryTitleColour = 'primary';
18
+ this.entryTextColour = 'black';
19
+ }
20
+ componentWillLoad() {
21
+ this.children = Array.from(this.host.children);
22
+ let tabHeadings = this.tabHeadings;
23
+ this.children.forEach(function (entry) {
24
+ let tab = entry.date.substring(0, 4);
25
+ if (!tabHeadings.includes(tab)) {
26
+ tabHeadings.push(tab);
27
+ }
28
+ });
29
+ }
30
+ componentDidRender() {
31
+ this.showTab(0);
32
+ }
33
+ /*
34
+ * Shows the i'th element in the timeline, counting from zero. Does nothing if i out of range.
35
+ */
36
+ showTab(i) {
37
+ var _a, _b, _c;
38
+ const tabs = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.navigation ul li');
39
+ const entries = (_b = this.host.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelectorAll('.entry');
40
+ if (i >= 0 && i <= (tabs === null || tabs === void 0 ? void 0 : tabs.length) - 1) {
41
+ this.currentTab = i;
42
+ let currentTabTitle = (_c = tabs[i]) === null || _c === void 0 ? void 0 : _c.innerHTML;
43
+ let j = 0;
44
+ tabs === null || tabs === void 0 ? void 0 : tabs.forEach(function (tab) {
45
+ if (i == j) {
46
+ tab.classList.add('selected');
47
+ }
48
+ else {
49
+ tab.classList.remove('selected');
50
+ }
51
+ j++;
52
+ });
53
+ entries.forEach(function (entry) {
54
+ var _a;
55
+ entry.style.display = ((_a = entry.getAttribute('data-date')) === null || _a === void 0 ? void 0 : _a.substring(0, 4)) == currentTabTitle ? 'block' : 'none';
56
+ });
57
+ }
58
+ }
59
+ clickTabHandler(e) {
60
+ let i = 0;
61
+ for (let el of e.target.parentElement.children) {
62
+ if (el == e.target) {
63
+ this.showTab(i);
64
+ return;
65
+ }
66
+ i++;
67
+ }
68
+ }
69
+ clickPrevHandler() {
70
+ this.showTab(this.currentTab - 1);
71
+ }
72
+ clickNextHandler() {
73
+ this.showTab(this.currentTab + 1);
74
+ }
75
+ render() {
76
+ return (h("div", { class: 'container space-below-' +
77
+ this.spaceBelow +
78
+ ' text-colour-' +
79
+ this.textColour +
80
+ ' selected-text-colour-' +
81
+ this.selectedTextColour +
82
+ ' navigation-highlight-colour-' +
83
+ this.navigationHighlightColour +
84
+ ' selected-navigation-highlight-colour-' +
85
+ this.selectedNavigationHighlightColour +
86
+ ' button-background-colour-' +
87
+ this.buttonBackgroundColour +
88
+ ' button-icon-colour-' +
89
+ this.buttonIconColour +
90
+ ' entry-background-colour-' +
91
+ this.entryBackgroundColour +
92
+ ' entry-highlight-colour-' +
93
+ this.entryHighlightColour +
94
+ ' entry-date-colour-' +
95
+ this.entryDateColour +
96
+ ' entry-title-colour-' +
97
+ this.entryTitleColour +
98
+ ' entry-text-colour-' +
99
+ this.entryTextColour }, 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.tabHeadings.map(tab => (h("li", { onClick: event => this.clickTabHandler(event) }, tab)))), 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("div", { class: "entry-wrap" }, this.children.map(entry => (h("div", { class: "entry", "data-date": entry.date }, h("div", { class: "date" }, entry.date), h("h4", { class: "title" }, entry.heading), h("div", { class: "content", innerHTML: entry.innerHTML })))))));
100
+ }
101
+ static get is() { return "biggive-timeline"; }
102
+ static get encapsulation() { return "shadow"; }
103
+ static get originalStyleUrls() {
104
+ return {
105
+ "$": ["biggive-timeline.scss"]
106
+ };
107
+ }
108
+ static get styleUrls() {
109
+ return {
110
+ "$": ["biggive-timeline.css"]
111
+ };
112
+ }
113
+ static get properties() {
114
+ return {
115
+ "spaceBelow": {
116
+ "type": "number",
117
+ "mutable": false,
118
+ "complexType": {
119
+ "original": "spacingOption",
120
+ "resolved": "0 | 1 | 2 | 3 | 4 | 5 | 6",
121
+ "references": {
122
+ "spacingOption": {
123
+ "location": "import",
124
+ "path": "../../globals/spacing-option"
125
+ }
126
+ }
127
+ },
128
+ "required": false,
129
+ "optional": false,
130
+ "docs": {
131
+ "tags": [],
132
+ "text": ""
133
+ },
134
+ "attribute": "space-below",
135
+ "reflect": false,
136
+ "defaultValue": "0"
137
+ },
138
+ "textColour": {
139
+ "type": "string",
140
+ "mutable": false,
141
+ "complexType": {
142
+ "original": "brandColour",
143
+ "resolved": "\"black\" | \"brand-1\" | \"brand-2\" | \"brand-3\" | \"brand-4\" | \"brand-5\" | \"brand-6\" | \"grey-dark\" | \"grey-extra-light\" | \"grey-light\" | \"grey-medium\" | \"primary\" | \"secondary\" | \"tertiary\" | \"white\"",
144
+ "references": {
145
+ "brandColour": {
146
+ "location": "import",
147
+ "path": "../../globals/brand-colour"
148
+ }
149
+ }
150
+ },
151
+ "required": false,
152
+ "optional": false,
153
+ "docs": {
154
+ "tags": [],
155
+ "text": ""
156
+ },
157
+ "attribute": "text-colour",
158
+ "reflect": false,
159
+ "defaultValue": "'black'"
160
+ },
161
+ "selectedTextColour": {
162
+ "type": "string",
163
+ "mutable": false,
164
+ "complexType": {
165
+ "original": "brandColour",
166
+ "resolved": "\"black\" | \"brand-1\" | \"brand-2\" | \"brand-3\" | \"brand-4\" | \"brand-5\" | \"brand-6\" | \"grey-dark\" | \"grey-extra-light\" | \"grey-light\" | \"grey-medium\" | \"primary\" | \"secondary\" | \"tertiary\" | \"white\"",
167
+ "references": {
168
+ "brandColour": {
169
+ "location": "import",
170
+ "path": "../../globals/brand-colour"
171
+ }
172
+ }
173
+ },
174
+ "required": false,
175
+ "optional": false,
176
+ "docs": {
177
+ "tags": [],
178
+ "text": ""
179
+ },
180
+ "attribute": "selected-text-colour",
181
+ "reflect": false,
182
+ "defaultValue": "'primary'"
183
+ },
184
+ "navigationHighlightColour": {
185
+ "type": "string",
186
+ "mutable": false,
187
+ "complexType": {
188
+ "original": "brandColour",
189
+ "resolved": "\"black\" | \"brand-1\" | \"brand-2\" | \"brand-3\" | \"brand-4\" | \"brand-5\" | \"brand-6\" | \"grey-dark\" | \"grey-extra-light\" | \"grey-light\" | \"grey-medium\" | \"primary\" | \"secondary\" | \"tertiary\" | \"white\"",
190
+ "references": {
191
+ "brandColour": {
192
+ "location": "import",
193
+ "path": "../../globals/brand-colour"
194
+ }
195
+ }
196
+ },
197
+ "required": false,
198
+ "optional": false,
199
+ "docs": {
200
+ "tags": [],
201
+ "text": ""
202
+ },
203
+ "attribute": "navigation-highlight-colour",
204
+ "reflect": false,
205
+ "defaultValue": "'grey-medium'"
206
+ },
207
+ "selectedNavigationHighlightColour": {
208
+ "type": "string",
209
+ "mutable": false,
210
+ "complexType": {
211
+ "original": "brandColour",
212
+ "resolved": "\"black\" | \"brand-1\" | \"brand-2\" | \"brand-3\" | \"brand-4\" | \"brand-5\" | \"brand-6\" | \"grey-dark\" | \"grey-extra-light\" | \"grey-light\" | \"grey-medium\" | \"primary\" | \"secondary\" | \"tertiary\" | \"white\"",
213
+ "references": {
214
+ "brandColour": {
215
+ "location": "import",
216
+ "path": "../../globals/brand-colour"
217
+ }
218
+ }
219
+ },
220
+ "required": false,
221
+ "optional": false,
222
+ "docs": {
223
+ "tags": [],
224
+ "text": ""
225
+ },
226
+ "attribute": "selected-navigation-highlight-colour",
227
+ "reflect": false,
228
+ "defaultValue": "'primary'"
229
+ },
230
+ "buttonBackgroundColour": {
231
+ "type": "string",
232
+ "mutable": false,
233
+ "complexType": {
234
+ "original": "brandColour",
235
+ "resolved": "\"black\" | \"brand-1\" | \"brand-2\" | \"brand-3\" | \"brand-4\" | \"brand-5\" | \"brand-6\" | \"grey-dark\" | \"grey-extra-light\" | \"grey-light\" | \"grey-medium\" | \"primary\" | \"secondary\" | \"tertiary\" | \"white\"",
236
+ "references": {
237
+ "brandColour": {
238
+ "location": "import",
239
+ "path": "../../globals/brand-colour"
240
+ }
241
+ }
242
+ },
243
+ "required": false,
244
+ "optional": false,
245
+ "docs": {
246
+ "tags": [],
247
+ "text": ""
248
+ },
249
+ "attribute": "button-background-colour",
250
+ "reflect": false,
251
+ "defaultValue": "'white'"
252
+ },
253
+ "buttonIconColour": {
254
+ "type": "string",
255
+ "mutable": false,
256
+ "complexType": {
257
+ "original": "brandColour",
258
+ "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\"",
259
+ "references": {
260
+ "brandColour": {
261
+ "location": "import",
262
+ "path": "../../globals/brand-colour"
263
+ }
264
+ }
265
+ },
266
+ "required": false,
267
+ "optional": false,
268
+ "docs": {
269
+ "tags": [],
270
+ "text": ""
271
+ },
272
+ "attribute": "button-icon-colour",
273
+ "reflect": false,
274
+ "defaultValue": "'primary'"
275
+ },
276
+ "entryBackgroundColour": {
277
+ "type": "string",
278
+ "mutable": false,
279
+ "complexType": {
280
+ "original": "brandColour",
281
+ "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\"",
282
+ "references": {
283
+ "brandColour": {
284
+ "location": "import",
285
+ "path": "../../globals/brand-colour"
286
+ }
287
+ }
288
+ },
289
+ "required": false,
290
+ "optional": false,
291
+ "docs": {
292
+ "tags": [],
293
+ "text": ""
294
+ },
295
+ "attribute": "entry-background-colour",
296
+ "reflect": false,
297
+ "defaultValue": "'white'"
298
+ },
299
+ "entryHighlightColour": {
300
+ "type": "string",
301
+ "mutable": false,
302
+ "complexType": {
303
+ "original": "brandColour",
304
+ "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\"",
305
+ "references": {
306
+ "brandColour": {
307
+ "location": "import",
308
+ "path": "../../globals/brand-colour"
309
+ }
310
+ }
311
+ },
312
+ "required": false,
313
+ "optional": false,
314
+ "docs": {
315
+ "tags": [],
316
+ "text": ""
317
+ },
318
+ "attribute": "entry-highlight-colour",
319
+ "reflect": false,
320
+ "defaultValue": "'secondary'"
321
+ },
322
+ "entryDateColour": {
323
+ "type": "string",
324
+ "mutable": false,
325
+ "complexType": {
326
+ "original": "brandColour",
327
+ "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\"",
328
+ "references": {
329
+ "brandColour": {
330
+ "location": "import",
331
+ "path": "../../globals/brand-colour"
332
+ }
333
+ }
334
+ },
335
+ "required": false,
336
+ "optional": false,
337
+ "docs": {
338
+ "tags": [],
339
+ "text": ""
340
+ },
341
+ "attribute": "entry-date-colour",
342
+ "reflect": false,
343
+ "defaultValue": "'black'"
344
+ },
345
+ "entryTitleColour": {
346
+ "type": "string",
347
+ "mutable": false,
348
+ "complexType": {
349
+ "original": "brandColour",
350
+ "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\"",
351
+ "references": {
352
+ "brandColour": {
353
+ "location": "import",
354
+ "path": "../../globals/brand-colour"
355
+ }
356
+ }
357
+ },
358
+ "required": false,
359
+ "optional": false,
360
+ "docs": {
361
+ "tags": [],
362
+ "text": ""
363
+ },
364
+ "attribute": "entry-title-colour",
365
+ "reflect": false,
366
+ "defaultValue": "'primary'"
367
+ },
368
+ "entryTextColour": {
369
+ "type": "string",
370
+ "mutable": false,
371
+ "complexType": {
372
+ "original": "brandColour",
373
+ "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\"",
374
+ "references": {
375
+ "brandColour": {
376
+ "location": "import",
377
+ "path": "../../globals/brand-colour"
378
+ }
379
+ }
380
+ },
381
+ "required": false,
382
+ "optional": false,
383
+ "docs": {
384
+ "tags": [],
385
+ "text": ""
386
+ },
387
+ "attribute": "entry-text-colour",
388
+ "reflect": false,
389
+ "defaultValue": "'black'"
390
+ }
391
+ };
392
+ }
393
+ static get elementRef() { return "host"; }
394
+ }
@@ -0,0 +1,133 @@
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: 'Default 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
+ selectedTextColour: {
19
+ name: 'Selected text colour',
20
+ control: {
21
+ type: 'select',
22
+ options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
23
+ },
24
+ },
25
+ navigationHighlightColour: {
26
+ name: 'Navigation highlight colour',
27
+ control: {
28
+ type: 'select',
29
+ options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
30
+ },
31
+ },
32
+ selectedNavigationHighlightColour: {
33
+ name: 'Selected navigation highlight colour',
34
+ control: {
35
+ type: 'select',
36
+ options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
37
+ },
38
+ },
39
+ buttonBackgroundColour: {
40
+ name: 'Button background colour',
41
+ control: {
42
+ type: 'select',
43
+ options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
44
+ },
45
+ },
46
+ buttonIconColour: {
47
+ name: 'Button icon colour',
48
+ control: {
49
+ type: 'select',
50
+ options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
51
+ },
52
+ },
53
+ entryBackgroundColour: {
54
+ name: 'Entry background colour',
55
+ control: {
56
+ type: 'select',
57
+ options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
58
+ },
59
+ },
60
+ entryHighlightColour: {
61
+ name: 'Entry highlight colour',
62
+ control: {
63
+ type: 'select',
64
+ options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
65
+ },
66
+ },
67
+ entryDateColour: {
68
+ name: 'Entry date colour',
69
+ control: {
70
+ type: 'select',
71
+ options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
72
+ },
73
+ },
74
+ entryTitleColour: {
75
+ name: 'Entry title colour',
76
+ control: {
77
+ type: 'select',
78
+ options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
79
+ },
80
+ },
81
+ entryTextColour: {
82
+ name: 'Entry text colour',
83
+ control: {
84
+ type: 'select',
85
+ options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
86
+ },
87
+ },
88
+ },
89
+ };
90
+ const Template = args => `
91
+ <biggive-timeline
92
+ space-below="${args.spaceBelow}"
93
+ text-colour="${args.textColour}"
94
+ selected-text-colour="${args.selectedTextColour}"
95
+ navigation-highlight-colour="${args.navigationHighlightColour}"
96
+ selected-navigation-highlight-colour="${args.selectedNavigationHighlightColour}"
97
+ button-background-colour="${args.buttonBackgroundColour}"
98
+ button-icon-colour="${args.buttonIconColour}"
99
+ entry-background-colour="${args.entryBackgroundColour}"
100
+ entry-highlight-colour="${args.entryHighlightColour}"
101
+ entry-date-colour="${args.entryDateColour}"
102
+ entry-title-colour="${args.entryTitleColour}"
103
+ entry-content-colour="${args.entryContentColour}"
104
+ >
105
+ <biggive-timeline-entry heading="Heading 1" date="2023-01-01">
106
+ <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>
107
+ <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>
108
+ </biggive-timeline-entry>
109
+ <biggive-timeline-entry heading="Heading 2" date="2023-01-01">
110
+ <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>
111
+ <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>
112
+ </biggive-timeline-entry>
113
+ <biggive-timeline-entry heading="Heading 3" date="2022-01-01">
114
+ <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>
115
+ <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>
116
+ </biggive-timeline-entry>
117
+ </biggive-timeline>
118
+ `;
119
+ export const TimelineComponent = Template.bind({});
120
+ TimelineComponent.args = {
121
+ spaceBelow: 4,
122
+ textColour: 'black',
123
+ selectedTextColour: 'primary',
124
+ navigationHighlightColour: 'grey-medium',
125
+ selectedNavigationHighlightColour: 'primary',
126
+ buttonBackgroundColour: 'white',
127
+ buttonIconColour: 'primary',
128
+ entryBackgroundColour: 'white',
129
+ entryHighlightColour: 'tertiary',
130
+ entryDateColour: 'black',
131
+ entryTitleColour: 'primary',
132
+ entryContentColour: 'black',
133
+ };
@@ -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,59 @@
1
+ export class BiggiveTimelineEntry {
2
+ constructor() {
3
+ this.date = undefined;
4
+ this.heading = undefined;
5
+ }
6
+ render() {
7
+ return null;
8
+ }
9
+ static get is() { return "biggive-timeline-entry"; }
10
+ static get encapsulation() { return "shadow"; }
11
+ static get originalStyleUrls() {
12
+ return {
13
+ "$": ["biggive-timeline-entry.scss"]
14
+ };
15
+ }
16
+ static get styleUrls() {
17
+ return {
18
+ "$": ["biggive-timeline-entry.css"]
19
+ };
20
+ }
21
+ static get properties() {
22
+ return {
23
+ "date": {
24
+ "type": "string",
25
+ "mutable": false,
26
+ "complexType": {
27
+ "original": "string",
28
+ "resolved": "string",
29
+ "references": {}
30
+ },
31
+ "required": false,
32
+ "optional": false,
33
+ "docs": {
34
+ "tags": [],
35
+ "text": "Should be in the format 'YYYY-mm-dd', for example '2023-01-01'"
36
+ },
37
+ "attribute": "date",
38
+ "reflect": false
39
+ },
40
+ "heading": {
41
+ "type": "string",
42
+ "mutable": false,
43
+ "complexType": {
44
+ "original": "string",
45
+ "resolved": "string",
46
+ "references": {}
47
+ },
48
+ "required": false,
49
+ "optional": false,
50
+ "docs": {
51
+ "tags": [],
52
+ "text": ""
53
+ },
54
+ "attribute": "heading",
55
+ "reflect": false
56
+ }
57
+ };
58
+ }
59
+ }