@internetstiftelsen/styleguide 2.22.1 → 2.22.3-beta.0.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.
Files changed (137) hide show
  1. package/dist/.DS_Store +0 -0
  2. package/dist/assets/js/anchorScroll.js +16 -0
  3. package/dist/assets/js/offset.js +26 -0
  4. package/dist/assets/js/parallax.js +17 -0
  5. package/dist/components.js +8 -4
  6. package/dist/molecules/continue-video-guide/continue-video-guide.js +91 -0
  7. package/dist/molecules/glider/glider-course.js +7 -7
  8. package/dist/molecules/glider/glider-hero.js +23 -0
  9. package/dist/organisms/timeline/timeline.js +154 -0
  10. package/dist/organisms/video-guide/video-guide.js +298 -0
  11. package/package.json +7 -3
  12. package/src/.DS_Store +0 -0
  13. package/src/app.scss +6 -2
  14. package/src/assets/.DS_Store +0 -0
  15. package/src/{atoms/timeline → assets/js}/anchorScroll.js +3 -0
  16. package/src/assets/js/offset.js +22 -0
  17. package/src/assets/js/parallax.js +15 -0
  18. package/src/assets/video/.DS_Store +0 -0
  19. package/src/assets/video/Internets-Historia-HEVC-h265-HEVC-h265.mov +0 -0
  20. package/src/assets/video/Internets-Historia-HEVC-h265-vp9-chrome.webm +0 -0
  21. package/src/assets/video/chapters.vtt +25 -0
  22. package/src/assets/video/metadata.vtt +25 -0
  23. package/src/assets/video/movie-webm.webm +0 -0
  24. package/src/assets/video/videoplayer.vtt +25 -0
  25. package/src/atoms/.DS_Store +0 -0
  26. package/src/atoms/archive-link/archive-link.config.js +9 -0
  27. package/src/atoms/button/_button.scss +6 -9
  28. package/src/atoms/button/button.config.js +202 -0
  29. package/src/atoms/checkbox/checkbox.config.js +48 -0
  30. package/src/atoms/file/file.config.js +36 -0
  31. package/src/atoms/grid-toggle/grid-toggle.config.js +8 -0
  32. package/src/atoms/height-limiter/height-limiter.config.js +8 -0
  33. package/src/atoms/icon/_all-icons.zip +0 -0
  34. package/src/atoms/icon/icon.config.js +43 -0
  35. package/src/atoms/icon/spinner-white.svg +1 -9
  36. package/src/atoms/icon/spinner.svg +1 -9
  37. package/src/atoms/icon/sprite.svg +17 -0
  38. package/src/atoms/icon/step-backwards.svg +1 -0
  39. package/src/atoms/icon/step-forwards.svg +1 -0
  40. package/src/atoms/icon/subtitles.svg +1 -0
  41. package/src/atoms/input/input.config.js +56 -0
  42. package/src/atoms/label/label.config.js +9 -0
  43. package/src/atoms/logotype/logotype.config.js +39 -0
  44. package/src/atoms/main-menu/main-menu.config.js +75 -0
  45. package/src/atoms/meta/meta.config.js +42 -0
  46. package/src/atoms/paging/paging.config.js +30 -0
  47. package/src/atoms/password-toggle/password-toggle.config.js +14 -0
  48. package/src/atoms/quote/quote.config.js +9 -0
  49. package/src/atoms/radiobutton/radiobutton.config.js +48 -0
  50. package/src/atoms/rating/rating.config.js +7 -0
  51. package/src/atoms/ribbon/ribbon.config.js +9 -0
  52. package/src/atoms/select/select.config.js +78 -0
  53. package/src/atoms/skip/skip.config.js +19 -0
  54. package/src/atoms/spinner/spinner.config.js +5 -0
  55. package/src/atoms/tag/tag.config.js +36 -0
  56. package/src/atoms/textarea/textarea.config.js +56 -0
  57. package/src/atoms/toggle-high-contrast/toggle-high-contrast.config.js +8 -0
  58. package/src/atoms/tooltip/tooltip.config.js +8 -0
  59. package/src/base/_normalize.scss +1 -1
  60. package/src/base/fonts/_fonts.scss +8 -8
  61. package/src/brandbook/goto10/goto10.config.js +187 -0
  62. package/src/brandbook/internetstiftelsen/identitet/identitet.config.js +5 -0
  63. package/src/components.js +4 -2
  64. package/src/configurations/_extends.scss +5 -1
  65. package/src/configurations/_variables.scss +3 -3
  66. package/src/configurations/colors/colors.config.js +225 -0
  67. package/src/configurations/favicon/favicon.config.js +7 -0
  68. package/src/configurations/grid/_grid.scss +17 -2
  69. package/src/configurations/grid/grid.config.js +8 -0
  70. package/src/configurations/icons.json +1 -1
  71. package/src/configurations/typography/_typography.scss +57 -4
  72. package/src/configurations/typography/typography.config.js +17 -0
  73. package/src/molecules/.DS_Store +0 -0
  74. package/src/molecules/alert/alert.config.js +50 -0
  75. package/src/molecules/breadcrumb/breadcrumb.config.js +28 -0
  76. package/src/molecules/byline/byline.config.js +25 -0
  77. package/src/molecules/card/card.config.js +111 -0
  78. package/src/molecules/context-menu/context-menu.config.js +28 -0
  79. package/src/molecules/continue-video-guide/continue-video-guide.config.js +7 -0
  80. package/src/molecules/continue-video-guide/continue-video-guide.js +84 -0
  81. package/src/molecules/continue-video-guide/continue-video-guide.scss +104 -0
  82. package/src/molecules/continue-video-guide/readme.md +3 -0
  83. package/src/molecules/cookie-disclaimer/cookie-disclaimer.config.js +12 -0
  84. package/src/molecules/download/download.config.js +12 -0
  85. package/src/molecules/form/form.config.js +15 -0
  86. package/src/molecules/form-control/form-control.config.js +78 -0
  87. package/src/molecules/glider/_glider-course.scss +121 -0
  88. package/src/molecules/glider/_glider-hero.scss +325 -0
  89. package/src/molecules/glider/_glider.scss +3 -116
  90. package/src/molecules/glider/glider-course.js +7 -7
  91. package/src/molecules/glider/glider-hero.js +17 -0
  92. package/src/molecules/glider/glider.config.js +29 -0
  93. package/src/molecules/icon-overlay/icon-overlay.config.js +11 -0
  94. package/src/molecules/info-box/info-box.config.js +33 -0
  95. package/src/molecules/modal/modal.config.js +44 -0
  96. package/src/molecules/natural-language-form/natural-language-form.config.js +43 -0
  97. package/src/molecules/share/share.config.js +8 -0
  98. package/src/molecules/submenu/submenu.config.js +27 -0
  99. package/src/molecules/system-error/system-error.config.js +10 -0
  100. package/src/molecules/table/table.config.js +55 -0
  101. package/src/molecules/teaser-news-list/teaser-news-list.config.js +47 -0
  102. package/src/organisms/accordion/accordion.config.js +163 -0
  103. package/src/organisms/domain-search/domain-search.config.js +10 -0
  104. package/src/organisms/event-listing-item/event-listing-item.config.js +15 -0
  105. package/src/organisms/features-box/features-box.config.js +227 -0
  106. package/src/organisms/filter/filter.config.js +165 -0
  107. package/src/organisms/footer/footer.config.js +30 -0
  108. package/src/organisms/header/header.config.js +10 -0
  109. package/src/organisms/hero/_hero--dynamic-headline.scss +157 -0
  110. package/src/organisms/hero/_hero.scss +16 -0
  111. package/src/organisms/hero/hero.config.js +126 -0
  112. package/src/organisms/mailchimp/mailchimp.config.js +38 -0
  113. package/src/organisms/mega-menu/mega-menu.config.js +22 -0
  114. package/src/organisms/podcast/podcast.config.js +76 -0
  115. package/src/organisms/search-result/search-result.config.js +12 -0
  116. package/src/organisms/sections/sections.config.js +68 -0
  117. package/src/organisms/tabs/tabs.config.js +28 -0
  118. package/src/organisms/timeline/_timeline.scss +292 -0
  119. package/src/organisms/timeline/timeline.config.js +7 -0
  120. package/src/organisms/timeline/timeline.js +146 -0
  121. package/src/organisms/video-guide/_video-guide.scss +337 -0
  122. package/src/organisms/video-guide/video-guide.config.js +17 -0
  123. package/src/organisms/video-guide/video-guide.js +293 -0
  124. package/src/pages/animate-footer/animate-footer.config.js +10 -0
  125. package/src/pages/conditional/conditional.config.js +4 -0
  126. package/src/pages/internetguider/internetguider.config.js +7 -0
  127. package/src/pages/magazine/magazine.config.js +19 -0
  128. package/src/pages/mailchimp-newsletter/mailchimp-newsletter.config.js +7 -0
  129. package/src/pages/responsive-position/responsive-position.config.js +4 -0
  130. package/src/pages/search/search.config.js +7 -0
  131. package/src/pages/wordpress-blocks/wordpress-blocks.config.js +19 -0
  132. package/src/assets/css/footer/isolated-footer.css +0 -7367
  133. package/src/assets/css/footer/isolated-footer.css.map +0 -1
  134. package/src/assets/css/footer/isolated-footer.min.css +0 -2
  135. package/src/atoms/timeline/_timeline.scss +0 -159
  136. package/src/molecules/timeline-navigation/timeline-navigation.js +0 -32
  137. package/src/molecules/timeline-navigation/timeline-navigation.scss +0 -165
@@ -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,8 @@
1
+ module.exports = {
2
+ status: 'prototype',
3
+
4
+ context: {
5
+ title: 'Grid toggle',
6
+ description: 'Slå av eller på en synlig grid för att se baslinjeraster.'
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ module.exports = {
2
+ status: 'ready',
3
+
4
+ context: {
5
+ title: 'Height limiter',
6
+ description: 'Toggla höjd på en container'
7
+ }
8
+ }
Binary file
@@ -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
+ };
@@ -1,9 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" id="icon-spinner-white" viewbox="0 0 100 100" class="spinner" width="100" height="100">
2
- <g>
3
- <circle cx="50" cy="50" fill="none" r="43" stroke="none" stroke-width="7"></circle>
4
- <circle cx="50" cy="50" fill="none" r="43" stroke="#fff" stroke-width="7" stroke-linecap="square" transform="rotate(27.6965 50 50)">
5
- <animatetransform attributename="transform" type="rotate" calcmode="linear" values="0 50 50;180 50 50;720 50 50" keytimes="0;0.5;1" dur="2.5s" begin="0s" repeatcount="indefinite"></animatetransform>
6
- <animate attributename="stroke-dasharray" calcmode="linear" values="9.42477796076938 179.0707812546182;188.4955592153876 -2.842170943040401e-14;9.42477796076938 179.0707812546182" keytimes="0;0.5;1" dur="2.5" begin="0s" repeatcount="indefinite"></animate>
7
- </circle>
8
- </g>
9
- </svg>
1
+ <svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" class="lds-ring" style="background: none;"><circle cx="50" cy="50" ng-attr-r="{{config.radius}}" ng-attr-stroke="{{config.base}}" ng-attr-stroke-width="{{config.width}}" fill="none" r="43" stroke="transparent" stroke-width="7"></circle><circle cx="50" cy="50" ng-attr-r="{{config.radius}}" ng-attr-stroke="{{config.stroke}}" ng-attr-stroke-width="{{config.innerWidth}}" ng-attr-stroke-linecap="{{config.linecap}}" fill="none" r="43" stroke="#ffffff" stroke-width="7" stroke-linecap="square" transform="rotate(27.6965 50 50)"><animateTransform attributeName="transform" type="rotate" calcMode="linear" values="0 50 50;180 50 50;720 50 50" keyTimes="0;0.5;1" dur="2.5s" begin="0s" repeatCount="indefinite"></animateTransform><animate attributeName="stroke-dasharray" calcMode="linear" values="9.42477796076938 179.0707812546182;188.4955592153876 -2.842170943040401e-14;9.42477796076938 179.0707812546182" keyTimes="0;0.5;1" dur="2.5" begin="0s" repeatCount="indefinite"></animate></circle></svg>
@@ -1,9 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" id="icon-spinner" viewbox="0 0 100 100" class="spinner" width="100" height="100">
2
- <g>
3
- <circle cx="50" cy="50" fill="none" r="43" stroke="#50b2fc" stroke-width="7"></circle>
4
- <circle cx="50" cy="50" fill="none" r="43" stroke="#a7d8fd" stroke-width="7" stroke-linecap="square" transform="rotate(27.6965 50 50)">
5
- <animatetransform attributename="transform" type="rotate" calcmode="linear" values="0 50 50;180 50 50;720 50 50" keytimes="0;0.5;1" dur="2.5s" begin="0s" repeatcount="indefinite"></animatetransform>
6
- <animate attributename="stroke-dasharray" calcmode="linear" values="9.42477796076938 179.0707812546182;188.4955592153876 -2.842170943040401e-14;9.42477796076938 179.0707812546182" keytimes="0;0.5;1" dur="2.5" begin="0s" repeatcount="indefinite"></animate>
7
- </circle>
8
- </g>
9
- </svg>
1
+ <svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" class="lds-ring" style="background: none;"><circle cx="50" cy="50" ng-attr-r="{{config.radius}}" ng-attr-stroke="{{config.base}}" ng-attr-stroke-width="{{config.width}}" fill="none" r="43" stroke="#a7d8fd" stroke-width="7"></circle><circle cx="50" cy="50" ng-attr-r="{{config.radius}}" ng-attr-stroke="{{config.stroke}}" ng-attr-stroke-width="{{config.innerWidth}}" ng-attr-stroke-linecap="{{config.linecap}}" fill="none" r="43" stroke="#50b2fc" stroke-width="7" stroke-linecap="square" transform="rotate(27.6965 50 50)"><animateTransform attributeName="transform" type="rotate" calcMode="linear" values="0 50 50;180 50 50;720 50 50" keyTimes="0;0.5;1" dur="2.5s" begin="0s" repeatCount="indefinite"></animateTransform><animate attributeName="stroke-dasharray" calcMode="linear" values="9.42477796076938 179.0707812546182;188.4955592153876 -2.842170943040401e-14;9.42477796076938 179.0707812546182" keyTimes="0;0.5;1" dur="2.5" begin="0s" repeatCount="indefinite"></animate></circle></svg>
@@ -155,10 +155,16 @@
155
155
  <path d="M16.6 4.1V1l-4.5 4.5 4.5 4.5V7c5.6.3 10 4.9 10 10.6 0 5.9-4.8 10.6-10.6 10.6S5.4 23.4 5.4 17.5c0-3.5 1.8-6.8 4.7-8.8L8.5 6.4c-3.7 2.5-5.9 6.7-5.9 11.2C2.5 25 8.6 31 16 31s13.5-6 13.5-13.5c0-7.2-5.8-13.1-12.9-13.4z"/>
156
156
  <path d="M12.5 14.5c0 .2-.1.5-.6.5h-1.1v1.3h1.6v4.8H14v-7.2h-1.5v.6zM18.7 16c-.3 0-.6 0-.8.1l.2-.8H21v-1.5h-4.1l-.9 4 1.4.4.1-.1c.2-.3.6-.6 1-.6.7 0 1.1.5 1.1 1.1 0 .6-.4 1.1-1.1 1.1-.8 0-1-.6-1.2-1.1v-.2l-1.5.4v.2c.3 1.3 1.4 2.2 2.6 2.2 1.5 0 2.7-1.2 2.7-2.6.1-1.4-1.1-2.6-2.4-2.6z"/>
157
157
  </symbol>
158
+ <symbol id="icon-step-backwards" viewbox="0 0 32 32">
159
+ <path d="m25.7 28.9-14.2-13 14.2-13v26zM9.753 28h-5V3h5z"/>
160
+ </symbol>
158
161
  <symbol id="icon-play" viewbox="0 0 32 32">
159
162
  <path d="M16 28.5c6.9 0 12.5-5.6 12.5-12.5S22.9 3.5 16 3.5 3.5 9.1 3.5 16 9.1 28.5 16 28.5m0 3C7.4 31.5.5 24.6.5 16S7.4.5 16 .5 31.5 7.4 31.5 16 24.6 31.5 16 31.5"/>
160
163
  <path d="M11.7 8.2l11.4 7.7-11.4 7.7z"/>
161
164
  </symbol>
165
+ <symbol id="icon-step-forwards" viewbox="0 0 32 32">
166
+ <path d="m4.8 2.9 14.2 13-14.2 13v-26zM20.7 3.1h5v25h-5z"/>
167
+ </symbol>
162
168
  <symbol id="icon-forward-60" viewbox="0 0 32 32">
163
169
  <path d="M15.4 4.1V1l4.5 4.5-4.5 4.5V7c-5.6.2-10.1 4.9-10.1 10.5 0 5.9 4.8 10.6 10.7 10.6s10.7-4.8 10.7-10.6c0-3.5-1.8-6.8-4.7-8.8l1.6-2.3c3.7 2.5 6 6.7 6 11.2C29.5 25 23.4 31 16 31S2.5 25 2.5 17.5c0-7.2 5.7-13.1 12.9-13.4z"/>
164
170
  <path d="M14.2 16.3c-.2-.1-.5-.1-.7-.2l1.4-2.2H13l-2.1 3.4c-.3.4-.4.9-.4 1.4 0 1.4 1.2 2.6 2.7 2.6 1.5 0 2.7-1.2 2.7-2.6 0-1.1-.7-2-1.7-2.4zm-1 3.4c-.6 0-1.1-.5-1.1-1.1 0-.6.5-1.1 1.1-1.1.6 0 1.1.5 1.1 1.1 0 .7-.5 1.1-1.1 1.1zM18.9 13.8c-2.5 0-2.5 2.8-2.5 3.7 0 2.5.9 3.7 2.6 3.7 1.6 0 2.5-1.3 2.5-3.7 0-2.4-.9-3.7-2.6-3.7zm0 1.6c.9 0 .9 1 .9 2.2 0 1.2-.1 2.2-.9 2.2-.9 0-1-1-1-2.2.1-1.3.2-2.2 1-2.2z"/>
@@ -166,6 +172,17 @@
166
172
  <symbol id="icon-pause" viewbox="0 0 32 32">
167
173
  <path d="M6 3h8v26H6zM18 3h8v26h-8z"/>
168
174
  </symbol>
175
+ <symbol id="icon-subtitles" viewbox="0 0 32 32">
176
+ <path d="M27 10v12H5V10h22m3-3H2v18h28V7z"/>
177
+ <path d="M25 19h-4"/>
178
+ <path d="M21 18h4v2h-4z"/>
179
+ <path d="M19 19H7"/>
180
+ <path d="M7 18h12v2H7z"/>
181
+ <path d="M7 15h4"/>
182
+ <path d="M7 14h4v2H7z"/>
183
+ <path d="M13 15h12"/>
184
+ <path d="M13 14h12v2H13z"/>
185
+ </symbol>
169
186
  <symbol id="icon-author" viewbox="0 0 32 32">
170
187
  <path d="M4 29h24v2H4zM10.3 26H4v-6.3L22.1 1.6l6.3 6.3L10.3 26zM6 24h3.5L25.6 7.9l-3.5-3.5L6 20.5V24z"/>
171
188
  <path d="M17.07 6.69l1.414-1.414 6.293 6.293-1.414 1.415z"/>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" style="enable-background:new 0 0 32 32" xml:space="preserve"><path d="m25.7 28.9-14.2-13 14.2-13v26zM9.753 28h-5V3h5z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" style="enable-background:new 0 0 32 32" xml:space="preserve"><path d="m4.8 2.9 14.2 13-14.2 13v-26zM20.7 3.1h5v25h-5z"/></svg>
@@ -0,0 +1 @@
1
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0" y="0" viewBox="0 0 32 32" width="32" height="32" xml:space="preserve"><path d="M27 10v12H5V10h22m3-3H2v18h28V7z"/><path class="st0" d="M25 19h-4"/><path d="M21 18h4v2h-4z"/><path class="st0" d="M19 19H7"/><path d="M7 18h12v2H7z"/><g><path class="st0" d="M7 15h4"/><path d="M7 14h4v2H7z"/></g><g><path class="st0" d="M13 15h12"/><path d="M13 14h12v2H13z"/></g></svg>
@@ -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,9 @@
1
+ module.exports = {
2
+ status: 'ready',
3
+
4
+ context: {
5
+ label: 'Namn',
6
+ for: 'name',
7
+ labelClasses: 'is-required'
8
+ }
9
+ }
@@ -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: 'time',
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
+ }