@biggive/components 202303201257.0.0 → 202303231047.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-15630ae5.entry.js +1 -0
- 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-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} +445 -32
- 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-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 +1 -1
- 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/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-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 +1 -1
- 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/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} +438 -33
- 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-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 +229 -126
- package/hydrate/index.js +517 -51
- package/package.json +1 -1
- package/dist/biggive/p-265a6be4.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,144 @@
|
|
|
1
|
+
import { h } from '@stencil/core';
|
|
2
|
+
import { FontAwesomeIconsService } from '../../util/fontawesome-icons';
|
|
3
|
+
export class BiggiveGenericIcon {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.backgroundColour = 'primary';
|
|
6
|
+
this.iconColour = 'white';
|
|
7
|
+
this.iconGroup = undefined;
|
|
8
|
+
this.icon = undefined;
|
|
9
|
+
this.url = undefined;
|
|
10
|
+
}
|
|
11
|
+
getIcon() {
|
|
12
|
+
let icon;
|
|
13
|
+
if (this.iconGroup == 'beneficiary') {
|
|
14
|
+
icon = FontAwesomeIconsService.getBeneficiaryIcon(this.icon);
|
|
15
|
+
}
|
|
16
|
+
else if (this.iconGroup == 'misc') {
|
|
17
|
+
icon = FontAwesomeIconsService.getMiscIcon(this.icon);
|
|
18
|
+
}
|
|
19
|
+
else if (this.iconGroup == 'social') {
|
|
20
|
+
icon = FontAwesomeIconsService.getSocialIcon(this.icon);
|
|
21
|
+
}
|
|
22
|
+
else if (this.iconGroup == 'category') {
|
|
23
|
+
icon = FontAwesomeIconsService.getCategoryIcon(this.icon);
|
|
24
|
+
}
|
|
25
|
+
return icon;
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
return (
|
|
29
|
+
// Note: the icon name prop is set as a css class too for any styling specific to certain icons
|
|
30
|
+
h("div", { class: 'generic-icon-item background-colour-' + this.backgroundColour + ' ' + this.icon }, h("a", { href: this.url }, this.getIcon() ? (h("svg", { width: this.getIcon().icon[0], height: this.getIcon().icon[1], xmlns: "http://www.w3.org/2000/svg", class: 'fill-' + this.iconColour, viewBox: '0 0 ' + this.getIcon().icon[0] + ' ' + this.getIcon().icon[1] }, h("path", { d: this.getIcon().icon[4].toString() }))) : null)));
|
|
31
|
+
}
|
|
32
|
+
static get is() { return "biggive-generic-icon"; }
|
|
33
|
+
static get originalStyleUrls() {
|
|
34
|
+
return {
|
|
35
|
+
"$": ["biggive-generic-icon.scss"]
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
static get styleUrls() {
|
|
39
|
+
return {
|
|
40
|
+
"$": ["biggive-generic-icon.css"]
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
static get properties() {
|
|
44
|
+
return {
|
|
45
|
+
"backgroundColour": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"mutable": false,
|
|
48
|
+
"complexType": {
|
|
49
|
+
"original": "brandColour",
|
|
50
|
+
"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\"",
|
|
51
|
+
"references": {
|
|
52
|
+
"brandColour": {
|
|
53
|
+
"location": "import",
|
|
54
|
+
"path": "../../globals/brand-colour"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"required": false,
|
|
59
|
+
"optional": false,
|
|
60
|
+
"docs": {
|
|
61
|
+
"tags": [],
|
|
62
|
+
"text": ""
|
|
63
|
+
},
|
|
64
|
+
"attribute": "background-colour",
|
|
65
|
+
"reflect": false,
|
|
66
|
+
"defaultValue": "'primary'"
|
|
67
|
+
},
|
|
68
|
+
"iconColour": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"mutable": false,
|
|
71
|
+
"complexType": {
|
|
72
|
+
"original": "brandColour",
|
|
73
|
+
"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\"",
|
|
74
|
+
"references": {
|
|
75
|
+
"brandColour": {
|
|
76
|
+
"location": "import",
|
|
77
|
+
"path": "../../globals/brand-colour"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"required": false,
|
|
82
|
+
"optional": false,
|
|
83
|
+
"docs": {
|
|
84
|
+
"tags": [],
|
|
85
|
+
"text": ""
|
|
86
|
+
},
|
|
87
|
+
"attribute": "icon-colour",
|
|
88
|
+
"reflect": false,
|
|
89
|
+
"defaultValue": "'white'"
|
|
90
|
+
},
|
|
91
|
+
"iconGroup": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"mutable": false,
|
|
94
|
+
"complexType": {
|
|
95
|
+
"original": "'beneficiary' | 'misc' | 'social' | 'category'",
|
|
96
|
+
"resolved": "\"beneficiary\" | \"category\" | \"misc\" | \"social\"",
|
|
97
|
+
"references": {}
|
|
98
|
+
},
|
|
99
|
+
"required": false,
|
|
100
|
+
"optional": false,
|
|
101
|
+
"docs": {
|
|
102
|
+
"tags": [],
|
|
103
|
+
"text": ""
|
|
104
|
+
},
|
|
105
|
+
"attribute": "icon-group",
|
|
106
|
+
"reflect": false
|
|
107
|
+
},
|
|
108
|
+
"icon": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"mutable": false,
|
|
111
|
+
"complexType": {
|
|
112
|
+
"original": "string",
|
|
113
|
+
"resolved": "string",
|
|
114
|
+
"references": {}
|
|
115
|
+
},
|
|
116
|
+
"required": false,
|
|
117
|
+
"optional": false,
|
|
118
|
+
"docs": {
|
|
119
|
+
"tags": [],
|
|
120
|
+
"text": ""
|
|
121
|
+
},
|
|
122
|
+
"attribute": "icon",
|
|
123
|
+
"reflect": false
|
|
124
|
+
},
|
|
125
|
+
"url": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"mutable": false,
|
|
128
|
+
"complexType": {
|
|
129
|
+
"original": "string",
|
|
130
|
+
"resolved": "string",
|
|
131
|
+
"references": {}
|
|
132
|
+
},
|
|
133
|
+
"required": false,
|
|
134
|
+
"optional": false,
|
|
135
|
+
"docs": {
|
|
136
|
+
"tags": [],
|
|
137
|
+
"text": ""
|
|
138
|
+
},
|
|
139
|
+
"attribute": "url",
|
|
140
|
+
"reflect": false
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
title: 'Components/Icons',
|
|
3
|
+
argTypes: {
|
|
4
|
+
backgroundColour: {
|
|
5
|
+
name: 'Background Colour',
|
|
6
|
+
control: {
|
|
7
|
+
type: 'select',
|
|
8
|
+
options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
iconColour: {
|
|
12
|
+
name: 'Icon 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
|
+
iconGroup: {
|
|
19
|
+
name: 'Icon Group',
|
|
20
|
+
control: {
|
|
21
|
+
type: 'select',
|
|
22
|
+
options: ['beneficiary', 'misc', 'social', 'category'],
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
icon: {
|
|
26
|
+
name: 'Service',
|
|
27
|
+
control: {
|
|
28
|
+
type: 'select',
|
|
29
|
+
options: ['AlarmClock', 'Heart'],
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
url: {
|
|
33
|
+
name: 'Url',
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
const Template = args => `
|
|
38
|
+
<biggive-generic-icon
|
|
39
|
+
background-colour="${args.backgroundColour}"
|
|
40
|
+
icon-colour="${args.iconColour}"
|
|
41
|
+
icon-group="${args.iconGroup}"
|
|
42
|
+
icon="${args.icon}"
|
|
43
|
+
url="${args.url}"
|
|
44
|
+
</biggive-misc-icon>
|
|
45
|
+
`;
|
|
46
|
+
export const GenericIconComponent = Template.bind({});
|
|
47
|
+
GenericIconComponent.args = {
|
|
48
|
+
backgroundColour: 'primary',
|
|
49
|
+
iconColour: 'white',
|
|
50
|
+
iconGroup: 'misc',
|
|
51
|
+
icon: 'AlarmClock',
|
|
52
|
+
url: '#',
|
|
53
|
+
};
|
|
@@ -83,8 +83,8 @@ a:hover {
|
|
|
83
83
|
display: block;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
.column-count-
|
|
87
|
-
width:
|
|
86
|
+
.column-count-2 ::slotted(*) {
|
|
87
|
+
width: 50%;
|
|
88
88
|
display: flex;
|
|
89
89
|
flex-direction: column;
|
|
90
90
|
}
|
|
@@ -95,23 +95,183 @@ a:hover {
|
|
|
95
95
|
flex-direction: column;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
.column-count-
|
|
99
|
-
width:
|
|
98
|
+
.column-count-4 ::slotted(*) {
|
|
99
|
+
width: 25%;
|
|
100
|
+
display: flex;
|
|
101
|
+
flex-direction: column;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.column-count-5 ::slotted(*) {
|
|
105
|
+
width: 20%;
|
|
100
106
|
display: flex;
|
|
101
107
|
flex-direction: column;
|
|
102
108
|
}
|
|
103
109
|
|
|
110
|
+
.column-count-6 ::slotted(*) {
|
|
111
|
+
width: 16.6666666667%;
|
|
112
|
+
display: flex;
|
|
113
|
+
flex-direction: column;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.column-gap-1 {
|
|
117
|
+
justify-content: space-between;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.column-gap-2 {
|
|
121
|
+
justify-content: space-between;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.column-gap-3 {
|
|
125
|
+
justify-content: space-between;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.column-gap-4 {
|
|
129
|
+
justify-content: space-between;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.column-gap-5 {
|
|
133
|
+
justify-content: space-between;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.column-gap-6 {
|
|
137
|
+
justify-content: space-between;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.column-count-2.column-gap-1 ::slotted(*) {
|
|
141
|
+
width: calc(50% - 2.5px);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.column-count-2.column-gap-2 ::slotted(*) {
|
|
145
|
+
width: calc(50% - 5px);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.column-count-2.column-gap-3 ::slotted(*) {
|
|
149
|
+
width: calc(50% - 7.5px);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.column-count-2.column-gap-4 ::slotted(*) {
|
|
153
|
+
width: calc(50% - 15px);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.column-count-2.column-gap-5 ::slotted(*) {
|
|
157
|
+
width: calc(50% - 22.5px);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.column-count-2.column-gap-6 ::slotted(*) {
|
|
161
|
+
width: calc(50% - 30px);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.column-count-3.column-gap-1 ::slotted(*) {
|
|
165
|
+
width: calc(33.3333333333% - 3.3333333333px);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.column-count-3.column-gap-2 ::slotted(*) {
|
|
169
|
+
width: calc(33.3333333333% - 6.6666666667px);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.column-count-3.column-gap-3 ::slotted(*) {
|
|
173
|
+
width: calc(33.3333333333% - 10px);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.column-count-3.column-gap-4 ::slotted(*) {
|
|
177
|
+
width: calc(33.3333333333% - 20px);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.column-count-3.column-gap-5 ::slotted(*) {
|
|
181
|
+
width: calc(33.3333333333% - 30px);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.column-count-3.column-gap-6 ::slotted(*) {
|
|
185
|
+
width: calc(33.3333333333% - 40px);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.column-count-4.column-gap-1 ::slotted(*) {
|
|
189
|
+
width: calc(25% - 3.75px);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.column-count-4.column-gap-2 ::slotted(*) {
|
|
193
|
+
width: calc(25% - 7.5px);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.column-count-4.column-gap-3 ::slotted(*) {
|
|
197
|
+
width: calc(25% - 11.25px);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.column-count-4.column-gap-4 ::slotted(*) {
|
|
201
|
+
width: calc(25% - 22.5px);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.column-count-4.column-gap-5 ::slotted(*) {
|
|
205
|
+
width: calc(25% - 33.75px);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.column-count-4.column-gap-6 ::slotted(*) {
|
|
209
|
+
width: calc(25% - 45px);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.column-count-5.column-gap-1 ::slotted(*) {
|
|
213
|
+
width: calc(20% - 4px);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.column-count-5.column-gap-2 ::slotted(*) {
|
|
217
|
+
width: calc(20% - 8px);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.column-count-5.column-gap-3 ::slotted(*) {
|
|
221
|
+
width: calc(20% - 12px);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.column-count-5.column-gap-4 ::slotted(*) {
|
|
225
|
+
width: calc(20% - 24px);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.column-count-5.column-gap-5 ::slotted(*) {
|
|
229
|
+
width: calc(20% - 36px);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.column-count-5.column-gap-6 ::slotted(*) {
|
|
233
|
+
width: calc(20% - 48px);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.column-count-6.column-gap-1 ::slotted(*) {
|
|
237
|
+
width: calc(16.6666666667% - 4.1666666667px);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.column-count-6.column-gap-2 ::slotted(*) {
|
|
241
|
+
width: calc(16.6666666667% - 8.3333333333px);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.column-count-6.column-gap-3 ::slotted(*) {
|
|
245
|
+
width: calc(16.6666666667% - 12.5px);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.column-count-6.column-gap-4 ::slotted(*) {
|
|
249
|
+
width: calc(16.6666666667% - 25px);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.column-count-6.column-gap-5 ::slotted(*) {
|
|
253
|
+
width: calc(16.6666666667% - 37.5px);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.column-count-6.column-gap-6 ::slotted(*) {
|
|
257
|
+
width: calc(16.6666666667% - 50px);
|
|
258
|
+
}
|
|
259
|
+
|
|
104
260
|
@media screen and (max-width: 768px) {
|
|
105
261
|
.column-count-2 ::slotted(*),
|
|
106
262
|
.column-count-3 ::slotted(*),
|
|
107
|
-
.column-count-4 ::slotted(*)
|
|
263
|
+
.column-count-4 ::slotted(*),
|
|
264
|
+
.column-count-5 ::slotted(*),
|
|
265
|
+
.column-count-6 ::slotted(*) {
|
|
108
266
|
width: calc(50% - 15px);
|
|
109
267
|
}
|
|
110
268
|
}
|
|
111
269
|
@media screen and (max-width: 576px) {
|
|
112
270
|
.column-count-2 ::slotted(*),
|
|
113
271
|
.column-count-3 ::slotted(*),
|
|
114
|
-
.column-count-4 ::slotted(*)
|
|
272
|
+
.column-count-4 ::slotted(*),
|
|
273
|
+
.column-count-5 ::slotted(*),
|
|
274
|
+
.column-count-6 ::slotted(*) {
|
|
115
275
|
width: 100%;
|
|
116
276
|
}
|
|
117
277
|
}
|
|
@@ -4,9 +4,10 @@ export class BiggiveGrid {
|
|
|
4
4
|
this.spaceBelow = 4;
|
|
5
5
|
this.columnCount = 3;
|
|
6
6
|
this.spaceBetween = false;
|
|
7
|
+
this.columnGap = 0;
|
|
7
8
|
}
|
|
8
9
|
render() {
|
|
9
|
-
return (h("div", { class: 'grid column-count-' + this.columnCount + ' space-below-' + this.spaceBelow + (this.spaceBetween ? ' space-between' : '') }, h("slot", null)));
|
|
10
|
+
return (h("div", { class: 'grid column-count-' + this.columnCount + ' space-below-' + this.spaceBelow + ' column-gap-' + this.columnGap + (this.spaceBetween ? ' space-between' : '') }, h("slot", null)));
|
|
10
11
|
}
|
|
11
12
|
static get is() { return "biggive-grid"; }
|
|
12
13
|
static get encapsulation() { return "shadow"; }
|
|
@@ -34,7 +35,7 @@ export class BiggiveGrid {
|
|
|
34
35
|
"optional": false,
|
|
35
36
|
"docs": {
|
|
36
37
|
"tags": [],
|
|
37
|
-
"text": "
|
|
38
|
+
"text": ""
|
|
38
39
|
},
|
|
39
40
|
"attribute": "space-below",
|
|
40
41
|
"reflect": false,
|
|
@@ -52,7 +53,7 @@ export class BiggiveGrid {
|
|
|
52
53
|
"optional": false,
|
|
53
54
|
"docs": {
|
|
54
55
|
"tags": [],
|
|
55
|
-
"text": "
|
|
56
|
+
"text": ""
|
|
56
57
|
},
|
|
57
58
|
"attribute": "column-count",
|
|
58
59
|
"reflect": false,
|
|
@@ -70,11 +71,34 @@ export class BiggiveGrid {
|
|
|
70
71
|
"optional": false,
|
|
71
72
|
"docs": {
|
|
72
73
|
"tags": [],
|
|
73
|
-
"text": "
|
|
74
|
+
"text": "Deprecated - should use columGap Instead"
|
|
74
75
|
},
|
|
75
76
|
"attribute": "space-between",
|
|
76
77
|
"reflect": false,
|
|
77
78
|
"defaultValue": "false"
|
|
79
|
+
},
|
|
80
|
+
"columnGap": {
|
|
81
|
+
"type": "number",
|
|
82
|
+
"mutable": false,
|
|
83
|
+
"complexType": {
|
|
84
|
+
"original": "spacingOption",
|
|
85
|
+
"resolved": "0 | 1 | 2 | 3 | 4 | 5 | 6",
|
|
86
|
+
"references": {
|
|
87
|
+
"spacingOption": {
|
|
88
|
+
"location": "import",
|
|
89
|
+
"path": "../../globals/spacing-option"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"required": false,
|
|
94
|
+
"optional": false,
|
|
95
|
+
"docs": {
|
|
96
|
+
"tags": [],
|
|
97
|
+
"text": ""
|
|
98
|
+
},
|
|
99
|
+
"attribute": "column-gap",
|
|
100
|
+
"reflect": false,
|
|
101
|
+
"defaultValue": "0"
|
|
78
102
|
}
|
|
79
103
|
};
|
|
80
104
|
}
|