@internetstiftelsen/styleguide 2.22.1 → 2.22.2
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/package.json +1 -1
- package/src/atoms/archive-link/archive-link.config.js +9 -0
- package/src/atoms/button/button.config.js +202 -0
- package/src/atoms/checkbox/checkbox.config.js +48 -0
- package/src/atoms/file/file.config.js +36 -0
- package/src/atoms/grid-toggle/grid-toggle.config.js +8 -0
- package/src/atoms/height-limiter/height-limiter.config.js +8 -0
- package/src/atoms/icon/icon.config.js +43 -0
- package/src/atoms/input/input.config.js +56 -0
- package/src/atoms/label/label.config.js +9 -0
- package/src/atoms/logotype/logotype.config.js +39 -0
- package/src/atoms/main-menu/main-menu.config.js +75 -0
- package/src/atoms/meta/meta.config.js +42 -0
- package/src/atoms/paging/paging.config.js +30 -0
- package/src/atoms/password-toggle/password-toggle.config.js +14 -0
- package/src/atoms/quote/quote.config.js +9 -0
- package/src/atoms/radiobutton/radiobutton.config.js +48 -0
- package/src/atoms/rating/rating.config.js +7 -0
- package/src/atoms/ribbon/ribbon.config.js +9 -0
- package/src/atoms/select/select.config.js +78 -0
- package/src/atoms/skip/skip.config.js +19 -0
- package/src/atoms/spinner/spinner.config.js +5 -0
- package/src/atoms/tag/tag.config.js +36 -0
- package/src/atoms/textarea/textarea.config.js +56 -0
- package/src/atoms/toggle-high-contrast/toggle-high-contrast.config.js +8 -0
- package/src/atoms/tooltip/tooltip.config.js +8 -0
- package/src/brandbook/goto10/goto10.config.js +187 -0
- package/src/brandbook/internetstiftelsen/bildman/303/251r/bildman/303/251r.config.js +5 -0
- package/src/brandbook/internetstiftelsen/identitet/identitet.config.js +5 -0
- package/src/brandbook/internetstiftelsen/tonalitet och spr/303/245kbruk/tonalitet och spr/303/245kbruk.config.js" +5 -0
- package/src/configurations/colors/colors.config.js +225 -0
- package/src/configurations/favicon/favicon.config.js +7 -0
- package/src/configurations/grid/grid.config.js +8 -0
- package/src/configurations/typography/typography.config.js +17 -0
- package/src/molecules/alert/alert.config.js +50 -0
- package/src/molecules/breadcrumb/breadcrumb.config.js +28 -0
- package/src/molecules/byline/byline.config.js +25 -0
- package/src/molecules/card/card.config.js +111 -0
- package/src/molecules/context-menu/context-menu.config.js +28 -0
- package/src/molecules/cookie-disclaimer/cookie-disclaimer.config.js +12 -0
- package/src/molecules/download/download.config.js +12 -0
- package/src/molecules/form/form.config.js +15 -0
- package/src/molecules/form-control/form-control.config.js +78 -0
- package/src/molecules/glider/glider.config.js +22 -0
- package/src/molecules/icon-overlay/icon-overlay.config.js +11 -0
- package/src/molecules/info-box/info-box.config.js +33 -0
- package/src/molecules/modal/modal.config.js +44 -0
- package/src/molecules/natural-language-form/natural-language-form.config.js +43 -0
- package/src/molecules/share/share.config.js +8 -0
- package/src/molecules/submenu/submenu.config.js +27 -0
- package/src/molecules/system-error/system-error.config.js +10 -0
- package/src/molecules/table/table.config.js +55 -0
- package/src/molecules/teaser-news-list/teaser-news-list.config.js +47 -0
- package/src/molecules/timeline-navigation/timeline-navigation.config.js +15 -0
- package/src/organisms/accordion/accordion.config.js +163 -0
- package/src/organisms/domain-search/domain-search.config.js +10 -0
- package/src/organisms/event-listing-item/event-listing-item.config.js +15 -0
- package/src/organisms/features-box/features-box.config.js +227 -0
- package/src/organisms/filter/filter.config.js +165 -0
- package/src/organisms/footer/footer.config.js +30 -0
- package/src/organisms/header/header.config.js +10 -0
- package/src/organisms/hero/hero.config.js +117 -0
- package/src/organisms/mailchimp/mailchimp.config.js +38 -0
- package/src/organisms/mega-menu/mega-menu.config.js +22 -0
- package/src/organisms/podcast/podcast.config.js +76 -0
- package/src/organisms/search-result/search-result.config.js +12 -0
- package/src/organisms/sections/sections.config.js +68 -0
- package/src/organisms/tabs/tabs.config.js +28 -0
- package/src/pages/animate-footer/animate-footer.config.js +10 -0
- package/src/pages/conditional/conditional.config.js +4 -0
- package/src/pages/internetguider/internetguider.config.js +7 -0
- package/src/pages/magazine/magazine.config.js +19 -0
- package/src/pages/mailchimp-newsletter/mailchimp-newsletter.config.js +7 -0
- package/src/pages/responsive-position/responsive-position.config.js +4 -0
- package/src/pages/search/search.config.js +7 -0
- package/src/pages/timeline/timeline.config.js +19 -0
- package/src/pages/wordpress-blocks/wordpress-blocks.config.js +19 -0
package/package.json
CHANGED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
status: "ready",
|
|
3
|
+
tags: ['RTR', 'website'],
|
|
4
|
+
|
|
5
|
+
context: {
|
|
6
|
+
url: '#',
|
|
7
|
+
text: 'Primary button',
|
|
8
|
+
alternative_text: false,
|
|
9
|
+
button_type: false,
|
|
10
|
+
type: false,
|
|
11
|
+
id: false,
|
|
12
|
+
aria_controls: false,
|
|
13
|
+
},
|
|
14
|
+
variants: [
|
|
15
|
+
{
|
|
16
|
+
name: 'Ruby',
|
|
17
|
+
context: {
|
|
18
|
+
modifiers: ['ruby'],
|
|
19
|
+
text: 'Ruby secondary button'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Ruby light',
|
|
24
|
+
context: {
|
|
25
|
+
modifiers: ['ruby-light'],
|
|
26
|
+
text: 'Ruby secondary button'
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'Ruby dark',
|
|
31
|
+
context: {
|
|
32
|
+
modifiers: ['ruby-dark'],
|
|
33
|
+
text: 'Ruby dark secondary button'
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: 'Jade',
|
|
38
|
+
context: {
|
|
39
|
+
modifiers: ['jade'],
|
|
40
|
+
text: 'Jade button'
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: 'Jade light',
|
|
45
|
+
context: {
|
|
46
|
+
modifiers: ['jade-light'],
|
|
47
|
+
text: 'Jade secondary button'
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: 'Jade dark',
|
|
52
|
+
context: {
|
|
53
|
+
modifiers: ['jade-dark'],
|
|
54
|
+
text: 'Jade dark secondary button'
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: 'Lemon',
|
|
59
|
+
context: {
|
|
60
|
+
modifiers: ['lemon'],
|
|
61
|
+
text: 'Lemon button'
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: 'Lemon light',
|
|
66
|
+
context: {
|
|
67
|
+
modifiers: ['lemon-light'],
|
|
68
|
+
text: 'Lemon secondary button'
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: 'Peacock',
|
|
73
|
+
context: {
|
|
74
|
+
modifiers: ['peacock'],
|
|
75
|
+
text: 'Peacock button'
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: 'Peacock light',
|
|
80
|
+
context: {
|
|
81
|
+
modifiers: ['peacock-light'],
|
|
82
|
+
text: 'Peacock secondary button'
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
name: 'Cyberspace',
|
|
87
|
+
context: {
|
|
88
|
+
modifiers: ['cyberspace'],
|
|
89
|
+
text: 'Cyberspace button'
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: 'Sandstone',
|
|
94
|
+
context: {
|
|
95
|
+
modifiers: ['sandstone'],
|
|
96
|
+
text: 'Sandstone button'
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: 'Transparent',
|
|
101
|
+
context: {
|
|
102
|
+
modifiers: ['transparent'],
|
|
103
|
+
text: 'Going home'
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
name: 'Dashed',
|
|
108
|
+
context: {
|
|
109
|
+
modifiers: ['dashed'],
|
|
110
|
+
text: 'Dashed hollow button'
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name: 'Full width',
|
|
115
|
+
context: {
|
|
116
|
+
modifiers: ['full-width'],
|
|
117
|
+
text: 'Way wide'
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
name: 'Small',
|
|
122
|
+
context: {
|
|
123
|
+
modifiers: ['small'],
|
|
124
|
+
text: 'Going home'
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: 'Large',
|
|
129
|
+
context: {
|
|
130
|
+
modifiers: ['large'],
|
|
131
|
+
text: 'Going home'
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: 'Large responsive',
|
|
136
|
+
context: {
|
|
137
|
+
modifiers: ['large-responsive'],
|
|
138
|
+
text: 'Going home'
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
name: 'With icon',
|
|
143
|
+
context: {
|
|
144
|
+
modifiers: ['icon'],
|
|
145
|
+
text: 'Button with icon',
|
|
146
|
+
additional_classes: '',
|
|
147
|
+
icon: 'arrow-forwards',
|
|
148
|
+
el: 'button'
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
name: 'With left icon',
|
|
153
|
+
context: {
|
|
154
|
+
modifiers: ['icon', 'icon-left'],
|
|
155
|
+
text: 'Button with left icon',
|
|
156
|
+
additional_classes: '',
|
|
157
|
+
icon: 'arrow-forwards',
|
|
158
|
+
el: 'button'
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
name: 'Transparent with icon',
|
|
163
|
+
context: {
|
|
164
|
+
modifiers: ['transparent'],
|
|
165
|
+
text: 'Going home',
|
|
166
|
+
icon: 'arrow-forwards',
|
|
167
|
+
el: 'button'
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
name: 'Loading',
|
|
172
|
+
context: {
|
|
173
|
+
url: false,
|
|
174
|
+
modifiers: ['large'],
|
|
175
|
+
additional_classes: 'has-loader',
|
|
176
|
+
text: 'Click me',
|
|
177
|
+
el: 'button'
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
name: 'Standalone icon',
|
|
182
|
+
context: {
|
|
183
|
+
url: false,
|
|
184
|
+
modifiers: ['standalone-icon'],
|
|
185
|
+
text: '',
|
|
186
|
+
icon: 'close',
|
|
187
|
+
el: 'button'
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
name: 'Standalone icon white',
|
|
192
|
+
context: {
|
|
193
|
+
url: false,
|
|
194
|
+
modifiers: ['standalone-icon'],
|
|
195
|
+
additional_classes: 'a-button--standalone-icon--white',
|
|
196
|
+
text: '',
|
|
197
|
+
icon: 'close',
|
|
198
|
+
el: 'button'
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
]
|
|
202
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
status: 'ready',
|
|
3
|
+
|
|
4
|
+
context: {
|
|
5
|
+
name: 'Checkbox default',
|
|
6
|
+
id: 'radiobutton-0',
|
|
7
|
+
label: 'Checkbox',
|
|
8
|
+
value: '0',
|
|
9
|
+
is_inline: false,
|
|
10
|
+
is_disabled: false
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
variants: [
|
|
14
|
+
{
|
|
15
|
+
name: 'Checkbox inline',
|
|
16
|
+
context: {
|
|
17
|
+
id: 'checkbox-1',
|
|
18
|
+
label: 'Checkbox inline',
|
|
19
|
+
value: '1',
|
|
20
|
+
is_inline: true,
|
|
21
|
+
is_disabled: false
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: 'Checkbox disabled',
|
|
26
|
+
context: {
|
|
27
|
+
|
|
28
|
+
id: 'checkbox-2',
|
|
29
|
+
label: 'Checkbox disabled',
|
|
30
|
+
value: '2',
|
|
31
|
+
is_inline: false,
|
|
32
|
+
is_disabled: true
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'Checkbox invalid',
|
|
37
|
+
context: {
|
|
38
|
+
|
|
39
|
+
id: 'checkbox-3',
|
|
40
|
+
label: 'Checkbox invalid',
|
|
41
|
+
value: '3',
|
|
42
|
+
is_inline: false,
|
|
43
|
+
is_invalid: true,
|
|
44
|
+
is_required: true
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
status: 'ready',
|
|
3
|
+
default: 'Single file',
|
|
4
|
+
|
|
5
|
+
context: {
|
|
6
|
+
label: 'Välj fil',
|
|
7
|
+
type: 'file',
|
|
8
|
+
id: 'file',
|
|
9
|
+
value: false,
|
|
10
|
+
placeholder: 'Välj fil',
|
|
11
|
+
icon: 'upload',
|
|
12
|
+
icon2: 'trashcan'
|
|
13
|
+
},
|
|
14
|
+
variants: [
|
|
15
|
+
{
|
|
16
|
+
name: 'Multiple files',
|
|
17
|
+
context: {
|
|
18
|
+
modifier: 'a-file---multiple',
|
|
19
|
+
is_multiple: true,
|
|
20
|
+
placeholder: 'Välj filer'
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: 'Color variant',
|
|
25
|
+
context: {
|
|
26
|
+
color_variant: 'cyberspace'
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'With preview',
|
|
31
|
+
context: {
|
|
32
|
+
has_preview: true
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
let sprite = fs.readFileSync(__dirname + '/../../_icon-sprite.hbs');
|
|
3
|
+
sprite = sprite.toString().replace(/\ /g, '').replace(/\n/g, '').split('id="');
|
|
4
|
+
const icons = [];
|
|
5
|
+
|
|
6
|
+
for (let i = 0; i < sprite.length; i++) {
|
|
7
|
+
if (sprite[i].substr(0, 4) === 'icon') {
|
|
8
|
+
icons.push({
|
|
9
|
+
id: sprite[i].substr(0, sprite[i].indexOf('"')).replace('icon-', '')
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
module.exports = {
|
|
15
|
+
status: 'ready',
|
|
16
|
+
title: 'Icons',
|
|
17
|
+
|
|
18
|
+
collated: true,
|
|
19
|
+
|
|
20
|
+
preview: '@layout-icons',
|
|
21
|
+
|
|
22
|
+
collator: function(markup, item) {
|
|
23
|
+
if (item.isDefault) {
|
|
24
|
+
return ''; // Don't render default empty icon
|
|
25
|
+
}
|
|
26
|
+
return `<div class="icon-wrapper">${markup}</div>`
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
context: {
|
|
30
|
+
additional_classes: '',
|
|
31
|
+
fill: ''
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
variants: icons.map((icon) => {
|
|
35
|
+
const {id} = icon;
|
|
36
|
+
return {
|
|
37
|
+
name: id,
|
|
38
|
+
context: {
|
|
39
|
+
id: id
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
})
|
|
43
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
status: 'ready',
|
|
3
|
+
|
|
4
|
+
context: {
|
|
5
|
+
label: 'Namn',
|
|
6
|
+
type: 'text',
|
|
7
|
+
id: 'name',
|
|
8
|
+
value: false,
|
|
9
|
+
placeholder: 'Förnamn',
|
|
10
|
+
autocomplete: 'off',
|
|
11
|
+
has_icon: false,
|
|
12
|
+
required: false,
|
|
13
|
+
disabled: false
|
|
14
|
+
},
|
|
15
|
+
variants: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Help text',
|
|
18
|
+
context: {
|
|
19
|
+
required: false,
|
|
20
|
+
has_help: true,
|
|
21
|
+
has_icon: false
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: 'With icon',
|
|
26
|
+
context: {
|
|
27
|
+
label: 'Sök',
|
|
28
|
+
placeholder: 'Söktext',
|
|
29
|
+
required: false,
|
|
30
|
+
has_icon: true
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'Disabled',
|
|
35
|
+
context: {
|
|
36
|
+
is_disabled: true,
|
|
37
|
+
has_icon: false
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'Invalid',
|
|
42
|
+
context: {
|
|
43
|
+
is_invalid: true,
|
|
44
|
+
required: true,
|
|
45
|
+
has_icon: false
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: 'Discreet',
|
|
50
|
+
context: {
|
|
51
|
+
modifier: 'a-input--discreet',
|
|
52
|
+
has_icon: false
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
let sprite = fs.readFileSync(__dirname + '/../../_logotype-sprite.hbs');
|
|
3
|
+
sprite = sprite.toString().replace(/\ /g, '').replace(/\n/g, '').split('id="');
|
|
4
|
+
const logotypes = [];
|
|
5
|
+
|
|
6
|
+
for (let i = 0; i < sprite.length; i++) {
|
|
7
|
+
if (sprite[i].substr(0, 8) === 'logotype') {
|
|
8
|
+
logotypes.push({
|
|
9
|
+
id: sprite[i].substr(0, sprite[i].indexOf('"')).replace('logotype-', '')
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
module.exports = {
|
|
15
|
+
status: 'ready',
|
|
16
|
+
title: 'Logotype',
|
|
17
|
+
|
|
18
|
+
collated: true,
|
|
19
|
+
|
|
20
|
+
preview: '@layout-logotypes',
|
|
21
|
+
|
|
22
|
+
collator: function(markup, item) {
|
|
23
|
+
return `<div class="logotype-wrapper">${markup}</div>`
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
context: {
|
|
27
|
+
additional_classes: ''
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
variants: logotypes.map((logotype) => {
|
|
31
|
+
const {id} = logotype;
|
|
32
|
+
return {
|
|
33
|
+
name: id,
|
|
34
|
+
context: {
|
|
35
|
+
id: id
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
})
|
|
39
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
status: 'ready',
|
|
3
|
+
|
|
4
|
+
context: {
|
|
5
|
+
item: [
|
|
6
|
+
{
|
|
7
|
+
text: 'Kunskap',
|
|
8
|
+
url: '#',
|
|
9
|
+
is_current: false,
|
|
10
|
+
icon: false,
|
|
11
|
+
hide_mobile: true
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
text: 'Innovation',
|
|
15
|
+
url: '#',
|
|
16
|
+
is_current: false,
|
|
17
|
+
icon: false,
|
|
18
|
+
hide_mobile: true
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
text: 'Domäner',
|
|
22
|
+
url: '#',
|
|
23
|
+
is_current: true,
|
|
24
|
+
icon: false,
|
|
25
|
+
hide_mobile: true
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
text: 'Ämnen',
|
|
29
|
+
url: false,
|
|
30
|
+
is_current: false,
|
|
31
|
+
icon: 'icon-arrow-down',
|
|
32
|
+
hide_mobile: true,
|
|
33
|
+
has_dropdown: true,
|
|
34
|
+
has_expandable: true,
|
|
35
|
+
controls: 'dropdown'
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
text: 'Bli medlem',
|
|
39
|
+
url: '#',
|
|
40
|
+
is_current: false,
|
|
41
|
+
icon: false,
|
|
42
|
+
hide_mobile: false,
|
|
43
|
+
is_button: true
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
text: 'Lyssna',
|
|
47
|
+
url: false,
|
|
48
|
+
is_current: false,
|
|
49
|
+
icon: false,
|
|
50
|
+
has_readspeaker: true,
|
|
51
|
+
hide_mobile: false
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
text: 'Sök ledig domän',
|
|
55
|
+
url: false,
|
|
56
|
+
is_current: false,
|
|
57
|
+
icon: 'icon-arrow-down',
|
|
58
|
+
extra_class: 'js-toggle-domain-search',
|
|
59
|
+
has_expandable: true,
|
|
60
|
+
controls: 'domain-search',
|
|
61
|
+
hide_mobile: true
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
text: 'Meny',
|
|
65
|
+
url: false,
|
|
66
|
+
is_current: false,
|
|
67
|
+
icon: 'icon-hamburger',
|
|
68
|
+
extra_class: 'js-toggle-mega-menu',
|
|
69
|
+
has_expandable: true,
|
|
70
|
+
controls: 'mega-menu',
|
|
71
|
+
hide_mobile: false
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
status: 'ready',
|
|
3
|
+
|
|
4
|
+
context: {
|
|
5
|
+
text: '2018-11-26',
|
|
6
|
+
icon: false,
|
|
7
|
+
is_light: false,
|
|
8
|
+
lowercase: false,
|
|
9
|
+
additional_classes: false,
|
|
10
|
+
},
|
|
11
|
+
variants: [
|
|
12
|
+
{
|
|
13
|
+
name: 'light',
|
|
14
|
+
context: {
|
|
15
|
+
is_light: true
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: 'With icon',
|
|
20
|
+
context: {
|
|
21
|
+
text: 'poddradio',
|
|
22
|
+
icon: 'play',
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'colored icon',
|
|
27
|
+
context: {
|
|
28
|
+
text: 'artikel',
|
|
29
|
+
icon: 'article',
|
|
30
|
+
color: 'ruby',
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'Lower case',
|
|
35
|
+
context: {
|
|
36
|
+
text: '20 min <span class="u-hide-sm">läsning</span>',
|
|
37
|
+
icon: 'read',
|
|
38
|
+
lowercase: true,
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
]
|
|
42
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
status: 'ready',
|
|
3
|
+
|
|
4
|
+
context: {
|
|
5
|
+
text: 'Paging',
|
|
6
|
+
modifiers: ['icon'],
|
|
7
|
+
icon: 'arrow-down',
|
|
8
|
+
additional_classes: false,
|
|
9
|
+
button_type: false,
|
|
10
|
+
url: '#',
|
|
11
|
+
},
|
|
12
|
+
variants: [
|
|
13
|
+
{
|
|
14
|
+
name: 'Forwards',
|
|
15
|
+
context: {
|
|
16
|
+
text: 'Framåt',
|
|
17
|
+
modifiers: ['icon'],
|
|
18
|
+
icon: 'arrow-forwards'
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'Backwards',
|
|
23
|
+
context: {
|
|
24
|
+
text: 'Bakåt',
|
|
25
|
+
modifiers: ['icon'],
|
|
26
|
+
icon: 'arrow-backwards'
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
status: 'ready',
|
|
3
|
+
|
|
4
|
+
context: {
|
|
5
|
+
name: 'Quote',
|
|
6
|
+
quote: '"I’ve never been to a virtual conference, but Confab online was 100x better than any other conference I’ve been to before—polished and professional, yet completely human."',
|
|
7
|
+
quotee: 'Paloma Picasso'
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
status: 'ready',
|
|
3
|
+
|
|
4
|
+
context: {
|
|
5
|
+
name: 'Radio button default',
|
|
6
|
+
id: 'radiobutton-0',
|
|
7
|
+
label: 'Radiobutton',
|
|
8
|
+
value: '0',
|
|
9
|
+
is_inline: false,
|
|
10
|
+
is_disabled: false
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
variants: [
|
|
14
|
+
{
|
|
15
|
+
name: 'Radio button inline',
|
|
16
|
+
context: {
|
|
17
|
+
id: 'radiobutton-1',
|
|
18
|
+
label: 'Radio button inline',
|
|
19
|
+
value: '1',
|
|
20
|
+
is_inline: true,
|
|
21
|
+
is_disabled: false
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: 'Radio button disabled',
|
|
26
|
+
context: {
|
|
27
|
+
|
|
28
|
+
id: 'radiobutton-2',
|
|
29
|
+
label: 'Radio button disabled',
|
|
30
|
+
value: '2',
|
|
31
|
+
is_inline: false,
|
|
32
|
+
is_disabled: true
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'Radio button invalid',
|
|
37
|
+
context: {
|
|
38
|
+
|
|
39
|
+
id: 'radiobutton-3',
|
|
40
|
+
label: 'Radio button invalid',
|
|
41
|
+
value: '3',
|
|
42
|
+
is_inline: false,
|
|
43
|
+
is_invalid: true,
|
|
44
|
+
is_required: true
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|