@internetstiftelsen/styleguide 5.0.0 → 5.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 (126) hide show
  1. package/dist/assets/js/iconToggle.js +1 -2
  2. package/dist/assets/js/parallax.js +0 -2
  3. package/dist/assets/js/textToggle.js +0 -1
  4. package/dist/assets/js/track.js +2 -2
  5. package/dist/assets/js/youtube.js +1 -0
  6. package/dist/components.js +0 -4
  7. package/dist/molecules/glider/glider-hero.js +1 -2
  8. package/dist/molecules/modal/modal.js +2 -2
  9. package/dist/molecules/overview-navigation/overview-navigation.js +1 -2
  10. package/dist/organisms/mailchimp/mailchimp.js +2 -1
  11. package/dist/organisms/tabs/tabs.js +3 -2
  12. package/dist/organisms/timeline/timeline.js +2 -4
  13. package/package.json +8 -3
  14. package/src/app.js +1 -15
  15. package/src/assets/js/iconToggle.js +2 -2
  16. package/src/assets/js/parallax.js +0 -2
  17. package/src/assets/js/textToggle.js +1 -1
  18. package/src/assets/js/track.js +2 -2
  19. package/src/assets/js/youtube.js +1 -0
  20. package/src/atoms/archive-link/archive-link.config.js +1 -1
  21. package/src/atoms/button/_button.scss +6 -6
  22. package/src/atoms/checkbox/checkbox.config.js +1 -1
  23. package/src/atoms/file/file.config.js +1 -1
  24. package/src/atoms/grid-toggle/grid-toggle.config.js +1 -1
  25. package/src/atoms/height-limiter/height-limiter.config.js +1 -1
  26. package/src/atoms/hr/hr.config.js +1 -1
  27. package/src/atoms/icon/icon.config.js +2 -2
  28. package/src/atoms/input/input.config.js +1 -1
  29. package/src/atoms/label/label.config.js +1 -1
  30. package/src/atoms/logotype/logotype.config.js +3 -3
  31. package/src/atoms/main-menu/_main-menu.scss +1 -1
  32. package/src/atoms/main-menu/main-menu.config.js +1 -1
  33. package/src/atoms/meta/meta.config.js +1 -1
  34. package/src/atoms/paging/paging.config.js +1 -1
  35. package/src/atoms/password-toggle/password-toggle.config.js +1 -1
  36. package/src/atoms/progress/progress.config.js +1 -1
  37. package/src/atoms/quote/quote.config.js +1 -1
  38. package/src/atoms/radiobutton/radiobutton.config.js +1 -1
  39. package/src/atoms/range/range.config.js +1 -1
  40. package/src/atoms/rating/rating.config.js +1 -1
  41. package/src/atoms/ribbon/_ribbon.scss +1 -1
  42. package/src/atoms/ribbon/ribbon.config.js +1 -1
  43. package/src/atoms/select/select.config.js +1 -1
  44. package/src/atoms/skip/skip.config.js +1 -1
  45. package/src/atoms/spinner/spinner.config.js +1 -1
  46. package/src/atoms/tag/tag.config.js +1 -1
  47. package/src/atoms/textarea/textarea.config.js +1 -1
  48. package/src/atoms/toggle-button/toggle-button.config.js +1 -1
  49. package/src/atoms/tooltip/tooltip.config.js +1 -1
  50. package/src/base/_normalize.scss +93 -93
  51. package/src/brandbook/goto10/goto10.config.js +1 -1
  52. package/src/brandbook/internetstiftelsen/bildman/303/251r/bildman/303/251r.config.js +1 -1
  53. package/src/brandbook/internetstiftelsen/identitet/identitet.config.js +1 -1
  54. package/src/brandbook/internetstiftelsen/tonalitet och spr/303/245kbruk/tonalitet och spr/303/245kbruk.config.js" +1 -1
  55. package/src/configurations/_bem.scss +22 -22
  56. package/src/configurations/_config.scss +13 -13
  57. package/src/configurations/_functions.scss +6 -6
  58. package/src/configurations/_variables.scss +20 -20
  59. package/src/configurations/_wordpress.scss +6 -6
  60. package/src/configurations/colors/_colors.scss +3 -3
  61. package/src/configurations/colors/colors.config.js +1 -1
  62. package/src/configurations/favicon/favicon.config.js +1 -1
  63. package/src/configurations/grid/grid.config.js +1 -1
  64. package/src/configurations/icons.json +1 -1
  65. package/src/configurations/typography/typography.config.js +1 -1
  66. package/src/molecules/alert/alert.config.js +1 -1
  67. package/src/molecules/breadcrumb/breadcrumb.config.js +1 -1
  68. package/src/molecules/byline/byline.config.js +1 -1
  69. package/src/molecules/context-menu/context-menu.config.js +11 -11
  70. package/src/molecules/continue-video-guide/continue-video-guide.config.js +1 -1
  71. package/src/molecules/cookie-disclaimer/cookie-disclaimer.config.js +1 -1
  72. package/src/molecules/download/download.config.js +1 -1
  73. package/src/molecules/form/form.config.js +1 -1
  74. package/src/molecules/form-control/form-control.config.js +1 -1
  75. package/src/molecules/glider/glider-hero.js +1 -3
  76. package/src/molecules/glider/glider.config.js +1 -1
  77. package/src/molecules/icon-overlay/icon-overlay.config.js +1 -1
  78. package/src/molecules/info-box/info-box.config.js +1 -1
  79. package/src/molecules/input-group/input-group.config.js +1 -1
  80. package/src/molecules/modal/modal.js +2 -2
  81. package/src/molecules/multi-select/multi-select.js +3 -3
  82. package/src/molecules/natural-language-form/natural-language-form.config.js +4 -4
  83. package/src/molecules/overview-navigation/overview-navigation.js +2 -2
  84. package/src/molecules/share/share.config.js +1 -1
  85. package/src/molecules/submenu/submenu.config.js +1 -1
  86. package/src/molecules/system-error/system-error.config.js +1 -1
  87. package/src/molecules/table/table.config.js +1 -1
  88. package/src/molecules/teaser-news-list/teaser-news-list.config.js +1 -1
  89. package/src/organisms/accordion/_accordion.scss +4 -4
  90. package/src/organisms/accordion/accordion.config.js +1 -1
  91. package/src/organisms/domain-search/domain-search.config.js +1 -1
  92. package/src/organisms/filter/filter.config.js +1 -1
  93. package/src/organisms/footer/_footer.scss +1 -1
  94. package/src/organisms/footer/footer.config.js +1 -1
  95. package/src/organisms/header/header.config.js +1 -1
  96. package/src/organisms/hero/hero.config.js +35 -36
  97. package/src/organisms/mailchimp/_mailchimp.scss +1 -1
  98. package/src/organisms/mailchimp/mailchimp.config.js +1 -1
  99. package/src/organisms/mailchimp/mailchimp.js +2 -1
  100. package/src/organisms/mega-menu/mega-menu.config.js +1 -1
  101. package/src/organisms/members-service-product/members-service-product.config.js +1 -3
  102. package/src/organisms/podcast/_podcast-player.scss +1 -1
  103. package/src/organisms/podcast/podcast.config.js +1 -1
  104. package/src/organisms/search-result/search-result.config.js +1 -1
  105. package/src/organisms/sections/sections.config.js +1 -1
  106. package/src/organisms/tabs/tabs.config.js +1 -1
  107. package/src/organisms/tabs/tabs.js +3 -2
  108. package/src/organisms/timeline/timeline.config.js +1 -1
  109. package/src/organisms/timeline/timeline.js +3 -2
  110. package/src/organisms/video-guide/VideoGuidePlayback.js +1 -1
  111. package/src/organisms/video-guide/video-guide.config.js +1 -1
  112. package/src/organisms/video-guide/video-guide.js +2 -2
  113. package/src/pages/animate-footer/animate-footer.config.js +1 -1
  114. package/src/pages/bredbandskollen/bredbandskollen.config.js +1 -1
  115. package/src/pages/conditional/conditional.config.js +1 -1
  116. package/src/pages/dark-mode/dark-mode.config.js +1 -1
  117. package/src/pages/internetguider/internetguider.config.js +1 -1
  118. package/src/pages/magazine/magazine.config.js +1 -1
  119. package/src/pages/mailchimp-newsletter/mailchimp-newsletter.config.js +1 -1
  120. package/src/pages/responsive-position/responsive-position.config.js +1 -1
  121. package/src/pages/search/search.config.js +1 -1
  122. package/src/pages/wordpress-blocks/wordpress-blocks.config.js +1 -1
  123. package/src/theme/_theme.scss +1 -1
  124. package/src/utilities/_icons.scss +4 -4
  125. package/src/utilities/_margin.scss +8 -8
  126. package/src/utilities/_padding.scss +8 -8
@@ -5,7 +5,7 @@ function toggleIconOnClick(e) {
5
5
  e.preventDefault();
6
6
 
7
7
  var el = e.target;
8
- /* eslint-disable-next-line */
8
+
9
9
  var target = el.dataset.toggleIconTarget ? document.getElementById(el.dataset.toggleIconTarget) : el;
10
10
  var i = parseInt(el.dataset.iconIteration || 0, 10);
11
11
  var options = el.dataset.toggleIcon.split('|');
@@ -16,7 +16,6 @@ function toggleIconOnClick(e) {
16
16
  useElement.setAttribute('xlink:href', '#icon-' + options[nextIteration]);
17
17
  }
18
18
 
19
- /* eslint-disable */
20
19
  document.addEventListener('click', function (e) {
21
20
  if (e.target.closest('[data-toggle-icon]')) {
22
21
  toggleIconOnClick(e);
@@ -10,8 +10,6 @@ function isInView(el) {
10
10
  }
11
11
 
12
12
  var parallaxes = [];
13
-
14
- // eslint-disable-next-line import/prefer-default-export
15
13
  function cache() {
16
14
  parallaxes = document.querySelectorAll('.js-parallax');
17
15
  }
@@ -19,7 +19,6 @@ function toggleTextOnClick(e) {
19
19
  }
20
20
  }
21
21
 
22
- /* eslint-disable */
23
22
  document.addEventListener('click', function (e) {
24
23
  if (e.target.closest('[data-toggle-text]')) {
25
24
  toggleTextOnClick(e);
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = track;
7
7
  function track(data) {
8
- // eslint-disable-next-line no-underscore-dangle
8
+
9
9
  if (window._mtm) {
10
- // eslint-disable-next-line no-underscore-dangle
10
+
11
11
  window._mtm.push(data);
12
12
  } else {
13
13
  console.log('GTM not loaded', data);
@@ -37,6 +37,7 @@ function loadYoutubeAPI() {
37
37
  }
38
38
 
39
39
  function onPlayerStateChange(el, e) {
40
+ /* eslint-disable no-undef */
40
41
  if (e.data === YT.PlayerState.PLAYING) {
41
42
  el.getElementsByTagName('img')[0].style.zIndex = '-1';
42
43
  el.getElementsByTagName('button')[0].style.display = 'none';
@@ -26,8 +26,6 @@ require('./molecules/natural-language-form/natural-language-form');
26
26
 
27
27
  require('./atoms/tooltip/tooltip');
28
28
 
29
- require('./atoms/toggle-high-contrast/toggle-high-contrast');
30
-
31
29
  require('./atoms/height-limiter/height-limiter');
32
30
 
33
31
  require('./atoms/file/file');
@@ -50,8 +48,6 @@ require('./molecules/context-menu/context-menu');
50
48
 
51
49
  require('./molecules/alert/alert');
52
50
 
53
- require('./molecules/modal/modal-graph');
54
-
55
51
  require('./molecules/continue-video-guide/continue-video-guide');
56
52
 
57
53
  require('./organisms/video-guide/video-guide');
@@ -15,12 +15,11 @@ var _nodeAdded2 = _interopRequireDefault(_nodeAdded);
15
15
 
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
 
18
- // eslint-disable-next-line import/prefer-default-export
19
18
  function initHeroGlider(node) {
20
19
  if (node.hasAttribute('data-glider-initialized')) {
21
20
  return;
22
21
  }
23
- // eslint-disable-next-line no-underscore-dangle
22
+
24
23
  var dataLayer = window._mtm || [];
25
24
  var gliderLinks = document.querySelectorAll('.glider-slide a');
26
25
 
@@ -124,7 +124,7 @@ function addAction(action) {
124
124
 
125
125
  if (action.onClick) {
126
126
  el.addEventListener('click', function (e) {
127
- // eslint-disable-next-line no-use-before-define
127
+
128
128
  action.onClick(e, modal, close);
129
129
  });
130
130
  }
@@ -137,7 +137,7 @@ function handleKeyUp(e) {
137
137
  handler = _ref6[1];
138
138
 
139
139
  if (e.key.toLowerCase() === key) {
140
- // eslint-disable-next-line no-use-before-define
140
+
141
141
  handler(e, modal, close);
142
142
  }
143
143
  });
@@ -96,7 +96,7 @@ var OverviewNavigation = function () {
96
96
 
97
97
  this.button.style.transition = 'none';
98
98
  this.updateButtonPosition();
99
- // eslint-disable-next-line no-unused-expressions
99
+
100
100
  this.element.offsetHeight; // force reflow
101
101
  this.button.style.transition = 'right 0.25s ease-out, bottom 0.25s ease-out, opacity 0.25s ease-out';
102
102
 
@@ -119,7 +119,6 @@ var OverviewNavigation = function () {
119
119
  this.element.setAttribute('aria-hidden', 'false');
120
120
  this.element.classList.remove('is-minimized');
121
121
 
122
- // eslint-disable-next-line no-unused-expressions
123
122
  this.element.offsetHeight; // force reflow
124
123
 
125
124
  this.updateButtonPosition();
@@ -55,7 +55,8 @@ function isInViewport(element) {
55
55
  var height = element.offsetHeight;
56
56
 
57
57
  while (element.offsetParent) {
58
- element = element.offsetParent; // eslint-disable-line
58
+ // eslint-disable-next-line no-param-reassign
59
+ element = element.offsetParent;
59
60
  top += element.offsetTop;
60
61
  }
61
62
 
@@ -69,7 +69,7 @@ window.a11yTabs = function tabsComponentIIFE(global, document) {
69
69
  }
70
70
  });
71
71
 
72
- this.eventCallback = handleEvents.bind(this); // eslint-disable-line
72
+ this.eventCallback = handleEvents.bind(this);
73
73
  this.tabList.addEventListener('click', this.eventCallback, false);
74
74
  this.tabList.addEventListener('keydown', this.eventCallback, false);
75
75
 
@@ -251,4 +251,5 @@ window.a11yTabs = function tabsComponentIIFE(global, document) {
251
251
  };
252
252
  }(window, document);
253
253
 
254
- var tabComponent = a11yTabs.create('[data-tab-component]'); // eslint-disable-line
254
+ // eslint-disable-next-line no-unused-vars,no-undef
255
+ var tabComponent = a11yTabs.create('[data-tab-component]');
@@ -7,9 +7,6 @@ var _require = require('../../assets/js/offset'),
7
7
  offsetBottom = _require.offsetBottom,
8
8
  offsetLeft = _require.offsetLeft;
9
9
 
10
- // eslint-disable-next-line no-underscore-dangle
11
-
12
-
13
10
  var dataLayer = window._mtm || [];
14
11
  var progressBar = document.querySelector('.js-progress-bar');
15
12
  var decadeContainer = document.querySelector('.js-decade-container');
@@ -93,7 +90,8 @@ function isInViewport(element) {
93
90
  var height = element.offsetHeight;
94
91
 
95
92
  while (element.offsetParent) {
96
- element = element.offsetParent; // eslint-disable-line
93
+ // eslint-disable-next-line no-param-reassign
94
+ element = element.offsetParent;
97
95
  top += element.offsetTop;
98
96
  }
99
97
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@internetstiftelsen/styleguide",
3
- "version": "5.0.0",
3
+ "version": "5.0.2",
4
4
  "main": "dist/components.js",
5
5
  "ports": {
6
6
  "fractal": "3000"
@@ -41,9 +41,13 @@
41
41
  "create-icons-config": "node ./createIconsJson"
42
42
  },
43
43
  "devDependencies": {
44
+ "@babel/core": "^7.26.0",
45
+ "@babel/eslint-parser": "^7.25.9",
46
+ "@eslint/eslintrc": "^3.1.0",
47
+ "@eslint/js": "^9.14.0",
44
48
  "@frctl/fractal": "^1.5.15",
45
49
  "@frctl/mandelbrot": "^1.10.3",
46
- "@internetstiftelsen/eslint-config": "^3.0.0",
50
+ "@internetstiftelsen/eslint-config": "^4.0.3",
47
51
  "@internetstiftelsen/stylelint-config": "^3.0.0",
48
52
  "babel-cli": "^6.26.0",
49
53
  "babel-eslint": "^10.1.0",
@@ -59,7 +63,8 @@
59
63
  "copyfiles": "^2.4.1",
60
64
  "css-loader": "^7.1.2",
61
65
  "cssnano": "^7.0.6",
62
- "eslint": "^9.13.0",
66
+ "eslint": "^9.14.0",
67
+ "globals": "^15.12.0",
63
68
  "imagemin-cli": "^8.0.0",
64
69
  "onchange": "^7.1.0",
65
70
  "postcss-class-prefix": "^0.3.0",
package/src/app.js CHANGED
@@ -6,7 +6,7 @@ require('./atoms/grid-toggle/grid-toggle');
6
6
  require('./components');
7
7
 
8
8
  const Button = require('./atoms/button/Button');
9
- const { open, onClose, onOpen } = require('./molecules/modal/modal');
9
+ const { open } = require('./molecules/modal/modal');
10
10
 
11
11
  const demoButtons = document.querySelectorAll('button.a-button.has-loader');
12
12
 
@@ -61,20 +61,6 @@ if (demoModal) {
61
61
  });
62
62
  }
63
63
 
64
- // eslint-disable-next-line no-unused-vars
65
- const unsubscribe = onClose((el, id) => {
66
- console.log('Global onClose', el, id);
67
- });
68
-
69
- // Call unsubscribe to remove callback
70
-
71
- // eslint-disable-next-line no-unused-vars
72
- const unsubscribeOpen = onOpen((el, id) => {
73
- console.log('Global onOpen', el, id);
74
- });
75
-
76
- // Call unsubscribe to remove callback
77
-
78
64
  const demoForms = document.querySelectorAll('[data-form]');
79
65
 
80
66
  [].forEach.call(demoForms, (el) => {
@@ -3,7 +3,7 @@ function toggleIconOnClick(e) {
3
3
  e.preventDefault();
4
4
 
5
5
  const el = e.target;
6
- /* eslint-disable-next-line */
6
+
7
7
  const target = (el.dataset.toggleIconTarget) ? document.getElementById(el.dataset.toggleIconTarget) : el;
8
8
  const i = parseInt(el.dataset.iconIteration || 0, 10);
9
9
  const options = el.dataset.toggleIcon.split('|');
@@ -14,7 +14,7 @@ function toggleIconOnClick(e) {
14
14
  useElement.setAttribute('xlink:href', `#icon-${options[nextIteration]}`);
15
15
  }
16
16
 
17
- /* eslint-disable */
17
+
18
18
  document.addEventListener('click', (e) => {
19
19
  if (e.target.closest('[data-toggle-icon]')) {
20
20
  toggleIconOnClick(e);
@@ -4,8 +4,6 @@ function isInView(el) {
4
4
  }
5
5
 
6
6
  let parallaxes = [];
7
-
8
- // eslint-disable-next-line import/prefer-default-export
9
7
  export function cache() {
10
8
  parallaxes = document.querySelectorAll('.js-parallax');
11
9
  }
@@ -17,7 +17,7 @@ function toggleTextOnClick(e) {
17
17
  }
18
18
  }
19
19
 
20
- /* eslint-disable */
20
+
21
21
  document.addEventListener('click', (e) => {
22
22
  if (e.target.closest('[data-toggle-text]')) {
23
23
  toggleTextOnClick(e);
@@ -1,7 +1,7 @@
1
1
  export default function track(data) {
2
- // eslint-disable-next-line no-underscore-dangle
2
+
3
3
  if (window._mtm) {
4
- // eslint-disable-next-line no-underscore-dangle
4
+
5
5
  window._mtm.push(data);
6
6
  } else {
7
7
  console.log('GTM not loaded', data);
@@ -22,6 +22,7 @@ function loadYoutubeAPI() {
22
22
  }
23
23
 
24
24
  function onPlayerStateChange(el, e) {
25
+ /* eslint-disable no-undef */
25
26
  if (e.data === YT.PlayerState.PLAYING) {
26
27
  el.getElementsByTagName('img')[0].style.zIndex = '-1';
27
28
  el.getElementsByTagName('button')[0].style.display = 'none';
@@ -6,4 +6,4 @@ module.exports = {
6
6
  url: '#',
7
7
  icon: 'arrow-forwards'
8
8
  }
9
- }
9
+ };
@@ -7,8 +7,8 @@
7
7
  @use '../../configurations/colors/colors' as colors;
8
8
  @use '../../vendor/grid/breakpoints' as breakpoint;
9
9
 
10
- // Default Button
11
- /// @group Buttons
10
+ /* Default Button
11
+ /// @group Buttons */
12
12
  @include mixin.atom(button) {
13
13
  display: inline-flex;
14
14
  position: relative;
@@ -21,7 +21,7 @@
21
21
  border: 0;
22
22
  border-radius: var.$border-radius;
23
23
  background-color: currentColor;
24
- background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
24
+ background-image: none; /* Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214;httpshttpshttps */
25
25
  box-shadow: 0 0 0 1px inset currentColor;
26
26
  color: colors.$color-ocean-dark;
27
27
  font-family: var.$font-family-headings;
@@ -47,7 +47,7 @@
47
47
  }
48
48
  }
49
49
 
50
- // States
50
+ /* States */
51
51
  &.is-loading {
52
52
  cursor: wait;
53
53
  }
@@ -91,7 +91,7 @@
91
91
  opacity: 0;
92
92
  }
93
93
 
94
- // Modifiers
94
+ /* Modifiers */
95
95
 
96
96
  @include bem.m(full-width) {
97
97
  display: flex;
@@ -207,7 +207,7 @@
207
207
  pointer-events: none;
208
208
  }
209
209
 
210
- // More colors
210
+ /* More colors */
211
211
  @include bem.m(transparent) {
212
212
  border-color: transparent;
213
213
  background-color: transparent;
@@ -45,4 +45,4 @@ module.exports = {
45
45
  }
46
46
  }
47
47
  ]
48
- }
48
+ };
@@ -33,4 +33,4 @@ module.exports = {
33
33
  }
34
34
  }
35
35
  ]
36
- }
36
+ };
@@ -5,4 +5,4 @@ module.exports = {
5
5
  title: 'Grid toggle',
6
6
  description: 'Slå av eller på en synlig grid för att se baslinjeraster.'
7
7
  }
8
- }
8
+ };
@@ -13,4 +13,4 @@ module.exports = {
13
13
  }
14
14
  }
15
15
  ]
16
- }
16
+ };
@@ -39,4 +39,4 @@ module.exports = {
39
39
  }
40
40
  }
41
41
  ]
42
- }
42
+ };
@@ -1,6 +1,6 @@
1
1
  const fs = require('fs');
2
2
  let sprite = fs.readFileSync(__dirname + '/../../_icon-sprite.hbs');
3
- sprite = sprite.toString().replace(/\ /g, '').replace(/\n/g, '').split('id="');
3
+ sprite = sprite.toString().replace(/ /g, '').replace(/\n/g, '').split('id="');
4
4
  const icons = [];
5
5
 
6
6
  for (let i = 0; i < sprite.length; i++) {
@@ -23,7 +23,7 @@ module.exports = {
23
23
  if (item.isDefault) {
24
24
  return ''; // Don't render default empty icon
25
25
  }
26
- return `<div class="icon-wrapper">${markup}</div>`
26
+ return `<div class="icon-wrapper">${markup}</div>`;
27
27
  },
28
28
 
29
29
  context: {
@@ -53,4 +53,4 @@ module.exports = {
53
53
  }
54
54
  }
55
55
  ]
56
- }
56
+ };
@@ -6,4 +6,4 @@ module.exports = {
6
6
  for: 'name',
7
7
  labelClasses: 'is-required'
8
8
  }
9
- }
9
+ };
@@ -1,6 +1,6 @@
1
1
  const fs = require('fs');
2
2
  let sprite = fs.readFileSync(__dirname + '/../../_logotype-sprite.hbs');
3
- sprite = sprite.toString().replace(/\ /g, '').replace(/\n/g, '').split('id="');
3
+ sprite = sprite.toString().replace(/ /g, '').replace(/\n/g, '').split('id="');
4
4
  const logotypes = [];
5
5
 
6
6
  for (let i = 0; i < sprite.length; i++) {
@@ -19,8 +19,8 @@ module.exports = {
19
19
 
20
20
  preview: '@layout-logotypes',
21
21
 
22
- collator: function(markup, item) {
23
- return `<div class="logotype-wrapper">${markup}</div>`
22
+ collator: function(markup) {
23
+ return `<div class="logotype-wrapper">${markup}</div>`;
24
24
  },
25
25
 
26
26
  context: {
@@ -199,7 +199,7 @@
199
199
  }
200
200
 
201
201
  @include bem.e(text) {
202
- margin-top: -#{func.to_rem(3px)}; // Adjust for the font's bad placement in viewbox
202
+ margin-top: -#{func.to_rem(3px)}; /* Adjust for the font's bad placement in viewbox */
203
203
  pointer-events: none;
204
204
  }
205
205
  }
@@ -76,4 +76,4 @@ module.exports = {
76
76
  }
77
77
  ]
78
78
  }
79
- }
79
+ };
@@ -39,4 +39,4 @@ module.exports = {
39
39
  }
40
40
  },
41
41
  ]
42
- }
42
+ };
@@ -27,4 +27,4 @@ module.exports = {
27
27
  }
28
28
  }
29
29
  ]
30
- }
30
+ };
@@ -11,4 +11,4 @@ module.exports = {
11
11
  required: false,
12
12
  disabled: false
13
13
  }
14
- }
14
+ };
@@ -8,4 +8,4 @@ module.exports = {
8
8
  max_width: false,
9
9
  additional_classes: false,
10
10
  }
11
- }
11
+ };
@@ -6,4 +6,4 @@ module.exports = {
6
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
7
  quotee: 'Paloma Picasso'
8
8
  }
9
- }
9
+ };
@@ -45,4 +45,4 @@ module.exports = {
45
45
  }
46
46
  }
47
47
  ]
48
- }
48
+ };
@@ -63,4 +63,4 @@ module.exports = {
63
63
  }
64
64
  }
65
65
  ]
66
- }
66
+ };
@@ -4,4 +4,4 @@ module.exports = {
4
4
  context: {
5
5
  additional_classes: false
6
6
  }
7
- }
7
+ };
@@ -9,7 +9,7 @@
9
9
 
10
10
  @include mixin.atom(ribbon) {
11
11
  position: fixed;
12
- z-index: 100000; // Must be higher than WP's admin toolbar
12
+ z-index: 100000; /* Must be higher than WP's admin toolbar */
13
13
  bottom: 0;
14
14
  left: 0;
15
15
  padding: func.rhythm(1) 0;
@@ -6,4 +6,4 @@ module.exports = {
6
6
  text: 'stage',
7
7
  background: 'peacock-light'
8
8
  }
9
- }
9
+ };
@@ -75,4 +75,4 @@ module.exports = {
75
75
  }
76
76
  }
77
77
  ]
78
- }
78
+ };
@@ -16,4 +16,4 @@ module.exports = {
16
16
  }
17
17
  ]
18
18
  }
19
- }
19
+ };
@@ -2,4 +2,4 @@ module.exports = {
2
2
  status: 'ready',
3
3
 
4
4
  context: {}
5
- }
5
+ };
@@ -81,4 +81,4 @@ module.exports = {
81
81
  }
82
82
  }
83
83
  ]
84
- }
84
+ };
@@ -91,4 +91,4 @@ module.exports = {
91
91
  },
92
92
  }
93
93
  ]
94
- }
94
+ };
@@ -65,4 +65,4 @@ module.exports = {
65
65
  }
66
66
  },
67
67
  ]
68
- }
68
+ };
@@ -5,4 +5,4 @@ module.exports = {
5
5
  name: "Tooltip",
6
6
  text: "Ett .se-domännamn kan registreras för en period mellan 12-120 månader. Efter att ett domännamn förfallit kommer den att få statusen “Expired” i tio dagar. Om domänen inte förnyas under dessa tio dagar ändras statusen på domänen till “Deactivated”, vilket innebär att den inte kommer med i zonfilen. Domänen är därefter deaktiverad i 60 dagar om ingen förnyelse sker. Under deaktiveringsperioden har du möjlighet att förnya domänen."
7
7
  }
8
- }
8
+ };