@internetstiftelsen/styleguide 5.0.0 → 5.0.1

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 +2 -1
  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 +2 -1
  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
@@ -4,47 +4,47 @@
4
4
  @use '../configurations/colors/colors' as colors;
5
5
  @use '../configurations/colors/colors-functions' as colorFunc;
6
6
 
7
- /// Namespace
7
+ /* Namespace
8
8
  /// Prepended to all outputted classes
9
9
  ///
10
- /// @group Config
10
+ /// @group Config */
11
11
  $namespace: '' !default;
12
12
 
13
- /// Theme path
13
+ /* Theme path
14
14
  /// For images and other media
15
15
  ///
16
- /// @group Config
16
+ /// @group Config */
17
17
  $theme-path: '/app/themes/internetstiftelsen' !default;
18
18
 
19
- /// Responsive breakpoints
20
- /// @group Config
19
+ /* Responsive breakpoints
20
+ /// @group Config */
21
21
  $breakpoints: (
22
22
  'sm': 0,
23
23
  'md': 640px,
24
24
  'lg': 1100px
25
25
  );
26
26
 
27
- /// Default margin and padding
27
+ /* Default margin and padding
28
28
  ///
29
- /// @group Config
29
+ /// @group Config */
30
30
  $default-margin: func.rhythm(2) !default;
31
31
  $default-padding: func.rhythm(2) !default;
32
32
 
33
- /// Theme colors
33
+ /* Theme colors
34
34
  ///
35
- /// @group Config
35
+ /// @group Config */
36
36
  $theme-colors: (
37
37
  primary: colors.$color-ruby,
38
38
  secondary: colors.$color-jade,
39
39
  subtle: colors.$color-granit
40
40
  );
41
41
 
42
- /// Text colors
42
+ /* Text colors
43
43
  ///
44
- /// @group Config
44
+ /// @group Config */
45
45
  .color {
46
46
  @include colorFunc.color_values($theme-colors, 'color', $separator: '-');
47
47
  }
48
48
 
49
- // Default text-shadow
49
+ /* Default text-shadow */
50
50
  $text-shadow: 0 0 func.rhythm(2) rgba(colors.$color-black, 0.5);
@@ -2,18 +2,18 @@
2
2
  @use "sass:map";
3
3
  @use "sass:math";
4
4
 
5
- // Size base
5
+ /* Size base */
6
6
  $size-base: 18px;
7
- // Base unit
7
+ /* Base unit */
8
8
  $base-unit: math.div($size-base, 2);
9
- // Grid columns
9
+ /* Grid columns */
10
10
  $grid-columns: 18;
11
11
 
12
12
  @function rhythm($lines) {
13
13
  @return to_rem($lines * $base-unit);
14
14
  }
15
15
 
16
- // Converts px value to rem
16
+ /* Converts px value to rem */
17
17
  @function to_rem($size) {
18
18
  @return math.div($size, $size-base) * 1rem;
19
19
  }
@@ -22,13 +22,13 @@ $grid-columns: 18;
22
22
  @return math.div($n, $n * 0 + 1);
23
23
  }
24
24
 
25
- // Convert rem back to px
25
+ /* Convert rem back to px */
26
26
  @function rem_to_px($size) {
27
27
  $value: parse_int($size) * 10px;
28
28
  @return math.round($value);
29
29
  }
30
30
 
31
- // Z-indexes
31
+ /* Z-indexes */
32
32
  $z-index: (
33
33
  'foreground': 1000,
34
34
  'foregroundMinus': 999,
@@ -7,39 +7,39 @@
7
7
 
8
8
  $namespace: '' !default;
9
9
 
10
- // Typography
10
+ /* Typography */
11
11
  $font-family-base: 'HK Grotesk', sans-serif !default;
12
12
  $font-family-headings: 'HK Grotesk Semibold', sans-serif !default;
13
13
  $font-family-medium: 'HK Grotesk Medium', sans-serif !default;
14
14
  $font-family-bold: 'HK Grotesk Bold', sans-serif !default;
15
15
  $font-family-mono: 'Roboto Mono Regular', monospace !default;
16
16
 
17
- $headings-baseline: 0.150 !default; // HK Semibold
18
- $body-baseline: 0.150 !default; // HK Regular
19
- $mono-baseline: 0.110 !default; // Roboto Mono Regular
17
+ $headings-baseline: 0.150 !default; /* HK Semibold */
18
+ $body-baseline: 0.150 !default; /* HK Regular */
19
+ $mono-baseline: 0.110 !default; /* Roboto Mono Regular */
20
20
 
21
- // Size base
21
+ /* Size base */
22
22
  $size-base: 18px !default;
23
23
 
24
- // Size medium plus
24
+ /* Size medium plus */
25
25
  $size-medium-plus: 15.3px !default;
26
26
 
27
- // Size medium
27
+ /* Size medium */
28
28
  $size-medium: 14px !default;
29
29
 
30
- // Size small
30
+ /* Size small */
31
31
  $size-small: 12px !default;
32
32
 
33
- // Base units
33
+ /* Base units */
34
34
  $base-unit: math.div($size-base, 2) !default;
35
35
  $rem-size: func.to_rem($base-unit) !default;
36
36
 
37
- // Small size
37
+ /* Small size */
38
38
  $small-text: func.to_rem($size-small);
39
39
 
40
- // Baseline defaults
40
+ /* Baseline defaults */
41
41
  @include plumber.plumber-set-defaults(
42
- $grid-height: func.to_rem($base-unit), // 9px based on 18px font size
42
+ $grid-height: func.to_rem($base-unit), /* 9px based on 18px font size */
43
43
  $baseline: $body-baseline,
44
44
  $font-size: 2,
45
45
  $line-height: 3,
@@ -49,10 +49,10 @@ $small-text: func.to_rem($size-small);
49
49
 
50
50
  $enable-grid-classes: true !default;
51
51
 
52
- // Grid breakpoints
52
+ /* Grid breakpoints
53
53
  //
54
54
  // Define the minimum dimensions at which your layout will change,
55
- // adapting to different screen sizes, for use in media queries.
55
+ // adapting to different screen sizes, for use in media queries. */
56
56
 
57
57
  $grid-breakpoints: (
58
58
  xs: 0,
@@ -67,16 +67,16 @@ $grid-breakpoints: (
67
67
  @include grid.assert-ascending($grid-breakpoints, '$grid-breakpoints');
68
68
  @include grid.assert-starts-at-zero($grid-breakpoints);
69
69
 
70
- // Grid columns
70
+ /* Grid columns
71
71
  //
72
- // Set the number of columns and specify the width of the gutters.
72
+ // Set the number of columns and specify the width of the gutters. */
73
73
 
74
74
  $grid-columns: 18 !default;
75
75
  $grid-gutter-width: func.to_rem(20px) !default;
76
76
 
77
- // Grid containers
77
+ /* Grid containers
78
78
  //
79
- // Define the maximum width of `.container` for different screen sizes.
79
+ // Define the maximum width of `.container` for different screen sizes. */
80
80
 
81
81
  $container-max-widths: (
82
82
  xl: 1360px
@@ -84,10 +84,10 @@ $container-max-widths: (
84
84
 
85
85
  @include grid.assert-ascending($container-max-widths, '$container-max-widths');
86
86
 
87
- // Default border-radius
87
+ /* Default border-radius */
88
88
  $border-radius: func.rhythm(0.5);
89
89
 
90
- // Icons
90
+ /* Icons */
91
91
  $icon-size: func.to_rem(24px);
92
92
  $icon-size-large: func.to_rem(28px);
93
93
  $icon-size-medium: func.to_rem(20px);
@@ -8,15 +8,15 @@
8
8
  @use 'mixins' as mixin;
9
9
  @use 'extends';
10
10
 
11
- //
11
+ /*
12
12
  // Modifies Wordpress Core classes
13
- //
13
+ */
14
14
 
15
15
  .wp-caption {
16
16
  margin-bottom: func.rhythm(3);
17
17
  }
18
18
 
19
- // Customize
19
+ /* Customize */
20
20
  .aligncenter,
21
21
  div.aligncenter {
22
22
  display: block;
@@ -25,14 +25,14 @@ div.aligncenter {
25
25
 
26
26
  @include breakpoint.bp-up(lg) {
27
27
  .alignright {
28
- width: calc(#{func.make_col(6)} - 13px); // <== You ugly magic number you, we hates it!
28
+ width: calc(#{func.make_col(6)} - 13px); /* <== You ugly magic number you, we hates it! */
29
29
  margin: 0 0 func.rhythm(3) 0;
30
30
  float: right;
31
31
  clear: right;
32
32
  }
33
33
 
34
34
  .alignleft {
35
- width: calc(#{func.make_col(6)} - 13px); // <== You ugly magic number you, we hates it!
35
+ width: calc(#{func.make_col(6)} - 13px); /* <== You ugly magic number you, we hates it! */
36
36
  margin: 0 func.rhythm(2) func.rhythm(3) 0;
37
37
  float: left;
38
38
  clear: left;
@@ -197,7 +197,7 @@ div.aligncenter {
197
197
  }
198
198
  }
199
199
 
200
- // WP Core Column Block/Group Styles
200
+ /* WP Core Column Block/Group Styles */
201
201
 
202
202
  .wp-block-group {
203
203
  display: flex;
@@ -1,7 +1,7 @@
1
1
  @charset "UTF-8";
2
2
  @use "sass:color";
3
3
 
4
- /// @group Colors
4
+ /* @group Colors */
5
5
  $color-black: #000 !default;
6
6
  $color-snow: #fff !default;
7
7
  $color-granit: #8e9297 !default;
@@ -25,7 +25,7 @@ $color-facebook: #0866ff !default;
25
25
  $color-twitter: #00aced !default;
26
26
  $color-linkedin: #0a66c2 !default;
27
27
 
28
- // Dark colors only for accessibility
28
+ /* Dark colors only for accessibility */
29
29
  $color-ruby-dark: color.adjust($color-ruby, $lightness: -20%);
30
30
  $color-peacock-dark: color.adjust($color-peacock, $lightness: -20%);
31
31
  $color-jade-dark: color.adjust($color-jade, $lightness: -20%);
@@ -33,7 +33,7 @@ $color-sandstone-dark: color.adjust($color-sandstone, $lightness: -20%);
33
33
  $color-lemon-dark: color.adjust($color-lemon, $lightness: -15%);
34
34
  $color-ocean-dark:color.adjust($color-ocean, $lightness: -24%);
35
35
 
36
- // Medium dark colors, for decoration purposes like borders
36
+ /* Medium dark colors, for decoration purposes like borders */
37
37
  $color-ruby-medium-dark: color.adjust($color-ruby, $lightness: -10%);
38
38
  $color-peacock-medium-dark: color.adjust($color-peacock, $lightness: -10%);
39
39
  $color-jade-medium-dark: color.adjust($color-jade, $lightness: -10%);
@@ -222,4 +222,4 @@ module.exports = {
222
222
  },
223
223
  ]
224
224
  }
225
- }
225
+ };
@@ -4,4 +4,4 @@ module.exports = {
4
4
  context: {
5
5
  url: 'https://static.internetstiftelsen.se/favicons/'
6
6
  }
7
- }
7
+ };
@@ -5,4 +5,4 @@ module.exports = {
5
5
  title: 'Grid',
6
6
  description: 'Layout grid - 18 columns.'
7
7
  }
8
- }
8
+ };
@@ -1 +1 @@
1
- [{"id":"search","name":"Search"},{"id":"arrow-forwards","name":"Arrow Forwards"},{"id":"arrow-backwards","name":"Arrow Backwards"},{"id":"arrow-down","name":"Arrow Down"},{"id":"arrow-variant","name":"Arrow Variant"},{"id":"hamburger","name":"Hamburger"},{"id":"close","name":"Close"},{"id":"check","name":"Check"},{"id":"quote","name":"Quote"},{"id":"file","name":"File"},{"id":"download","name":"Download"},{"id":"upload","name":"Upload"},{"id":"filter","name":"Filter"},{"id":"read","name":"Read"},{"id":"pin","name":"Pin"},{"id":"user","name":"User"},{"id":"language","name":"Language"},{"id":"linkedin","name":"Linkedin"},{"id":"facebook","name":"Facebook"},{"id":"instagram","name":"Instagram"},{"id":"twitter","name":"Twitter"},{"id":"x","name":"X"},{"id":"external-link","name":"External Link"},{"id":"app-share","name":"App Share"},{"id":"print","name":"Print"},{"id":"chapters","name":"Chapters"},{"id":"article","name":"Article"},{"id":"padlock","name":"Padlock"},{"id":"trash","name":"Trash"},{"id":"link","name":"Link"},{"id":"share","name":"Share"},{"id":"questionmark","name":"Questionmark"},{"id":"info","name":"Info"},{"id":"contrast","name":"Contrast"},{"id":"gauge","name":"Gauge"},{"id":"backward-15","name":"Backward 15"},{"id":"step-backwards","name":"Step Backwards"},{"id":"play","name":"Play"},{"id":"step-forwards","name":"Step Forwards"},{"id":"forward-60","name":"Forward 60"},{"id":"pause","name":"Pause"},{"id":"subtitles","name":"Subtitles"},{"id":"author","name":"Author"},{"id":"copy","name":"Copy"},{"id":"speaker","name":"Speaker"},{"id":"mute","name":"Mute"},{"id":"settings","name":"Settings"},{"id":"lte","name":"Lte"},{"id":"wifi","name":"Wifi"},{"id":"reception","name":"Reception"},{"id":"2g","name":"2g"},{"id":"3g","name":"3g"},{"id":"4g","name":"4g"},{"id":"5g","name":"5g"},{"id":"latency","name":"Latency"},{"id":"spinner","name":"Spinner"},{"id":"spinner-white","name":"Spinner White"},{"id":"3d","name":"3d"},{"id":"accessibility","name":"Accessibility"},{"id":"cafe","name":"Cafe"},{"id":"capacity","name":"Capacity"},{"id":"display","name":"Display"},{"id":"email","name":"Email"},{"id":"headset","name":"Headset"},{"id":"phone","name":"Phone"},{"id":"plus","name":"Plus"},{"id":"podcast","name":"Podcast"},{"id":"richtext-bold","name":"Richtext Bold"},{"id":"richtext-bullet-list","name":"Richtext Bullet List"},{"id":"richtext-italic","name":"Richtext Italic"},{"id":"streaming","name":"Streaming"},{"id":"time","name":"Time"},{"id":"drag-item","name":"Drag Item"},{"id":"personal-data","name":"Personal Data"},{"id":"romance","name":"Romance"},{"id":"shopping","name":"Shopping"},{"id":"warning","name":"Warning"},{"id":"diamond","name":"Diamond"},{"id":"world","name":"World"},{"id":"table","name":"Table"}]
1
+ [{"id":"search","name":"Search"},{"id":"search-domain","name":"Search Domain"},{"id":"arrow-forwards","name":"Arrow Forwards"},{"id":"arrow-backwards","name":"Arrow Backwards"},{"id":"arrow-down","name":"Arrow Down"},{"id":"arrow-variant","name":"Arrow Variant"},{"id":"hamburger","name":"Hamburger"},{"id":"close","name":"Close"},{"id":"check","name":"Check"},{"id":"quote","name":"Quote"},{"id":"file","name":"File"},{"id":"download","name":"Download"},{"id":"upload","name":"Upload"},{"id":"filter","name":"Filter"},{"id":"read","name":"Read"},{"id":"pin","name":"Pin"},{"id":"user","name":"User"},{"id":"language","name":"Language"},{"id":"linkedin","name":"Linkedin"},{"id":"facebook","name":"Facebook"},{"id":"instagram","name":"Instagram"},{"id":"twitter","name":"Twitter"},{"id":"x","name":"X"},{"id":"external-link","name":"External Link"},{"id":"app-share","name":"App Share"},{"id":"print","name":"Print"},{"id":"chapters","name":"Chapters"},{"id":"article","name":"Article"},{"id":"padlock","name":"Padlock"},{"id":"trash","name":"Trash"},{"id":"link","name":"Link"},{"id":"share","name":"Share"},{"id":"questionmark","name":"Questionmark"},{"id":"info","name":"Info"},{"id":"contrast","name":"Contrast"},{"id":"gauge","name":"Gauge"},{"id":"backward-15","name":"Backward 15"},{"id":"step-backwards","name":"Step Backwards"},{"id":"play","name":"Play"},{"id":"step-forwards","name":"Step Forwards"},{"id":"forward-60","name":"Forward 60"},{"id":"pause","name":"Pause"},{"id":"subtitles","name":"Subtitles"},{"id":"author","name":"Author"},{"id":"copy","name":"Copy"},{"id":"speaker","name":"Speaker"},{"id":"mute","name":"Mute"},{"id":"settings","name":"Settings"},{"id":"lte","name":"Lte"},{"id":"wifi","name":"Wifi"},{"id":"reception","name":"Reception"},{"id":"2g","name":"2g"},{"id":"3g","name":"3g"},{"id":"4g","name":"4g"},{"id":"5g","name":"5g"},{"id":"latency","name":"Latency"},{"id":"spinner","name":"Spinner"},{"id":"spinner-white","name":"Spinner White"},{"id":"3d","name":"3d"},{"id":"accessibility","name":"Accessibility"},{"id":"cafe","name":"Cafe"},{"id":"capacity","name":"Capacity"},{"id":"display","name":"Display"},{"id":"email","name":"Email"},{"id":"headset","name":"Headset"},{"id":"phone","name":"Phone"},{"id":"plus","name":"Plus"},{"id":"podcast","name":"Podcast"},{"id":"richtext-bold","name":"Richtext Bold"},{"id":"richtext-bullet-list","name":"Richtext Bullet List"},{"id":"richtext-italic","name":"Richtext Italic"},{"id":"streaming","name":"Streaming"},{"id":"time","name":"Time"},{"id":"drag-item","name":"Drag Item"},{"id":"personal-data","name":"Personal Data"},{"id":"romance","name":"Romance"},{"id":"shopping","name":"Shopping"},{"id":"warning","name":"Warning"},{"id":"diamond","name":"Diamond"},{"id":"world","name":"World"},{"id":"table","name":"Table"}]
@@ -15,4 +15,4 @@ module.exports = {
15
15
  strong: 'Den här texten är bold',
16
16
  italic: 'den här texten är italic',
17
17
  }
18
- }
18
+ };
@@ -48,4 +48,4 @@ module.exports = {
48
48
  }
49
49
  }
50
50
  ]
51
- }
51
+ };
@@ -25,4 +25,4 @@ module.exports = {
25
25
  }
26
26
  ]
27
27
  }
28
- }
28
+ };
@@ -22,4 +22,4 @@ module.exports = {
22
22
 
23
23
  }
24
24
  ]
25
- }
25
+ };
@@ -9,20 +9,20 @@ module.exports = {
9
9
  },
10
10
  variants: [
11
11
  {
12
- name: 'No focus trap',
13
- context: {
14
- controls: 'contextMenu2',
15
- focusTrap: false,
16
- outsideClick: false
12
+ name: 'No focus trap',
13
+ context: {
14
+ controls: 'contextMenu2',
15
+ focusTrap: false,
16
+ outsideClick: false
17
17
  }
18
18
  },
19
19
  {
20
- name: 'Close on outside click',
21
- context: {
22
- controls: 'contextMenu3',
23
- focusTrap: false,
24
- outsideClick: true
20
+ name: 'Close on outside click',
21
+ context: {
22
+ controls: 'contextMenu3',
23
+ focusTrap: false,
24
+ outsideClick: true
25
25
  }
26
26
  }
27
27
  ]
28
- }
28
+ };
@@ -4,4 +4,4 @@ module.exports = {
4
4
  context: {
5
5
  additional_classes: false
6
6
  }
7
- }
7
+ };
@@ -9,4 +9,4 @@ module.exports = {
9
9
  js_class: 'js-dismiss-alert',
10
10
  is_dismissable: true,
11
11
  }
12
- }
12
+ };
@@ -9,4 +9,4 @@ module.exports = {
9
9
  download: 'Ladda ner',
10
10
  icon: 'arrow-forwards'
11
11
  }
12
- }
12
+ };
@@ -12,4 +12,4 @@ module.exports = {
12
12
  }
13
13
  }
14
14
  ]
15
- }
15
+ };
@@ -75,4 +75,4 @@ module.exports = {
75
75
  }
76
76
  }
77
77
  ]
78
- }
78
+ };
@@ -1,12 +1,10 @@
1
1
  import Glider from 'glider-js';
2
2
  import nodeAdded from '../../assets/js/nodeAdded';
3
-
4
- // eslint-disable-next-line import/prefer-default-export
5
3
  export function initHeroGlider(node) {
6
4
  if (node.hasAttribute('data-glider-initialized')) {
7
5
  return;
8
6
  }
9
- // eslint-disable-next-line no-underscore-dangle
7
+
10
8
  const dataLayer = window._mtm || [];
11
9
  const gliderLinks = document.querySelectorAll('.glider-slide a');
12
10
 
@@ -26,4 +26,4 @@ module.exports = {
26
26
  }
27
27
  }
28
28
  ]
29
- }
29
+ };
@@ -8,4 +8,4 @@ module.exports = {
8
8
  overlay_icon: "play",
9
9
  additional_classes: false
10
10
  }
11
- }
11
+ };
@@ -30,4 +30,4 @@ module.exports = {
30
30
  }
31
31
  }
32
32
  ]
33
- }
33
+ };
@@ -34,4 +34,4 @@ module.exports = {
34
34
  },
35
35
  },
36
36
  ],
37
- }
37
+ };
@@ -104,7 +104,7 @@ function addAction(action) {
104
104
 
105
105
  if (action.onClick) {
106
106
  el.addEventListener('click', (e) => {
107
- // eslint-disable-next-line no-use-before-define
107
+
108
108
  action.onClick(e, modal, close);
109
109
  });
110
110
  }
@@ -113,7 +113,7 @@ function addAction(action) {
113
113
  function handleKeyUp(e) {
114
114
  Object.entries(keyHandlers).forEach(([key, handler]) => {
115
115
  if (e.key.toLowerCase() === key) {
116
- // eslint-disable-next-line no-use-before-define
116
+
117
117
  handler(e, modal, close);
118
118
  }
119
119
  });
@@ -105,7 +105,7 @@ class MultiSelect {
105
105
  }
106
106
 
107
107
  this.resetFocus();
108
- }
108
+ };
109
109
 
110
110
  removeItem(item) {
111
111
  const node = this.element.querySelector(`.js-m-multi-select-selected-items li[data-value="${item.value}"]`);
@@ -228,7 +228,7 @@ class MultiSelect {
228
228
 
229
229
  this.selectHighlighted();
230
230
  }
231
- }
231
+ };
232
232
 
233
233
  onClick = (e) => {
234
234
  if (e.target.classList.contains(className(`${this.baseClassName}__suggestion-btn`))) {
@@ -236,7 +236,7 @@ class MultiSelect {
236
236
  this.clearSuggestions();
237
237
  this.input.value = '';
238
238
  }
239
- }
239
+ };
240
240
  }
241
241
 
242
242
  const multiSelectElements = document.querySelectorAll('.js-m-multi-select');
@@ -13,7 +13,7 @@ module.exports = {
13
13
 
14
14
  variants: [
15
15
  {
16
- name: 'Select with arrow',
16
+ name: 'Select with arrow',
17
17
  context: {
18
18
  select: true,
19
19
  textElement: 'h1',
@@ -22,7 +22,7 @@ module.exports = {
22
22
  }
23
23
  },
24
24
  {
25
- name: 'Other text element',
25
+ name: 'Other text element',
26
26
  context: {
27
27
  select: true,
28
28
  textElement: 'h2',
@@ -31,7 +31,7 @@ module.exports = {
31
31
  }
32
32
  },
33
33
  {
34
- name: 'Input',
34
+ name: 'Input',
35
35
  context: {
36
36
  select: false,
37
37
  textElement: 'h1',
@@ -40,4 +40,4 @@ module.exports = {
40
40
  }
41
41
  }
42
42
  ]
43
- }
43
+ };
@@ -74,7 +74,7 @@ class OverviewNavigation {
74
74
 
75
75
  this.button.style.transition = 'none';
76
76
  this.updateButtonPosition();
77
- // eslint-disable-next-line no-unused-expressions
77
+
78
78
  this.element.offsetHeight; // force reflow
79
79
  this.button.style.transition = 'right 0.25s ease-out, bottom 0.25s ease-out, opacity 0.25s ease-out';
80
80
 
@@ -96,7 +96,7 @@ class OverviewNavigation {
96
96
  this.element.setAttribute('aria-hidden', 'false');
97
97
  this.element.classList.remove('is-minimized');
98
98
 
99
- // eslint-disable-next-line no-unused-expressions
99
+
100
100
  this.element.offsetHeight; // force reflow
101
101
 
102
102
  this.updateButtonPosition();
@@ -5,4 +5,4 @@ module.exports = {
5
5
  url: 'https://www.iis.se/press/pressmeddelanden/internetstiftelsen-far-utmarkelsen-svensk-kvalitet-for-andra-gangen/',
6
6
  text: 'Internetstiftelsen får utmärkelsen Svensk Kvalitet för andra gången'
7
7
  }
8
- }
8
+ };
@@ -24,4 +24,4 @@ module.exports = {
24
24
  }
25
25
  }
26
26
  ]
27
- }
27
+ };
@@ -7,4 +7,4 @@ module.exports = {
7
7
  suggestion: 'Försök <a href="#" class="js-history">backa i webbläsaren</a> eller gå till <a href="/">startsidan</a>.',
8
8
  errorMessage: 'error - Sidan kan inte hittas'
9
9
  }
10
- }
10
+ };
@@ -61,4 +61,4 @@ module.exports = {
61
61
  }
62
62
  },
63
63
  ]
64
- }
64
+ };
@@ -44,4 +44,4 @@ module.exports = {
44
44
  }
45
45
  ]
46
46
  }
47
- }
47
+ };
@@ -11,7 +11,7 @@
11
11
  @use '../../vendor/grid/breakpoints' as breakpoint;
12
12
  @use '../../utilities/hide';
13
13
 
14
- // Extends
14
+ /* Extends */
15
15
  %header {
16
16
  display: flex;
17
17
  position: relative;
@@ -85,7 +85,7 @@
85
85
 
86
86
  %is-visible {
87
87
  visibility: visible;
88
- max-height: 10000em; // Rediculous height
88
+ max-height: 10000em; /* Rediculous height */
89
89
  overflow: visible;
90
90
  transition: visibility 0s ease, max-height 0.25s ease, opacity 0.25s ease;
91
91
  opacity: 1;
@@ -100,7 +100,7 @@
100
100
  opacity: 0;
101
101
  }
102
102
 
103
- // Styling before Accordion script kicks in
103
+ /* Styling before Accordion script kicks in */
104
104
  .js-accordion {
105
105
  @include bem.e(header) {
106
106
  @extend %header;
@@ -234,7 +234,7 @@
234
234
  @include bem.e(panel) {
235
235
  @extend %panel;
236
236
 
237
- // Nested to prevent padding when JS is disabled
237
+ /* Nested to prevent padding when JS is disabled */
238
238
  @include bem.e(content) {
239
239
  position: relative;
240
240
  padding: func.rhythm(3);
@@ -160,4 +160,4 @@ module.exports = {
160
160
  }
161
161
  }
162
162
  ]
163
- }
163
+ };
@@ -8,4 +8,4 @@ module.exports = {
8
8
  label: 'sök en .se- eller .nu-domän',
9
9
  white_background: true
10
10
  }
11
- }
11
+ };
@@ -179,4 +179,4 @@ module.exports = {
179
179
  }
180
180
  ]
181
181
  }
182
- }
182
+ };