@biggive/components 202303201542.0.0 → 202303301223.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.
- package/dist/biggive/biggive.esm.js +1 -1
- package/dist/biggive/{p-5406c558.entry.js → p-044de4a5.entry.js} +1 -1
- package/dist/biggive/p-0f955c67.entry.js +1 -0
- package/dist/biggive/{p-4402efe9.entry.js → p-12035aa2.entry.js} +1 -1
- package/dist/biggive/{p-42649676.entry.js → p-14a9d9a4.entry.js} +1 -1
- package/dist/biggive/{p-63abb338.entry.js → p-1e8f981c.entry.js} +1 -1
- package/dist/biggive/{p-b73fddaa.entry.js → p-241aed7a.entry.js} +1 -1
- package/dist/biggive/{p-f6dedf7d.entry.js → p-2fa6188d.entry.js} +1 -1
- package/dist/biggive/p-47d3c810.entry.js +1 -0
- package/dist/biggive/{p-87487165.entry.js → p-518fd1c9.entry.js} +1 -1
- package/dist/biggive/{p-2c639bd5.entry.js → p-58521290.entry.js} +1 -1
- package/dist/biggive/{p-ff8bc382.js → p-740166e9.js} +2 -2
- package/dist/biggive/{p-41588003.entry.js → p-76413b3e.entry.js} +1 -1
- package/dist/biggive/{p-26c0b6cf.entry.js → p-7be9d211.entry.js} +1 -1
- package/dist/biggive/{p-01d03da2.entry.js → p-d8ec56e6.entry.js} +1 -1
- package/dist/biggive/{p-f375edb7.entry.js → p-f224b742.entry.js} +1 -1
- package/dist/biggive/{p-ead5a5ce.entry.js → p-fe1f033c.entry.js} +1 -1
- package/dist/cjs/{biggive-accordion_35.cjs.entry.js → biggive-accordion_43.cjs.entry.js} +469 -50
- package/dist/cjs/biggive-basic-card.cjs.entry.js +2 -2
- package/dist/cjs/biggive-beneficiary-icon.cjs.entry.js +2 -2
- package/dist/cjs/biggive-boxed-content.cjs.entry.js +2 -2
- package/dist/cjs/biggive-category-icon.cjs.entry.js +2 -2
- package/dist/cjs/biggive-form.cjs.entry.js +1 -1
- package/dist/cjs/biggive-header.cjs.entry.js +1 -1
- package/dist/cjs/biggive-icon-group.cjs.entry.js +1 -1
- package/dist/cjs/biggive-nav-group.cjs.entry.js +1 -1
- package/dist/cjs/biggive-nav-item.cjs.entry.js +1 -1
- package/dist/cjs/biggive-popup-standalone.cjs.entry.js +1 -1
- package/dist/cjs/biggive-search.cjs.entry.js +1 -1
- package/dist/cjs/biggive-table.cjs.entry.js +2 -2
- package/dist/cjs/biggive-text-input.cjs.entry.js +1 -1
- package/dist/cjs/biggive-video.cjs.entry.js +1 -1
- package/dist/cjs/biggive.cjs.js +2 -2
- package/dist/cjs/{index-8dd1da4d.js → index-8dcaaf94.js} +3 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +5 -0
- package/dist/collection/components/biggive-accordion/biggive-accordion.css +2 -2
- package/dist/collection/components/biggive-accordion/biggive-accordion.stories.js +3 -3
- package/dist/collection/components/biggive-article-card/biggive-article-card.css +36 -13
- package/dist/collection/components/biggive-article-card/biggive-article-card.js +258 -32
- package/dist/collection/components/biggive-basic-card/biggive-basic-card.css +1 -1
- package/dist/collection/components/biggive-beneficiary-icon/biggive-beneficiary-icon.css +1 -1
- package/dist/collection/components/biggive-biography-card/biggive-biography-card.css +592 -1
- package/dist/collection/components/biggive-biography-card/biggive-biography-card.js +218 -8
- package/dist/collection/components/biggive-boxed-content/biggive-boxed-content.css +1 -1
- package/dist/collection/components/biggive-button/biggive-button.css +110 -0
- package/dist/collection/components/biggive-carousel/biggive-carousel.css +18 -5
- package/dist/collection/components/biggive-carousel/biggive-carousel.js +18 -11
- package/dist/collection/components/biggive-category-icon/biggive-category-icon.css +1 -1
- package/dist/collection/components/biggive-filtered-carousel/biggive-filtered-carousel.css +34 -0
- package/dist/collection/components/biggive-filtered-carousel/biggive-filtered-carousel.js +166 -0
- package/dist/collection/components/biggive-footer/biggive-footer.js +69 -5
- package/dist/collection/components/biggive-generic-icon/biggive-generic-icon.css +420 -0
- package/dist/collection/components/biggive-generic-icon/biggive-generic-icon.js +144 -0
- package/dist/collection/components/biggive-generic-icon/biggive-generic-icon.stories.js +53 -0
- package/dist/collection/components/biggive-grid/biggive-grid.css +166 -6
- package/dist/collection/components/biggive-grid/biggive-grid.js +28 -4
- package/dist/collection/components/biggive-icon-button/biggive-icon-button.css +418 -0
- package/dist/collection/components/biggive-icon-button/biggive-icon-button.js +400 -0
- package/dist/collection/components/biggive-icon-button/biggive-icon-button.stories.js +116 -0
- package/dist/collection/components/biggive-image-button/biggive-image-button.css +369 -0
- package/dist/collection/components/biggive-image-button/biggive-image-button.js +401 -0
- package/dist/collection/components/biggive-image-button/biggive-image-button.stories.js +115 -0
- package/dist/collection/components/biggive-main-menu/biggive-main-menu.js +3 -14
- package/dist/collection/components/biggive-misc-icon/biggive-misc-icon.css +1 -1
- package/dist/collection/components/biggive-page-section/biggive-page-section.css +33 -1
- package/dist/collection/components/biggive-sheet/biggive-sheet.css +379 -0
- package/dist/collection/components/biggive-sheet/biggive-sheet.js +111 -0
- package/dist/collection/components/biggive-sheet/biggive-sheet.stories.js +34 -0
- package/dist/collection/components/biggive-social-icon/biggive-social-icon.css +1 -1
- package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.css +9 -5
- package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.js +33 -3
- package/dist/collection/components/biggive-table/biggive-table.css +1 -1
- package/dist/collection/components/biggive-timeline/biggive-timeline.css +9 -11
- package/dist/collection/components/biggive-timeline/biggive-timeline.js +38 -5
- package/dist/collection/components/biggive-tipping-slider/biggive-tipping-slider.css +1 -1
- package/dist/collection/components/biggive-tipping-slider/biggive-tipping-slider.js +1 -1
- package/dist/collection/components/biggive-totalizer/biggive-totalizer.css +1 -1
- package/dist/collection/util/helper-methods.js +6 -0
- package/dist/components/biggive-accordion.js +1 -1
- package/dist/components/biggive-article-card.js +44 -9
- package/dist/components/biggive-basic-card.js +1 -1
- package/dist/components/biggive-beneficiary-icon.js +1 -1
- package/dist/components/biggive-biography-card.js +40 -3
- package/dist/components/biggive-boxed-content.js +1 -1
- package/dist/components/biggive-button2.js +1 -1
- package/dist/components/biggive-carousel.js +1 -83
- package/dist/components/biggive-carousel2.js +92 -0
- package/dist/components/biggive-category-icon.js +1 -1
- package/dist/components/biggive-filtered-carousel.d.ts +11 -0
- package/dist/components/biggive-filtered-carousel.js +99 -0
- package/dist/components/biggive-footer.js +29 -8
- package/dist/components/biggive-generic-icon.d.ts +11 -0
- package/dist/components/biggive-generic-icon.js +6 -0
- package/dist/components/biggive-generic-icon2.js +59 -0
- package/dist/components/biggive-grid.js +5 -3
- package/dist/components/biggive-icon-button.d.ts +11 -0
- package/dist/components/biggive-icon-button.js +89 -0
- package/dist/components/biggive-image-button.d.ts +11 -0
- package/dist/components/biggive-image-button.js +83 -0
- package/dist/components/biggive-main-menu.js +3 -14
- package/dist/components/biggive-misc-icon2.js +1 -1
- package/dist/components/biggive-page-section.js +1 -1
- package/dist/components/biggive-sheet.d.ts +11 -0
- package/dist/components/biggive-sheet.js +60 -0
- package/dist/components/biggive-social-icon2.js +1 -1
- package/dist/components/biggive-tabbed-content.js +34 -4
- package/dist/components/biggive-table.js +1 -1
- package/dist/components/biggive-timeline.js +39 -6
- package/dist/components/biggive-tipping-slider.js +2 -2
- package/dist/components/biggive-totalizer.js +1 -1
- package/dist/components/helper-methods.js +8 -0
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.js +5 -0
- package/dist/esm/{biggive-accordion_35.entry.js → biggive-accordion_43.entry.js} +462 -51
- package/dist/esm/biggive-basic-card.entry.js +2 -2
- package/dist/esm/biggive-beneficiary-icon.entry.js +2 -2
- package/dist/esm/biggive-boxed-content.entry.js +2 -2
- package/dist/esm/biggive-category-icon.entry.js +2 -2
- package/dist/esm/biggive-form.entry.js +1 -1
- package/dist/esm/biggive-header.entry.js +1 -1
- package/dist/esm/biggive-icon-group.entry.js +1 -1
- package/dist/esm/biggive-nav-group.entry.js +1 -1
- package/dist/esm/biggive-nav-item.entry.js +1 -1
- package/dist/esm/biggive-popup-standalone.entry.js +1 -1
- package/dist/esm/biggive-search.entry.js +1 -1
- package/dist/esm/biggive-table.entry.js +2 -2
- package/dist/esm/biggive-text-input.entry.js +1 -1
- package/dist/esm/biggive-video.entry.js +1 -1
- package/dist/esm/biggive.js +2 -2
- package/dist/esm/{index-801eebfb.js → index-341903f8.js} +3 -0
- package/dist/esm/loader.js +2 -2
- package/dist/types/components/biggive-article-card/biggive-article-card.d.ts +17 -42
- package/dist/types/components/biggive-biography-card/biggive-biography-card.d.ts +12 -13
- package/dist/types/components/biggive-carousel/biggive-carousel.d.ts +2 -1
- package/dist/types/components/biggive-filtered-carousel/biggive-filtered-carousel.d.ts +12 -0
- package/dist/types/components/biggive-footer/biggive-footer.d.ts +11 -0
- package/dist/types/components/biggive-generic-icon/biggive-generic-icon.d.ts +10 -0
- package/dist/types/components/biggive-generic-icon/biggive-generic-icon.stories.d.ts +38 -0
- package/dist/types/components/biggive-grid/biggive-grid.d.ts +3 -7
- package/dist/types/components/biggive-icon-button/biggive-icon-button.d.ts +28 -0
- package/dist/types/components/biggive-icon-button/biggive-icon-button.stories.d.ts +81 -0
- package/dist/types/components/biggive-image-button/biggive-image-button.d.ts +28 -0
- package/dist/types/components/biggive-image-button/biggive-image-button.stories.d.ts +78 -0
- package/dist/types/components/biggive-sheet/biggive-sheet.d.ts +15 -0
- package/dist/types/components/biggive-sheet/biggive-sheet.stories.d.ts +21 -0
- package/dist/types/components/biggive-tabbed-content/biggive-tabbed-content.d.ts +3 -0
- package/dist/types/components/biggive-timeline/biggive-timeline.d.ts +3 -0
- package/dist/types/components.d.ts +247 -126
- package/dist/types/util/helper-methods.d.ts +1 -0
- package/hydrate/index.js +545 -70
- package/package.json +1 -1
- package/dist/biggive/p-28e16ef9.entry.js +0 -1
- package/dist/biggive/p-4a1ba0c4.entry.js +0 -1
- package/dist/biggive/p-4adb4dce.entry.js +0 -1
- package/dist/biggive/p-87edb8c6.entry.js +0 -1
- package/dist/biggive/p-8feb91ae.entry.js +0 -1
- package/dist/cjs/biggive-article-card.cjs.entry.js +0 -31
- package/dist/cjs/biggive-biography-card.cjs.entry.js +0 -23
- package/dist/cjs/biggive-formatted-text.cjs.entry.js +0 -22
- package/dist/esm/biggive-article-card.entry.js +0 -27
- package/dist/esm/biggive-biography-card.entry.js +0 -19
- package/dist/esm/biggive-formatted-text.entry.js +0 -18
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
import { h } from '@stencil/core';
|
|
2
|
+
export class BiggiveIconButton {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.handleButtonClick = (event) => {
|
|
5
|
+
this.doButtonClick.emit({ event: event, url: event.target.parentElement.href });
|
|
6
|
+
};
|
|
7
|
+
this.spaceBelow = 1;
|
|
8
|
+
this.backgroundColour = 'white';
|
|
9
|
+
this.backgroundPadding = 0;
|
|
10
|
+
this.text = undefined;
|
|
11
|
+
this.textColour = 'black';
|
|
12
|
+
this.iconGroup = undefined;
|
|
13
|
+
this.icon = undefined;
|
|
14
|
+
this.url = undefined;
|
|
15
|
+
this.openInNewTab = false;
|
|
16
|
+
this.size = 'medium';
|
|
17
|
+
this.arrow = false;
|
|
18
|
+
this.arrowColour = 'black';
|
|
19
|
+
this.circle = false;
|
|
20
|
+
this.shadow = false;
|
|
21
|
+
this.centered = false;
|
|
22
|
+
this.rounded = false;
|
|
23
|
+
this.buttonId = undefined;
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
return (h("div", { class: 'container space-below-' +
|
|
27
|
+
this.spaceBelow +
|
|
28
|
+
' background-colour-' +
|
|
29
|
+
this.backgroundColour +
|
|
30
|
+
' background-padding-' +
|
|
31
|
+
this.backgroundPadding +
|
|
32
|
+
' centered-' +
|
|
33
|
+
this.centered +
|
|
34
|
+
' rounded-' +
|
|
35
|
+
this.rounded +
|
|
36
|
+
' shadow-' +
|
|
37
|
+
this.shadow }, h("a", { href: this.url, target: this.openInNewTab ? '_blank' : '_self', id: this.buttonId }, h("div", { class: "sleeve", onClick: this.handleButtonClick }, h("div", { class: 'icon-wrap ' + ' size-' + this.size + ' circle-' + this.circle.toString() }, h("biggive-generic-icon", { iconGroup: this.iconGroup, icon: this.icon })), this.text != '' ? h("div", { class: 'text-wrap text-colour-' + this.textColour + ' text-padding-' + this.backgroundPadding }, this.text) : null, this.arrow ? (h("div", { class: 'arrow-wrap arrow-colour-' + this.arrowColour }, h("svg", { width: "8", height: "12", viewBox: "0 0 8 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M0.76912 1.0791L5.73828 6.04826L0.769121 11.0174", stroke: "black", "stroke-width": "2" })))) : null))));
|
|
38
|
+
}
|
|
39
|
+
static get is() { return "biggive-icon-button"; }
|
|
40
|
+
static get encapsulation() { return "shadow"; }
|
|
41
|
+
static get originalStyleUrls() {
|
|
42
|
+
return {
|
|
43
|
+
"$": ["biggive-icon-button.scss"]
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
static get styleUrls() {
|
|
47
|
+
return {
|
|
48
|
+
"$": ["biggive-icon-button.css"]
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
static get properties() {
|
|
52
|
+
return {
|
|
53
|
+
"spaceBelow": {
|
|
54
|
+
"type": "number",
|
|
55
|
+
"mutable": false,
|
|
56
|
+
"complexType": {
|
|
57
|
+
"original": "spacingOption",
|
|
58
|
+
"resolved": "0 | 1 | 2 | 3 | 4 | 5 | 6",
|
|
59
|
+
"references": {
|
|
60
|
+
"spacingOption": {
|
|
61
|
+
"location": "import",
|
|
62
|
+
"path": "../../globals/spacing-option"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"required": false,
|
|
67
|
+
"optional": false,
|
|
68
|
+
"docs": {
|
|
69
|
+
"tags": [],
|
|
70
|
+
"text": ""
|
|
71
|
+
},
|
|
72
|
+
"attribute": "space-below",
|
|
73
|
+
"reflect": false,
|
|
74
|
+
"defaultValue": "1"
|
|
75
|
+
},
|
|
76
|
+
"backgroundColour": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"mutable": false,
|
|
79
|
+
"complexType": {
|
|
80
|
+
"original": "brandColour",
|
|
81
|
+
"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\"",
|
|
82
|
+
"references": {
|
|
83
|
+
"brandColour": {
|
|
84
|
+
"location": "import",
|
|
85
|
+
"path": "../../globals/brand-colour"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"required": false,
|
|
90
|
+
"optional": false,
|
|
91
|
+
"docs": {
|
|
92
|
+
"tags": [],
|
|
93
|
+
"text": ""
|
|
94
|
+
},
|
|
95
|
+
"attribute": "background-colour",
|
|
96
|
+
"reflect": false,
|
|
97
|
+
"defaultValue": "'white'"
|
|
98
|
+
},
|
|
99
|
+
"backgroundPadding": {
|
|
100
|
+
"type": "number",
|
|
101
|
+
"mutable": false,
|
|
102
|
+
"complexType": {
|
|
103
|
+
"original": "spacingOption",
|
|
104
|
+
"resolved": "0 | 1 | 2 | 3 | 4 | 5 | 6",
|
|
105
|
+
"references": {
|
|
106
|
+
"spacingOption": {
|
|
107
|
+
"location": "import",
|
|
108
|
+
"path": "../../globals/spacing-option"
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"required": false,
|
|
113
|
+
"optional": false,
|
|
114
|
+
"docs": {
|
|
115
|
+
"tags": [],
|
|
116
|
+
"text": ""
|
|
117
|
+
},
|
|
118
|
+
"attribute": "background-padding",
|
|
119
|
+
"reflect": false,
|
|
120
|
+
"defaultValue": "0"
|
|
121
|
+
},
|
|
122
|
+
"text": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"mutable": false,
|
|
125
|
+
"complexType": {
|
|
126
|
+
"original": "string",
|
|
127
|
+
"resolved": "string",
|
|
128
|
+
"references": {}
|
|
129
|
+
},
|
|
130
|
+
"required": false,
|
|
131
|
+
"optional": false,
|
|
132
|
+
"docs": {
|
|
133
|
+
"tags": [],
|
|
134
|
+
"text": ""
|
|
135
|
+
},
|
|
136
|
+
"attribute": "text",
|
|
137
|
+
"reflect": false
|
|
138
|
+
},
|
|
139
|
+
"textColour": {
|
|
140
|
+
"type": "string",
|
|
141
|
+
"mutable": false,
|
|
142
|
+
"complexType": {
|
|
143
|
+
"original": "brandColour",
|
|
144
|
+
"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\"",
|
|
145
|
+
"references": {
|
|
146
|
+
"brandColour": {
|
|
147
|
+
"location": "import",
|
|
148
|
+
"path": "../../globals/brand-colour"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"required": false,
|
|
153
|
+
"optional": false,
|
|
154
|
+
"docs": {
|
|
155
|
+
"tags": [],
|
|
156
|
+
"text": ""
|
|
157
|
+
},
|
|
158
|
+
"attribute": "text-colour",
|
|
159
|
+
"reflect": false,
|
|
160
|
+
"defaultValue": "'black'"
|
|
161
|
+
},
|
|
162
|
+
"iconGroup": {
|
|
163
|
+
"type": "string",
|
|
164
|
+
"mutable": false,
|
|
165
|
+
"complexType": {
|
|
166
|
+
"original": "'beneficiary' | 'misc' | 'social' | 'category'",
|
|
167
|
+
"resolved": "\"beneficiary\" | \"category\" | \"misc\" | \"social\"",
|
|
168
|
+
"references": {}
|
|
169
|
+
},
|
|
170
|
+
"required": false,
|
|
171
|
+
"optional": false,
|
|
172
|
+
"docs": {
|
|
173
|
+
"tags": [],
|
|
174
|
+
"text": ""
|
|
175
|
+
},
|
|
176
|
+
"attribute": "icon-group",
|
|
177
|
+
"reflect": false
|
|
178
|
+
},
|
|
179
|
+
"icon": {
|
|
180
|
+
"type": "string",
|
|
181
|
+
"mutable": false,
|
|
182
|
+
"complexType": {
|
|
183
|
+
"original": "string",
|
|
184
|
+
"resolved": "string",
|
|
185
|
+
"references": {}
|
|
186
|
+
},
|
|
187
|
+
"required": false,
|
|
188
|
+
"optional": false,
|
|
189
|
+
"docs": {
|
|
190
|
+
"tags": [],
|
|
191
|
+
"text": ""
|
|
192
|
+
},
|
|
193
|
+
"attribute": "icon",
|
|
194
|
+
"reflect": false
|
|
195
|
+
},
|
|
196
|
+
"url": {
|
|
197
|
+
"type": "string",
|
|
198
|
+
"mutable": false,
|
|
199
|
+
"complexType": {
|
|
200
|
+
"original": "string",
|
|
201
|
+
"resolved": "string",
|
|
202
|
+
"references": {}
|
|
203
|
+
},
|
|
204
|
+
"required": false,
|
|
205
|
+
"optional": false,
|
|
206
|
+
"docs": {
|
|
207
|
+
"tags": [],
|
|
208
|
+
"text": ""
|
|
209
|
+
},
|
|
210
|
+
"attribute": "url",
|
|
211
|
+
"reflect": false
|
|
212
|
+
},
|
|
213
|
+
"openInNewTab": {
|
|
214
|
+
"type": "boolean",
|
|
215
|
+
"mutable": false,
|
|
216
|
+
"complexType": {
|
|
217
|
+
"original": "boolean",
|
|
218
|
+
"resolved": "boolean",
|
|
219
|
+
"references": {}
|
|
220
|
+
},
|
|
221
|
+
"required": false,
|
|
222
|
+
"optional": false,
|
|
223
|
+
"docs": {
|
|
224
|
+
"tags": [],
|
|
225
|
+
"text": ""
|
|
226
|
+
},
|
|
227
|
+
"attribute": "open-in-new-tab",
|
|
228
|
+
"reflect": false,
|
|
229
|
+
"defaultValue": "false"
|
|
230
|
+
},
|
|
231
|
+
"size": {
|
|
232
|
+
"type": "string",
|
|
233
|
+
"mutable": false,
|
|
234
|
+
"complexType": {
|
|
235
|
+
"original": "'small' | 'medium' | 'large' | 'x-large' | 'xx-large'",
|
|
236
|
+
"resolved": "\"large\" | \"medium\" | \"small\" | \"x-large\" | \"xx-large\"",
|
|
237
|
+
"references": {}
|
|
238
|
+
},
|
|
239
|
+
"required": false,
|
|
240
|
+
"optional": false,
|
|
241
|
+
"docs": {
|
|
242
|
+
"tags": [],
|
|
243
|
+
"text": ""
|
|
244
|
+
},
|
|
245
|
+
"attribute": "size",
|
|
246
|
+
"reflect": false,
|
|
247
|
+
"defaultValue": "'medium'"
|
|
248
|
+
},
|
|
249
|
+
"arrow": {
|
|
250
|
+
"type": "boolean",
|
|
251
|
+
"mutable": false,
|
|
252
|
+
"complexType": {
|
|
253
|
+
"original": "boolean",
|
|
254
|
+
"resolved": "boolean",
|
|
255
|
+
"references": {}
|
|
256
|
+
},
|
|
257
|
+
"required": false,
|
|
258
|
+
"optional": false,
|
|
259
|
+
"docs": {
|
|
260
|
+
"tags": [],
|
|
261
|
+
"text": ""
|
|
262
|
+
},
|
|
263
|
+
"attribute": "arrow",
|
|
264
|
+
"reflect": false,
|
|
265
|
+
"defaultValue": "false"
|
|
266
|
+
},
|
|
267
|
+
"arrowColour": {
|
|
268
|
+
"type": "string",
|
|
269
|
+
"mutable": false,
|
|
270
|
+
"complexType": {
|
|
271
|
+
"original": "brandColour",
|
|
272
|
+
"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\"",
|
|
273
|
+
"references": {
|
|
274
|
+
"brandColour": {
|
|
275
|
+
"location": "import",
|
|
276
|
+
"path": "../../globals/brand-colour"
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"required": false,
|
|
281
|
+
"optional": false,
|
|
282
|
+
"docs": {
|
|
283
|
+
"tags": [],
|
|
284
|
+
"text": ""
|
|
285
|
+
},
|
|
286
|
+
"attribute": "arrow-colour",
|
|
287
|
+
"reflect": false,
|
|
288
|
+
"defaultValue": "'black'"
|
|
289
|
+
},
|
|
290
|
+
"circle": {
|
|
291
|
+
"type": "boolean",
|
|
292
|
+
"mutable": false,
|
|
293
|
+
"complexType": {
|
|
294
|
+
"original": "boolean",
|
|
295
|
+
"resolved": "boolean",
|
|
296
|
+
"references": {}
|
|
297
|
+
},
|
|
298
|
+
"required": false,
|
|
299
|
+
"optional": false,
|
|
300
|
+
"docs": {
|
|
301
|
+
"tags": [],
|
|
302
|
+
"text": ""
|
|
303
|
+
},
|
|
304
|
+
"attribute": "circle",
|
|
305
|
+
"reflect": false,
|
|
306
|
+
"defaultValue": "false"
|
|
307
|
+
},
|
|
308
|
+
"shadow": {
|
|
309
|
+
"type": "boolean",
|
|
310
|
+
"mutable": false,
|
|
311
|
+
"complexType": {
|
|
312
|
+
"original": "boolean",
|
|
313
|
+
"resolved": "boolean",
|
|
314
|
+
"references": {}
|
|
315
|
+
},
|
|
316
|
+
"required": false,
|
|
317
|
+
"optional": false,
|
|
318
|
+
"docs": {
|
|
319
|
+
"tags": [],
|
|
320
|
+
"text": ""
|
|
321
|
+
},
|
|
322
|
+
"attribute": "shadow",
|
|
323
|
+
"reflect": false,
|
|
324
|
+
"defaultValue": "false"
|
|
325
|
+
},
|
|
326
|
+
"centered": {
|
|
327
|
+
"type": "boolean",
|
|
328
|
+
"mutable": false,
|
|
329
|
+
"complexType": {
|
|
330
|
+
"original": "boolean",
|
|
331
|
+
"resolved": "boolean",
|
|
332
|
+
"references": {}
|
|
333
|
+
},
|
|
334
|
+
"required": false,
|
|
335
|
+
"optional": false,
|
|
336
|
+
"docs": {
|
|
337
|
+
"tags": [],
|
|
338
|
+
"text": ""
|
|
339
|
+
},
|
|
340
|
+
"attribute": "centered",
|
|
341
|
+
"reflect": false,
|
|
342
|
+
"defaultValue": "false"
|
|
343
|
+
},
|
|
344
|
+
"rounded": {
|
|
345
|
+
"type": "boolean",
|
|
346
|
+
"mutable": false,
|
|
347
|
+
"complexType": {
|
|
348
|
+
"original": "boolean",
|
|
349
|
+
"resolved": "boolean",
|
|
350
|
+
"references": {}
|
|
351
|
+
},
|
|
352
|
+
"required": false,
|
|
353
|
+
"optional": false,
|
|
354
|
+
"docs": {
|
|
355
|
+
"tags": [],
|
|
356
|
+
"text": ""
|
|
357
|
+
},
|
|
358
|
+
"attribute": "rounded",
|
|
359
|
+
"reflect": false,
|
|
360
|
+
"defaultValue": "false"
|
|
361
|
+
},
|
|
362
|
+
"buttonId": {
|
|
363
|
+
"type": "string",
|
|
364
|
+
"mutable": false,
|
|
365
|
+
"complexType": {
|
|
366
|
+
"original": "undefined | string",
|
|
367
|
+
"resolved": "string | undefined",
|
|
368
|
+
"references": {}
|
|
369
|
+
},
|
|
370
|
+
"required": false,
|
|
371
|
+
"optional": false,
|
|
372
|
+
"docs": {
|
|
373
|
+
"tags": [],
|
|
374
|
+
"text": ""
|
|
375
|
+
},
|
|
376
|
+
"attribute": "button-id",
|
|
377
|
+
"reflect": false,
|
|
378
|
+
"defaultValue": "undefined"
|
|
379
|
+
}
|
|
380
|
+
};
|
|
381
|
+
}
|
|
382
|
+
static get events() {
|
|
383
|
+
return [{
|
|
384
|
+
"method": "doButtonClick",
|
|
385
|
+
"name": "doButtonClick",
|
|
386
|
+
"bubbles": true,
|
|
387
|
+
"cancelable": true,
|
|
388
|
+
"composed": true,
|
|
389
|
+
"docs": {
|
|
390
|
+
"tags": [],
|
|
391
|
+
"text": ""
|
|
392
|
+
},
|
|
393
|
+
"complexType": {
|
|
394
|
+
"original": "{ event: object; url: string }",
|
|
395
|
+
"resolved": "{ event: object; url: string; }",
|
|
396
|
+
"references": {}
|
|
397
|
+
}
|
|
398
|
+
}];
|
|
399
|
+
}
|
|
400
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
title: 'Components/Buttons',
|
|
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
|
+
backgroundColour: {
|
|
12
|
+
name: 'Background 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
|
+
backgroundPadding: {
|
|
19
|
+
name: 'Background padding',
|
|
20
|
+
control: {
|
|
21
|
+
type: 'select',
|
|
22
|
+
options: [0, 1, 2, 3, 4, 5, 6],
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
icon: {
|
|
26
|
+
name: 'Icon',
|
|
27
|
+
},
|
|
28
|
+
text: {
|
|
29
|
+
name: 'Text',
|
|
30
|
+
},
|
|
31
|
+
textColour: {
|
|
32
|
+
name: 'Text colour',
|
|
33
|
+
control: {
|
|
34
|
+
type: 'select',
|
|
35
|
+
options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
url: {
|
|
39
|
+
name: 'Url',
|
|
40
|
+
},
|
|
41
|
+
openInNewTab: {
|
|
42
|
+
name: 'Open in new tab',
|
|
43
|
+
},
|
|
44
|
+
size: {
|
|
45
|
+
name: 'Size',
|
|
46
|
+
control: {
|
|
47
|
+
type: 'select',
|
|
48
|
+
options: ['small', 'medium', 'large', 'x-large', 'xx-large'],
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
arrow: {
|
|
52
|
+
name: 'Arrow',
|
|
53
|
+
options: [true, false],
|
|
54
|
+
},
|
|
55
|
+
arrowColour: {
|
|
56
|
+
name: 'Arrow colour',
|
|
57
|
+
control: {
|
|
58
|
+
type: 'select',
|
|
59
|
+
options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
circle: {
|
|
63
|
+
name: 'Circle',
|
|
64
|
+
options: [true, false],
|
|
65
|
+
},
|
|
66
|
+
shadow: {
|
|
67
|
+
name: 'Shadow',
|
|
68
|
+
options: [true, false],
|
|
69
|
+
},
|
|
70
|
+
centered: {
|
|
71
|
+
name: 'Centered',
|
|
72
|
+
options: [true, false],
|
|
73
|
+
},
|
|
74
|
+
rounded: {
|
|
75
|
+
name: 'Rounded',
|
|
76
|
+
options: [true, false],
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
const Template = args => `
|
|
81
|
+
<biggive-icon-button
|
|
82
|
+
space-below="${args.spaceBelow}"
|
|
83
|
+
background-colour="${args.backgroundColour}"
|
|
84
|
+
background-padding="${args.backgroundPadding}"
|
|
85
|
+
text=${args.text}
|
|
86
|
+
textColour=${args.textColour}
|
|
87
|
+
icon="${args.icon}"
|
|
88
|
+
url="${args.url}"
|
|
89
|
+
open-in-new-tab="${args.openInNewTab}"
|
|
90
|
+
size=${args.size}
|
|
91
|
+
arrow=${args.arrow}
|
|
92
|
+
arrowColour=${args.arrowColour}
|
|
93
|
+
circle=${args.circle}
|
|
94
|
+
shadow=${args.shadow}
|
|
95
|
+
centered=${args.centered}
|
|
96
|
+
rounded=${args.rounded}
|
|
97
|
+
</biggive-icon-button>
|
|
98
|
+
`;
|
|
99
|
+
export const IconButtonComponent = Template.bind({});
|
|
100
|
+
IconButtonComponent.args = {
|
|
101
|
+
spaceBelow: 0,
|
|
102
|
+
backgroundColour: 'white',
|
|
103
|
+
backgroundPadding: 3,
|
|
104
|
+
text: 'This is the button text',
|
|
105
|
+
textColour: 'black',
|
|
106
|
+
icon: '',
|
|
107
|
+
url: 'http://www.google.com',
|
|
108
|
+
openInNewTab: false,
|
|
109
|
+
size: 'medium',
|
|
110
|
+
arrow: true,
|
|
111
|
+
arrowColour: 'black',
|
|
112
|
+
circle: false,
|
|
113
|
+
shadow: false,
|
|
114
|
+
centered: false,
|
|
115
|
+
rounded: false,
|
|
116
|
+
};
|