@biggive/components 202303031121.0.0 → 202303061752.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/dist/biggive/biggive.esm.js +1 -1
  2. package/dist/biggive/p-01d03da2.entry.js +1 -0
  3. package/dist/biggive/{p-fe9f3e72.entry.js → p-26c0b6cf.entry.js} +1 -1
  4. package/dist/biggive/{p-8876011d.entry.js → p-2c639bd5.entry.js} +1 -1
  5. package/dist/biggive/{p-71054cf6.entry.js → p-41588003.entry.js} +1 -1
  6. package/dist/biggive/{p-0f38685b.entry.js → p-42649676.entry.js} +1 -1
  7. package/dist/biggive/{p-223759f6.entry.js → p-4402efe9.entry.js} +1 -1
  8. package/dist/biggive/p-4a1ba0c4.entry.js +1 -0
  9. package/dist/biggive/p-4adb4dce.entry.js +1 -0
  10. package/dist/biggive/{p-3b378f79.entry.js → p-5406c558.entry.js} +1 -1
  11. package/dist/biggive/p-63abb338.entry.js +1 -0
  12. package/dist/biggive/{p-d7f8a6fd.entry.js → p-87487165.entry.js} +1 -1
  13. package/dist/biggive/{p-eb6aecf0.entry.js → p-87edb8c6.entry.js} +1 -1
  14. package/dist/biggive/p-8feb91ae.entry.js +1 -0
  15. package/dist/biggive/p-b73fddaa.entry.js +1 -0
  16. package/dist/biggive/p-ead5a5ce.entry.js +1 -0
  17. package/dist/biggive/p-ee4f16a8.entry.js +1 -0
  18. package/dist/biggive/{p-f8e38bb9.entry.js → p-f375edb7.entry.js} +1 -1
  19. package/dist/biggive/p-f6dedf7d.entry.js +1 -0
  20. package/dist/biggive/{p-acf3bcd9.js → p-ff8bc382.js} +2 -2
  21. package/dist/cjs/{biggive-back-to-top_27.cjs.entry.js → biggive-accordion_35.cjs.entry.js} +427 -12
  22. package/dist/cjs/biggive-article-card.cjs.entry.js +2 -2
  23. package/dist/cjs/biggive-basic-card.cjs.entry.js +6 -3
  24. package/dist/cjs/biggive-beneficiary-icon.cjs.entry.js +2 -2
  25. package/dist/cjs/biggive-biography-card.cjs.entry.js +1 -1
  26. package/dist/cjs/biggive-boxed-content.cjs.entry.js +2 -2
  27. package/dist/cjs/biggive-category-icon.cjs.entry.js +2 -2
  28. package/dist/cjs/biggive-form.cjs.entry.js +1 -1
  29. package/dist/cjs/biggive-formatted-text.cjs.entry.js +2 -2
  30. package/dist/cjs/biggive-header.cjs.entry.js +1 -1
  31. package/dist/cjs/biggive-icon-group.cjs.entry.js +1 -1
  32. package/dist/cjs/biggive-nav-group.cjs.entry.js +1 -1
  33. package/dist/cjs/biggive-nav-item.cjs.entry.js +1 -1
  34. package/dist/cjs/biggive-popup-standalone.cjs.entry.js +1 -1
  35. package/dist/cjs/biggive-search.cjs.entry.js +1 -1
  36. package/dist/cjs/biggive-table.cjs.entry.js +2 -2
  37. package/dist/cjs/biggive-text-input.cjs.entry.js +1 -1
  38. package/dist/cjs/biggive-video.cjs.entry.js +1 -1
  39. package/dist/cjs/biggive.cjs.js +2 -2
  40. package/dist/cjs/{index-4ae5dbd7.js → index-8dd1da4d.js} +3 -0
  41. package/dist/cjs/loader.cjs.js +2 -2
  42. package/dist/collection/collection-manifest.json +6 -0
  43. package/dist/collection/components/biggive-accordion/biggive-accordion.css +315 -0
  44. package/dist/collection/components/biggive-accordion/biggive-accordion.js +114 -0
  45. package/dist/collection/components/biggive-accordion/biggive-accordion.stories.js +52 -0
  46. package/dist/collection/components/biggive-accordion-entry/biggive-accordion-entry.css +14 -0
  47. package/dist/collection/components/biggive-accordion-entry/biggive-accordion-entry.js +43 -0
  48. package/dist/collection/components/biggive-article-card/biggive-article-card.css +45 -0
  49. package/dist/collection/components/biggive-basic-card/biggive-basic-card.css +70 -0
  50. package/dist/collection/components/biggive-basic-card/biggive-basic-card.js +77 -31
  51. package/dist/collection/components/biggive-beneficiary-icon/biggive-beneficiary-icon.css +65 -0
  52. package/dist/collection/components/biggive-boxed-content/biggive-boxed-content.css +25 -0
  53. package/dist/collection/components/biggive-call-to-action/biggive-call-to-action.css +20 -0
  54. package/dist/collection/components/biggive-carousel/biggive-carousel.css +223 -0
  55. package/dist/collection/components/biggive-carousel/biggive-carousel.js +161 -0
  56. package/dist/collection/components/biggive-carousel/biggive-carousel.stories.js +84 -0
  57. package/dist/collection/components/biggive-category-icon/biggive-category-icon.css +65 -0
  58. package/dist/collection/components/biggive-formatted-text/biggive-formatted-text.css +20 -0
  59. package/dist/collection/components/biggive-hero-image/biggive-hero-image.css +88 -18
  60. package/dist/collection/components/biggive-hero-image/biggive-hero-image.js +68 -19
  61. package/dist/collection/components/biggive-hero-image/biggive-hero-image.stories.js +2 -0
  62. package/dist/collection/components/biggive-image-feature/biggive-image-feature.css +20 -0
  63. package/dist/collection/components/biggive-main-menu/biggive-main-menu.css +9 -1
  64. package/dist/collection/components/biggive-main-menu/biggive-main-menu.js +8 -0
  65. package/dist/collection/components/biggive-misc-icon/biggive-misc-icon.css +89 -0
  66. package/dist/collection/components/biggive-quote/biggive-quote.css +65 -0
  67. package/dist/collection/components/biggive-quote/biggive-quote.js +45 -11
  68. package/dist/collection/components/biggive-social-icon/biggive-social-icon.css +113 -0
  69. package/dist/collection/components/biggive-tab/biggive-tab.js +2 -2
  70. package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.css +355 -0
  71. package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.js +206 -12
  72. package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.stories.js +48 -3
  73. package/dist/collection/components/biggive-table/biggive-table.css +41 -0
  74. package/dist/collection/components/biggive-table/biggive-table.js +8 -3
  75. package/dist/collection/components/biggive-timeline/biggive-timeline.css +733 -0
  76. package/dist/collection/components/biggive-timeline/biggive-timeline.js +394 -0
  77. package/dist/collection/components/biggive-timeline/biggive-timeline.stories.js +133 -0
  78. package/dist/collection/components/biggive-timeline-entry/biggive-timeline-entry.css +14 -0
  79. package/dist/collection/components/biggive-timeline-entry/biggive-timeline-entry.js +59 -0
  80. package/dist/collection/components/biggive-tipping-slider/biggive-tipping-slider.css +224 -0
  81. package/dist/collection/components/biggive-tipping-slider/biggive-tipping-slider.js +198 -0
  82. package/dist/collection/components/biggive-tipping-slider/biggive-tipping-slider.stories.js +62 -0
  83. package/dist/collection/components/biggive-totalizer/biggive-totalizer.css +45 -0
  84. package/dist/collection/components/biggive-video-feature/biggive-video-feature.css +20 -0
  85. package/dist/components/biggive-accordion-entry.d.ts +11 -0
  86. package/dist/components/biggive-accordion-entry.js +37 -0
  87. package/dist/components/biggive-accordion.d.ts +11 -0
  88. package/dist/components/biggive-accordion.js +58 -0
  89. package/dist/components/biggive-article-card.js +1 -1
  90. package/dist/components/biggive-basic-card.js +7 -3
  91. package/dist/components/biggive-beneficiary-icon.js +1 -1
  92. package/dist/components/biggive-boxed-content.js +1 -1
  93. package/dist/components/biggive-call-to-action.js +1 -1
  94. package/dist/components/biggive-carousel.d.ts +11 -0
  95. package/dist/components/biggive-carousel.js +88 -0
  96. package/dist/components/biggive-category-icon.js +1 -1
  97. package/dist/components/biggive-formatted-text.js +1 -1
  98. package/dist/components/biggive-hero-image.js +4 -2
  99. package/dist/components/biggive-image-feature.js +1 -1
  100. package/dist/components/biggive-main-menu.js +9 -1
  101. package/dist/components/biggive-misc-icon2.js +1 -1
  102. package/dist/components/biggive-quote.js +5 -3
  103. package/dist/components/biggive-social-icon.js +1 -1
  104. package/dist/components/biggive-tab.js +1 -1
  105. package/dist/components/biggive-tabbed-content.js +78 -4
  106. package/dist/components/biggive-table.js +1 -1
  107. package/dist/components/biggive-timeline-entry.d.ts +11 -0
  108. package/dist/components/biggive-timeline-entry.js +38 -0
  109. package/dist/components/biggive-timeline.d.ts +11 -0
  110. package/dist/components/biggive-timeline.js +140 -0
  111. package/dist/components/biggive-tipping-slider.d.ts +11 -0
  112. package/dist/components/biggive-tipping-slider.js +100 -0
  113. package/dist/components/biggive-totalizer.js +1 -1
  114. package/dist/components/biggive-video-feature.js +1 -1
  115. package/dist/components/index.d.ts +6 -0
  116. package/dist/components/index.js +6 -0
  117. package/dist/esm/{biggive-back-to-top_27.entry.js → biggive-accordion_35.entry.js} +420 -13
  118. package/dist/esm/biggive-article-card.entry.js +2 -2
  119. package/dist/esm/biggive-basic-card.entry.js +6 -3
  120. package/dist/esm/biggive-beneficiary-icon.entry.js +2 -2
  121. package/dist/esm/biggive-biography-card.entry.js +1 -1
  122. package/dist/esm/biggive-boxed-content.entry.js +2 -2
  123. package/dist/esm/biggive-category-icon.entry.js +2 -2
  124. package/dist/esm/biggive-form.entry.js +1 -1
  125. package/dist/esm/biggive-formatted-text.entry.js +2 -2
  126. package/dist/esm/biggive-header.entry.js +1 -1
  127. package/dist/esm/biggive-icon-group.entry.js +1 -1
  128. package/dist/esm/biggive-nav-group.entry.js +1 -1
  129. package/dist/esm/biggive-nav-item.entry.js +1 -1
  130. package/dist/esm/biggive-popup-standalone.entry.js +1 -1
  131. package/dist/esm/biggive-search.entry.js +1 -1
  132. package/dist/esm/biggive-table.entry.js +2 -2
  133. package/dist/esm/biggive-text-input.entry.js +1 -1
  134. package/dist/esm/biggive-video.entry.js +1 -1
  135. package/dist/esm/biggive.js +2 -2
  136. package/dist/esm/{index-43541c5f.js → index-801eebfb.js} +4 -1
  137. package/dist/esm/loader.js +2 -2
  138. package/dist/types/components/biggive-accordion/biggive-accordion.d.ts +12 -0
  139. package/dist/types/components/biggive-accordion/biggive-accordion.stories.d.ts +28 -0
  140. package/dist/types/components/biggive-accordion-entry/biggive-accordion-entry.d.ts +5 -0
  141. package/dist/types/components/biggive-basic-card/biggive-basic-card.d.ts +8 -50
  142. package/dist/types/components/biggive-carousel/biggive-carousel.d.ts +18 -0
  143. package/dist/types/components/biggive-carousel/biggive-carousel.stories.d.ts +35 -0
  144. package/dist/types/components/biggive-hero-image/biggive-hero-image.d.ts +14 -8
  145. package/dist/types/components/biggive-main-menu/biggive-main-menu.d.ts +1 -0
  146. package/dist/types/components/biggive-quote/biggive-quote.d.ts +5 -14
  147. package/dist/types/components/biggive-tab/biggive-tab.d.ts +0 -3
  148. package/dist/types/components/biggive-tabbed-content/biggive-tabbed-content.d.ts +18 -8
  149. package/dist/types/components/biggive-tabbed-content/biggive-tabbed-content.stories.d.ts +36 -1
  150. package/dist/types/components/biggive-table/biggive-table.d.ts +2 -1
  151. package/dist/types/components/biggive-timeline/biggive-timeline.d.ts +27 -0
  152. package/dist/types/components/biggive-timeline/biggive-timeline.stories.d.ts +91 -0
  153. package/dist/types/components/biggive-timeline-entry/biggive-timeline-entry.d.ts +8 -0
  154. package/dist/types/components/biggive-tipping-slider/biggive-tipping-slider.d.ts +14 -0
  155. package/dist/types/components/biggive-tipping-slider/biggive-tipping-slider.stories.d.ts +45 -0
  156. package/dist/types/components.d.ts +194 -164
  157. package/hydrate/index.js +507 -28
  158. package/package.json +1 -1
  159. package/dist/biggive/p-13f4a2c4.entry.js +0 -1
  160. package/dist/biggive/p-34cfc5da.entry.js +0 -1
  161. package/dist/biggive/p-3e2d205e.entry.js +0 -1
  162. package/dist/biggive/p-52bb0267.entry.js +0 -1
  163. package/dist/biggive/p-53189bc6.entry.js +0 -1
  164. package/dist/biggive/p-5a38b219.entry.js +0 -1
  165. package/dist/biggive/p-64a544fa.entry.js +0 -1
  166. package/dist/biggive/p-95bd7f7a.entry.js +0 -1
  167. package/dist/biggive/p-99f18976.entry.js +0 -1
  168. package/dist/biggive/p-a0941518.entry.js +0 -1
  169. package/dist/biggive/p-d8432f12.entry.js +0 -1
  170. package/dist/cjs/biggive-tab.cjs.entry.js +0 -20
  171. package/dist/cjs/biggive-tabbed-content.cjs.entry.js +0 -21
  172. package/dist/esm/biggive-tab.entry.js +0 -16
  173. package/dist/esm/biggive-tabbed-content.entry.js +0 -17
@@ -0,0 +1,161 @@
1
+ import { h } from '@stencil/core';
2
+ export class BiggiveCarousel {
3
+ constructor() {
4
+ this.currentTab = 0;
5
+ this.itemCount = 0;
6
+ this.itemWidthPx = 0;
7
+ this.spaceBelow = 4;
8
+ this.columnCount = 3;
9
+ this.buttonBackgroundColour = 'white';
10
+ this.buttonIconColour = 'primary';
11
+ }
12
+ componentDidRender() {
13
+ var _a;
14
+ this.sleeve = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.sleeve');
15
+ let children = Array.from(this.host.children);
16
+ this.itemCount = children.length;
17
+ if (children.length > 0) {
18
+ // Item widths are set in CSS so we know they will all be the same.
19
+ this.itemWidthPx = children[0].offsetWidth;
20
+ this.sleeve.style.width = this.itemWidthPx * children.length + 'px';
21
+ children.forEach(function (el) {
22
+ el.style.width = 'calc( 100% / ' + children.length + ' )';
23
+ });
24
+ }
25
+ }
26
+ /*
27
+ * Animates a transition to show the NEXT or PREVIOUS element in the carousel.
28
+ * Does nothing if there is no next or previous element.
29
+ */
30
+ showTab(direction) {
31
+ const newTab = this.currentTab + (direction === 'PREV' ? -1 : 1);
32
+ if (newTab < 0 || newTab > this.itemCount - 1) {
33
+ return;
34
+ }
35
+ const pos = 0 - this.itemWidthPx * newTab;
36
+ this.sleeve.style.transitionDuration = '0.3s';
37
+ this.sleeve.style.transitionTimingFunction = 'ease-out';
38
+ this.sleeve.style.transform = 'translate3d(' + pos + 'px, 0, 0)';
39
+ this.currentTab = newTab;
40
+ }
41
+ clickPrevHandler() {
42
+ this.showTab('PREV');
43
+ }
44
+ clickNextHandler() {
45
+ this.showTab('NEXT');
46
+ }
47
+ render() {
48
+ return (h("div", { class: 'container column-count-' +
49
+ this.columnCount +
50
+ ' space-below-' +
51
+ this.spaceBelow +
52
+ ' button-background-colour-' +
53
+ this.buttonBackgroundColour +
54
+ ' button-icon-colour-' +
55
+ this.buttonIconColour }, h("div", { class: "items" }, h("div", { class: "sleeve" }, h("slot", null))), h("div", { class: "navigation" }, h("div", { class: "button prev", onClick: () => this.clickPrevHandler(), title: "Previous" }, h("svg", { width: "9", height: "16", viewBox: "0 0 9 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M8.29311 14.5703L1.73926 8.01646L8.29311 1.46261", stroke: "#000000", "stroke-width": "2" }))), h("div", { class: "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" }))))));
56
+ }
57
+ static get is() { return "biggive-carousel"; }
58
+ static get encapsulation() { return "shadow"; }
59
+ static get originalStyleUrls() {
60
+ return {
61
+ "$": ["biggive-carousel.scss"]
62
+ };
63
+ }
64
+ static get styleUrls() {
65
+ return {
66
+ "$": ["biggive-carousel.css"]
67
+ };
68
+ }
69
+ static get properties() {
70
+ return {
71
+ "spaceBelow": {
72
+ "type": "number",
73
+ "mutable": false,
74
+ "complexType": {
75
+ "original": "spacingOption",
76
+ "resolved": "0 | 1 | 2 | 3 | 4 | 5 | 6",
77
+ "references": {
78
+ "spacingOption": {
79
+ "location": "import",
80
+ "path": "../../globals/spacing-option"
81
+ }
82
+ }
83
+ },
84
+ "required": false,
85
+ "optional": false,
86
+ "docs": {
87
+ "tags": [],
88
+ "text": ""
89
+ },
90
+ "attribute": "space-below",
91
+ "reflect": false,
92
+ "defaultValue": "4"
93
+ },
94
+ "columnCount": {
95
+ "type": "number",
96
+ "mutable": false,
97
+ "complexType": {
98
+ "original": "number",
99
+ "resolved": "number",
100
+ "references": {}
101
+ },
102
+ "required": false,
103
+ "optional": false,
104
+ "docs": {
105
+ "tags": [],
106
+ "text": ""
107
+ },
108
+ "attribute": "column-count",
109
+ "reflect": false,
110
+ "defaultValue": "3"
111
+ },
112
+ "buttonBackgroundColour": {
113
+ "type": "string",
114
+ "mutable": false,
115
+ "complexType": {
116
+ "original": "brandColour",
117
+ "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\"",
118
+ "references": {
119
+ "brandColour": {
120
+ "location": "import",
121
+ "path": "../../globals/brand-colour"
122
+ }
123
+ }
124
+ },
125
+ "required": false,
126
+ "optional": false,
127
+ "docs": {
128
+ "tags": [],
129
+ "text": ""
130
+ },
131
+ "attribute": "button-background-colour",
132
+ "reflect": false,
133
+ "defaultValue": "'white'"
134
+ },
135
+ "buttonIconColour": {
136
+ "type": "string",
137
+ "mutable": false,
138
+ "complexType": {
139
+ "original": "brandColour",
140
+ "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\"",
141
+ "references": {
142
+ "brandColour": {
143
+ "location": "import",
144
+ "path": "../../globals/brand-colour"
145
+ }
146
+ }
147
+ },
148
+ "required": false,
149
+ "optional": false,
150
+ "docs": {
151
+ "tags": [],
152
+ "text": ""
153
+ },
154
+ "attribute": "button-icon-colour",
155
+ "reflect": false,
156
+ "defaultValue": "'primary'"
157
+ }
158
+ };
159
+ }
160
+ static get elementRef() { return "host"; }
161
+ }
@@ -0,0 +1,84 @@
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
+ columnCount: {
12
+ name: 'Column Count',
13
+ control: {
14
+ type: 'select',
15
+ options: [1, 2, 3, 4],
16
+ },
17
+ },
18
+ buttonBackgroundColour: {
19
+ name: 'Button background 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
+ buttonIconColour: {
26
+ name: 'Button icon 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
+ },
33
+ };
34
+ const Template = args => `
35
+ <biggive-tabbed-content
36
+ space-below="${args.spaceBelow}"
37
+ column-count="${args.columnCount}"
38
+ button-background-colour="${args.buttonBackgroundColour}"
39
+ button-icon-colour="${args.buttonIconColour}"
40
+ >
41
+ <biggive-quote
42
+ space-below="0"
43
+ default-text-colour="primary"
44
+ quote="1 Lorem ipsum dolor sit amet, has quod diam dolore cu, at solet interesset eam, cu nec affert quando legendos. Ut libris aperiam quo. Et tollit intellegebat mea. Dico nostrud vivendum no his, nam ne sumo illum iudicabit. Cu nec velit argumentum, no quando offendit neglegentur ius. "
45
+ attribution="this is the attribution"
46
+ >
47
+ </biggive-quote>
48
+ <biggive-quote
49
+ space-below="0"
50
+ default-text-colour="secondary"
51
+ quote="2 Lorem ipsum dolor sit amet, has quod diam dolore cu, at solet interesset eam, cu nec affert quando legendos. Ut libris aperiam quo. Et tollit intellegebat mea. Dico nostrud vivendum no his, nam ne sumo illum iudicabit. Cu nec velit argumentum, no quando offendit neglegentur ius. "
52
+ attribution="this is the attribution"
53
+ >
54
+ </biggive-quote>
55
+ <biggive-quote
56
+ space-below="0"
57
+ default-text-colour="tertiary"
58
+ quote="3 Lorem ipsum dolor sit amet, has quod diam dolore cu, at solet interesset eam, cu nec affert quando legendos. Ut libris aperiam quo. Et tollit intellegebat mea. Dico nostrud vivendum no his, nam ne sumo illum iudicabit. Cu nec velit argumentum, no quando offendit neglegentur ius. "
59
+ attribution="this is the attribution"
60
+ >
61
+ </biggive-quote>
62
+ <biggive-quote
63
+ space-below="0"
64
+ default-text-colour="brand-1"
65
+ quote="4 Lorem ipsum dolor sit amet, has quod diam dolore cu, at solet interesset eam, cu nec affert quando legendos. Ut libris aperiam quo. Et tollit intellegebat mea. Dico nostrud vivendum no his, nam ne sumo illum iudicabit. Cu nec velit argumentum, no quando offendit neglegentur ius. "
66
+ attribution="this is the attribution"
67
+ >
68
+ </biggive-quote>
69
+ <biggive-quote
70
+ space-below="0"
71
+ default-text-colour="brand-2"
72
+ quote="5 Lorem ipsum dolor sit amet, has quod diam dolore cu, at solet interesset eam, cu nec affert quando legendos. Ut libris aperiam quo. Et tollit intellegebat mea. Dico nostrud vivendum no his, nam ne sumo illum iudicabit. Cu nec velit argumentum, no quando offendit neglegentur ius. "
73
+ attribution="this is the attribution"
74
+ >
75
+ </biggive-quote>
76
+ </biggive-tabbed-content>
77
+ `;
78
+ export const CarouselComponent = Template.bind({});
79
+ CarouselComponent.args = {
80
+ spaceBelow: 4,
81
+ columnCount: 3,
82
+ buttonBackgroundColour: 'white',
83
+ buttonIconColour: 'primary',
84
+ };
@@ -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
  }
@@ -213,6 +254,30 @@ a:hover {
213
254
  .category-icon-item.colour-scheme-black svg {
214
255
  fill: #FFFFFF;
215
256
  }
257
+ .category-icon-item.colour-scheme-black {
258
+ background-color: #D7D7D7;
259
+ }
260
+ .category-icon-item.colour-scheme-black svg {
261
+ fill: #D7D7D7;
262
+ }
263
+ .category-icon-item.colour-scheme-black {
264
+ background-color: #E8E8E8;
265
+ }
266
+ .category-icon-item.colour-scheme-black svg {
267
+ fill: #E8E8E8;
268
+ }
269
+ .category-icon-item.colour-scheme-black {
270
+ background-color: #8A8A8A;
271
+ }
272
+ .category-icon-item.colour-scheme-black svg {
273
+ fill: #8A8A8A;
274
+ }
275
+ .category-icon-item.colour-scheme-black {
276
+ background-color: #4A4A4A;
277
+ }
278
+ .category-icon-item.colour-scheme-black svg {
279
+ fill: #4A4A4A;
280
+ }
216
281
  .category-icon-item:hover {
217
282
  background-color: #FFFFFF;
218
283
  }
@@ -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: block;
125
145
  }
@@ -125,6 +125,26 @@ a:hover {
125
125
  color: #000000;
126
126
  }
127
127
 
128
+ .text-colour-hover-grey-extra-light:hover,
129
+ .text-colour-grey-extra-light {
130
+ color: #D7D7D7;
131
+ }
132
+
133
+ .text-colour-hover-grey-light:hover,
134
+ .text-colour-grey-light {
135
+ color: #E8E8E8;
136
+ }
137
+
138
+ .text-colour-hover-grey-medium:hover,
139
+ .text-colour-grey-medium {
140
+ color: #8A8A8A;
141
+ }
142
+
143
+ .text-colour-hover-grey-dark:hover,
144
+ .text-colour-grey-dark {
145
+ color: #4A4A4A;
146
+ }
147
+
128
148
  :host {
129
149
  display: contents;
130
150
  font-family: "Euclid Triangle", sans-serif;
@@ -139,6 +159,7 @@ a:hover {
139
159
  overflow: hidden;
140
160
  position: relative;
141
161
  margin-bottom: 30px;
162
+ min-height: 32.5vw;
142
163
  }
143
164
  .container.colour-scheme-primary {
144
165
  color: #2C089B;
@@ -149,12 +170,42 @@ a:hover {
149
170
  .container.colour-scheme-tertiary {
150
171
  color: #FF7272;
151
172
  }
173
+ .container.colour-scheme-brand-1 {
174
+ color: #B30510;
175
+ }
176
+ .container.colour-scheme-brand-2 {
177
+ color: #6E0887;
178
+ }
179
+ .container.colour-scheme-brand-3 {
180
+ color: #50B400;
181
+ }
182
+ .container.colour-scheme-brand-4 {
183
+ color: #FFE500;
184
+ }
185
+ .container.colour-scheme-brand-5 {
186
+ color: #F07D00;
187
+ }
188
+ .container.colour-scheme-brand-6 {
189
+ color: #62CFC9;
190
+ }
152
191
  .container.colour-scheme-white {
153
192
  color: #FFFFFF;
154
193
  }
155
194
  .container.colour-scheme-black {
156
195
  color: #000000;
157
196
  }
197
+ .container.colour-scheme-grey-extra-light {
198
+ color: #D7D7D7;
199
+ }
200
+ .container.colour-scheme-grey-light {
201
+ color: #E8E8E8;
202
+ }
203
+ .container.colour-scheme-grey-medium {
204
+ color: #8A8A8A;
205
+ }
206
+ .container.colour-scheme-grey-dark {
207
+ color: #4A4A4A;
208
+ }
158
209
  .container .sleeve {
159
210
  display: flex;
160
211
  justify-content: space-between;
@@ -172,30 +223,46 @@ a:hover {
172
223
  .container .content-wrap .logo, .container .content-wrap .logo-space {
173
224
  height: 75px;
174
225
  }
226
+ .container .content-wrap .logo.logo-height-1, .container .content-wrap .logo-space.logo-height-1 {
227
+ height: 50px;
228
+ }
229
+ .container .content-wrap .logo.logo-height-2, .container .content-wrap .logo-space.logo-height-2 {
230
+ height: 75px;
231
+ }
232
+ .container .content-wrap .logo.logo-height-3, .container .content-wrap .logo-space.logo-height-3 {
233
+ height: 100px;
234
+ }
235
+ .container .content-wrap .logo.logo-height-4, .container .content-wrap .logo-space.logo-height-4 {
236
+ height: 125px;
237
+ }
238
+ .container .content-wrap .logo.logo-height-5, .container .content-wrap .logo-space.logo-height-5 {
239
+ height: 150px;
240
+ }
241
+ .container .content-wrap .logo.logo-height-6, .container .content-wrap .logo-space.logo-height-6 {
242
+ height: 175px;
243
+ }
244
+ .container .content-wrap .logo.logo-height-7, .container .content-wrap .logo-space.logo-height-7 {
245
+ height: 200px;
246
+ }
247
+ .container .content-wrap .logo.logo-height-8, .container .content-wrap .logo-space.logo-height-8 {
248
+ height: 225px;
249
+ }
250
+ .container .content-wrap .logo.logo-height-9, .container .content-wrap .logo-space.logo-height-9 {
251
+ height: 250px;
252
+ }
253
+ .container .content-wrap .logo.logo-height-10, .container .content-wrap .logo-space.logo-height-10 {
254
+ height: 275px;
255
+ }
175
256
  .container .content-wrap .logo {
176
257
  background-size: contain;
177
258
  background-repeat: no-repeat;
178
259
  background-position: left center;
179
260
  }
180
261
  .container .content-wrap .logo img {
181
- width: 250px;
262
+ width: auto;
263
+ height: 100%;
182
264
  position: relative;
183
265
  }
184
- @media (max-width: 1200px) {
185
- .container .content-wrap .logo img {
186
- width: 210px;
187
- }
188
- }
189
- @media (max-width: 768px) {
190
- .container .content-wrap .logo img {
191
- width: 200px;
192
- }
193
- }
194
- @media (max-width: 576px) {
195
- .container .content-wrap .logo img {
196
- width: 180px;
197
- }
198
- }
199
266
  .container .content-wrap .slug {
200
267
  font-size: 20px;
201
268
  line-height: 24px;
@@ -227,8 +294,8 @@ a:hover {
227
294
  display: block;
228
295
  top: 0;
229
296
  left: 0;
230
- bottom: 0;
231
297
  right: 0;
298
+ padding-bottom: 32.5vw;
232
299
  background-color: #F1F1F1;
233
300
  margin-left: 20vw;
234
301
  clip-path: polygon(0 0, 100% 0, 100% 100%);
@@ -247,6 +314,9 @@ a:hover {
247
314
  }
248
315
 
249
316
  @media screen and (max-width: 1200px) {
317
+ .container {
318
+ min-height: 50vw;
319
+ }
250
320
  .container .sleeve {
251
321
  flex-wrap: wrap;
252
322
  }
@@ -258,7 +328,7 @@ a:hover {
258
328
  .container .sleeve .graphic-wrap {
259
329
  margin-left: 0;
260
330
  bottom: auto;
261
- padding-bottom: 50%;
331
+ padding-bottom: 50vw;
262
332
  }
263
333
  }
264
334
  @media screen and (max-width: 768px) {
@@ -7,6 +7,7 @@ export class BiggiveHeroImage {
7
7
  this.slug = undefined;
8
8
  this.slugColour = undefined;
9
9
  this.logo = '';
10
+ this.logoHeight = 3;
10
11
  this.logoAltText = '';
11
12
  this.mainImage = null;
12
13
  this.mainImageAlignHorizontal = 'center';
@@ -22,7 +23,7 @@ export class BiggiveHeroImage {
22
23
  render() {
23
24
  const mainTitleClasses = 'main-title ' + (typeof this.mainTitleColour === 'string' && this.mainTitleColour.length > 0 ? `text-colour-${this.mainTitleColour}` : '');
24
25
  const teaserClasses = 'teaser ' + (typeof this.teaserColour === 'string' && this.teaserColour.length > 0 ? `text-colour-${this.teaserColour}` : '');
25
- return (h("div", { class: 'container colour-scheme-' + this.colourScheme + ' space-below-' + this.spaceBelow }, h("div", { class: "sleeve" }, h("div", { class: "content-wrap" }, this.logo !== undefined && this.logo !== null ? (h("div", { class: "logo image-wrap" }, h("img", { src: this.logo, alt: this.logoAltText, title: this.logoAltText }))) : h("div", { class: "logo-space" }), h("div", { class: 'slug text-colour-' + this.slugColour }, this.slug), h("h1", { class: mainTitleClasses }, this.mainTitle), h("div", { class: teaserClasses }, this.teaser), this.buttonLabel != null && this.buttonUrl != null
26
+ return (h("div", { class: 'container colour-scheme-' + this.colourScheme + ' space-below-' + this.spaceBelow }, h("div", { class: "sleeve" }, h("div", { class: "content-wrap" }, this.logo !== undefined && this.logo !== null ? (h("div", { class: 'logo image-wrap logo-height-' + this.logoHeight }, h("img", { src: this.logo, alt: this.logoAltText, title: this.logoAltText }))) : h("div", { class: 'logo-space logo-height-' + this.logoHeight }), h("div", { class: 'slug text-colour-' + this.slugColour }, this.slug), h("h1", { class: mainTitleClasses }, this.mainTitle), h("div", { class: teaserClasses }, this.teaser), this.buttonLabel != null && this.buttonUrl != null
26
27
  ? h("biggive-button", { "colour-scheme": this.buttonColourScheme, url: this.buttonUrl, label: this.buttonLabel })
27
28
  : null), h("div", { class: "graphic-wrap" }, this.mainImage !== null ? (h("div", { class: "image-wrap", role: "presentation", style: { 'background-image': 'url(' + this.mainImage + ')', 'background-position': this.mainImageAlignHorizontal + ' ' + this.mainImageAlignVertical } })) : null))));
28
29
  }
@@ -44,9 +45,14 @@ export class BiggiveHeroImage {
44
45
  "type": "number",
45
46
  "mutable": false,
46
47
  "complexType": {
47
- "original": "number",
48
- "resolved": "number",
49
- "references": {}
48
+ "original": "spacingOption",
49
+ "resolved": "0 | 1 | 2 | 3 | 4 | 5 | 6",
50
+ "references": {
51
+ "spacingOption": {
52
+ "location": "import",
53
+ "path": "../../globals/spacing-option"
54
+ }
55
+ }
50
56
  },
51
57
  "required": false,
52
58
  "optional": false,
@@ -62,9 +68,14 @@ export class BiggiveHeroImage {
62
68
  "type": "string",
63
69
  "mutable": false,
64
70
  "complexType": {
65
- "original": "string",
66
- "resolved": "string",
67
- "references": {}
71
+ "original": "brandColour",
72
+ "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\"",
73
+ "references": {
74
+ "brandColour": {
75
+ "location": "import",
76
+ "path": "../../globals/brand-colour"
77
+ }
78
+ }
68
79
  },
69
80
  "required": false,
70
81
  "optional": false,
@@ -97,9 +108,14 @@ export class BiggiveHeroImage {
97
108
  "type": "string",
98
109
  "mutable": false,
99
110
  "complexType": {
100
- "original": "string",
101
- "resolved": "string",
102
- "references": {}
111
+ "original": "brandColour",
112
+ "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\"",
113
+ "references": {
114
+ "brandColour": {
115
+ "location": "import",
116
+ "path": "../../globals/brand-colour"
117
+ }
118
+ }
103
119
  },
104
120
  "required": false,
105
121
  "optional": false,
@@ -128,6 +144,24 @@ export class BiggiveHeroImage {
128
144
  "reflect": false,
129
145
  "defaultValue": "''"
130
146
  },
147
+ "logoHeight": {
148
+ "type": "number",
149
+ "mutable": false,
150
+ "complexType": {
151
+ "original": "1|2|3|4|5|6|7|8|9|10",
152
+ "resolved": "1 | 10 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9",
153
+ "references": {}
154
+ },
155
+ "required": false,
156
+ "optional": false,
157
+ "docs": {
158
+ "tags": [],
159
+ "text": "Logo container height selection. Numbers are not measurements."
160
+ },
161
+ "attribute": "logo-height",
162
+ "reflect": false,
163
+ "defaultValue": "3"
164
+ },
131
165
  "logoAltText": {
132
166
  "type": "string",
133
167
  "mutable": false,
@@ -221,9 +255,14 @@ export class BiggiveHeroImage {
221
255
  "type": "string",
222
256
  "mutable": false,
223
257
  "complexType": {
224
- "original": "string",
225
- "resolved": "string | undefined",
226
- "references": {}
258
+ "original": "brandColour",
259
+ "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\" | undefined",
260
+ "references": {
261
+ "brandColour": {
262
+ "location": "import",
263
+ "path": "../../globals/brand-colour"
264
+ }
265
+ }
227
266
  },
228
267
  "required": false,
229
268
  "optional": true,
@@ -255,9 +294,14 @@ export class BiggiveHeroImage {
255
294
  "type": "string",
256
295
  "mutable": false,
257
296
  "complexType": {
258
- "original": "string",
259
- "resolved": "string | undefined",
260
- "references": {}
297
+ "original": "brandColour",
298
+ "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\" | undefined",
299
+ "references": {
300
+ "brandColour": {
301
+ "location": "import",
302
+ "path": "../../globals/brand-colour"
303
+ }
304
+ }
261
305
  },
262
306
  "required": false,
263
307
  "optional": true,
@@ -306,9 +350,14 @@ export class BiggiveHeroImage {
306
350
  "type": "string",
307
351
  "mutable": false,
308
352
  "complexType": {
309
- "original": "string",
310
- "resolved": "string",
311
- "references": {}
353
+ "original": "brandColour",
354
+ "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\"",
355
+ "references": {
356
+ "brandColour": {
357
+ "location": "import",
358
+ "path": "../../globals/brand-colour"
359
+ }
360
+ }
312
361
  },
313
362
  "required": false,
314
363
  "optional": false,