@fremtind/jokul 0.27.2 → 0.27.4

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 (83) hide show
  1. package/README.md +9 -2
  2. package/build/build-stats.html +1 -1
  3. package/build/cjs/components/radio-panel/RadioPanel.cjs +1 -1
  4. package/build/cjs/components/radio-panel/RadioPanel.cjs.map +1 -1
  5. package/build/cjs/components/radio-panel/RadioPanel.d.cts +1 -1
  6. package/build/es/components/radio-panel/RadioPanel.d.ts +1 -1
  7. package/build/es/components/radio-panel/RadioPanel.js +1 -1
  8. package/build/es/components/radio-panel/RadioPanel.js.map +1 -1
  9. package/package.json +2 -2
  10. package/styles/components/accordion/accordion.css +13 -5
  11. package/styles/components/accordion/accordion.min.css +7 -1
  12. package/styles/components/accordion/accordion.scss +17 -6
  13. package/styles/components/button/button.css +2 -2
  14. package/styles/components/button/button.min.css +1 -1
  15. package/styles/components/button/button.scss +2 -1
  16. package/styles/components/card/card.css +3 -1
  17. package/styles/components/card/card.scss +3 -1
  18. package/styles/components/checkbox/checkbox.css +4 -4
  19. package/styles/components/checkbox/checkbox.min.css +1 -1
  20. package/styles/components/checkbox/checkbox.scss +15 -5
  21. package/styles/components/combobox/combobox.css +4 -2
  22. package/styles/components/combobox/combobox.scss +20 -7
  23. package/styles/components/datepicker/_calendar.scss +6 -3
  24. package/styles/components/datepicker/datepicker.css +6 -3
  25. package/styles/components/datepicker/datepicker.scss +2 -1
  26. package/styles/components/feedback/feedback.css +2 -2
  27. package/styles/components/feedback/feedback.min.css +1 -1
  28. package/styles/components/feedback/feedback.scss +4 -1
  29. package/styles/components/icon/icon.scss +2 -2
  30. package/styles/components/input-group/_labels.scss +13 -5
  31. package/styles/components/input-group/input-group.css +2 -2
  32. package/styles/components/input-group/input-group.min.css +1 -1
  33. package/styles/components/input-group/input-group.scss +4 -1
  34. package/styles/components/link/link.scss +14 -2
  35. package/styles/components/list/list.scss +21 -6
  36. package/styles/components/loader/loader.css +6 -6
  37. package/styles/components/loader/loader.min.css +1 -1
  38. package/styles/components/loader/skeleton-loader.css +5 -5
  39. package/styles/components/loader/skeleton-loader.min.css +1 -1
  40. package/styles/components/loader/skeleton-loader.scss +2 -1
  41. package/styles/components/logo/logo.scss +12 -4
  42. package/styles/components/menu/menu.scss +2 -1
  43. package/styles/components/message/message.css +6 -3
  44. package/styles/components/message/message.min.css +1 -1
  45. package/styles/components/message/message.scss +11 -4
  46. package/styles/components/progress-bar/progress-bar.css +2 -2
  47. package/styles/components/progress-bar/progress-bar.min.css +1 -1
  48. package/styles/components/radio-button/radio-button.css +2 -2
  49. package/styles/components/radio-button/radio-button.min.css +1 -1
  50. package/styles/components/radio-button/radio-button.scss +24 -9
  51. package/styles/components/radio-panel/radio-panel.css +2 -637
  52. package/styles/components/radio-panel/radio-panel.min.css +1 -1
  53. package/styles/components/radio-panel/radio-panel.scss +2 -11
  54. package/styles/components/select/select.css +6 -3
  55. package/styles/components/select/select.scss +20 -7
  56. package/styles/components/system-message/system-message.css +2 -2
  57. package/styles/components/system-message/system-message.min.css +1 -1
  58. package/styles/components/system-message/system-message.scss +8 -3
  59. package/styles/components/table/_table-cell.scss +10 -4
  60. package/styles/components/table/_table-head.scss +2 -1
  61. package/styles/components/table/_table-row.scss +21 -9
  62. package/styles/components/tabs/tabs.css +6 -3
  63. package/styles/components/tabs/tabs.scss +6 -3
  64. package/styles/components/text-input/text-input.css +4 -2
  65. package/styles/components/text-input/text-input.scss +19 -8
  66. package/styles/components/toast/toast.css +7 -5
  67. package/styles/components/toast/toast.min.css +1 -1
  68. package/styles/components/toast/toast.scss +11 -4
  69. package/styles/components/toggle-switch/_toggle-slider.scss +2 -1
  70. package/styles/components/toggle-switch/toggle-switch.css +2 -1
  71. package/styles/components/toggle-switch/toggle-switch.scss +2 -1
  72. package/styles/components/tooltip/tooltip.scss +7 -2
  73. package/styles/core/_spacing.scss +12 -3
  74. package/styles/core/core.scss +7 -2
  75. package/styles/core/jkl/_convert.scss +4 -1
  76. package/styles/core/jkl/_helpers.scss +7 -1
  77. package/styles/core/jkl/_ornaments.scss +3 -1
  78. package/styles/core/jkl/_spacing.scss +4 -1
  79. package/styles/core/jkl/_tokens.scss +12 -4
  80. package/styles/core/jkl/_typography.scss +14 -6
  81. package/styles/fonts/webfonts.scss +14 -7
  82. package/styles/styles.css +86 -64
  83. package/styles/styles.min.css +7 -1
@@ -17,7 +17,10 @@
17
17
  @each $spacing-combination in spacing.$combinations {
18
18
  $_step: list.nth($spacing-combination, 1);
19
19
 
20
- --#{get-class-name($spacing-combination)}: #{map.get(spacing.$spacing, $_step)};
20
+ --#{get-class-name($spacing-combination)}: #{map.get(
21
+ spacing.$spacing,
22
+ $_step
23
+ )};
21
24
  }
22
25
 
23
26
  @include screens.from-medium-device {
@@ -25,7 +28,10 @@
25
28
  @if list.length($spacing-combination) > 1 {
26
29
  $_step: list.nth($spacing-combination, 2);
27
30
 
28
- --#{get-class-name($spacing-combination)}: #{map.get(spacing.$spacing, $_step)};
31
+ --#{get-class-name($spacing-combination)}: #{map.get(
32
+ spacing.$spacing,
33
+ $_step
34
+ )};
29
35
  }
30
36
  }
31
37
  }
@@ -35,7 +41,10 @@
35
41
  @if list.length($spacing-combination) > 2 {
36
42
  $_step: list.nth($spacing-combination, 3);
37
43
 
38
- --#{get-class-name($spacing-combination)}: #{map.get(spacing.$spacing, $_step)};
44
+ --#{get-class-name($spacing-combination)}: #{map.get(
45
+ spacing.$spacing,
46
+ $_step
47
+ )};
39
48
  }
40
49
  }
41
50
  }
@@ -32,14 +32,19 @@
32
32
 
33
33
  :root {
34
34
  @each $level, $values in typography.$text-styles {
35
- @each $property, $value in map.get(typography.$text-styles, $level, "small-screen") {
35
+ @each $property,
36
+ $value in map.get(typography.$text-styles, $level, "small-screen")
37
+ {
36
38
  --jkl-#{$level}-#{$property}: #{$value};
37
39
  }
38
40
  }
39
41
 
40
42
  @include jkl.from-medium-device {
41
43
  @each $level, $values in typography.$text-styles {
42
- @each $property, $value in map.get(typography.$text-styles, $level, "large-screen") {
44
+ @each $property,
45
+ $value
46
+ in map.get(typography.$text-styles, $level, "large-screen")
47
+ {
43
48
  --jkl-#{$level}-#{$property}: #{$value};
44
49
  }
45
50
  }
@@ -35,7 +35,10 @@
35
35
  $character: string.slice($value, $i, $i);
36
36
 
37
37
  @if not(index(map.keys($numbers), $character) or $character == ".") {
38
- @return to-length(if($minus, -$result, $result), string.slice($value, $i));
38
+ @return to-length(
39
+ if($minus, -$result, $result),
40
+ string.slice($value, $i)
41
+ );
39
42
  }
40
43
 
41
44
  @if $character == "." {
@@ -14,7 +14,13 @@
14
14
  /// @param {String} $left [initial]
15
15
  /// @param {String} $right [initial]
16
16
  /// @param {String} $bottom [initial]
17
- @mixin position($position, $top: initial, $left: initial, $right: initial, $bottom: initial) {
17
+ @mixin position(
18
+ $position,
19
+ $top: initial,
20
+ $left: initial,
21
+ $right: initial,
22
+ $bottom: initial
23
+ ) {
18
24
  position: $position;
19
25
  inset: $top $right $bottom $left;
20
26
  }
@@ -6,7 +6,9 @@
6
6
  height: $size;
7
7
 
8
8
  transform-origin: 26.33% 73.66%; // places origin in center of chevron
9
- transform: rotate((-45 + $rotate) * 1deg); // default orientation is pointing down
9
+ transform: rotate(
10
+ (-45 + $rotate) * 1deg
11
+ ); // default orientation is pointing down
10
12
 
11
13
  border-left: $weight solid $color;
12
14
  border-bottom: $weight solid $color;
@@ -145,7 +145,10 @@ $positions: (top, bottom, left, right);
145
145
 
146
146
  $first-value: string.slice($string, 0, $delimiter-index - 1);
147
147
  // Finn eventuelt flere substrenger ved å kjøre funksjonen rekursivt
148
- $other-values: _split-string(string.slice($string, $delimiter-index + 1), $delimiter);
148
+ $other-values: _split-string(
149
+ string.slice($string, $delimiter-index + 1),
150
+ $delimiter
151
+ );
149
152
 
150
153
  // Returner en kommaseparert liste over substrengene
151
154
  @return list.join($first-value, $other-values, "comma");
@@ -132,14 +132,22 @@ $color-background-page-variant: var(--jkl-color-background-page-variant);
132
132
  $color-background-container: var(--jkl-color-background-container);
133
133
  $color-background-container-low: var(--jkl-color-background-container-low);
134
134
  $color-background-container-high: var(--jkl-color-background-container-high);
135
- $color-background-container-inverted: var(--jkl-color-background-container-inverted);
136
- $color-background-container-subdued: var(--jkl-color-background-container-subdued);
135
+ $color-background-container-inverted: var(
136
+ --jkl-color-background-container-inverted
137
+ );
138
+ $color-background-container-subdued: var(
139
+ --jkl-color-background-container-subdued
140
+ );
137
141
  $color-background-input-base: var(--jkl-color-background-input-base);
138
142
  $color-background-input-focus: var(--jkl-color-background-input-focus);
139
143
  $color-background-action: var(--jkl-color-background-action);
140
144
  $color-background-interactive: var(--jkl-color-background-interactive);
141
- $color-background-interactive-hover: var(--jkl-color-background-interactive-hover);
142
- $color-background-interactive-selected: var(--jkl-color-background-interactive-selected);
145
+ $color-background-interactive-hover: var(
146
+ --jkl-color-background-interactive-hover
147
+ );
148
+ $color-background-interactive-selected: var(
149
+ --jkl-color-background-interactive-selected
150
+ );
143
151
  $color-background-alert-neutral: var(--jkl-color-background-alert-neutral);
144
152
  $color-background-alert-info: var(--jkl-color-background-alert-info);
145
153
  $color-background-alert-success: var(--jkl-color-background-alert-success);
@@ -267,7 +267,9 @@ $text-styles: (
267
267
  // Styles heading-5 and small are the same size on small and large screens. Skip to generate less CSS.
268
268
  @if $style != "small" and $style != "heading-5" {
269
269
  @include screens.from-medium-device {
270
- @each $property, $value in map.get($variants, "large-screen") {
270
+ @each $property,
271
+ $value in map.get($variants, "large-screen")
272
+ {
271
273
  #{$property}: $value;
272
274
  }
273
275
  @content;
@@ -325,7 +327,11 @@ $text-styles: (
325
327
  font-weight: var(--#{$name}-font-weight);
326
328
  }
327
329
 
328
- $_valid-font-family-values: ("Fremtind Grotesk", "Fremtind Grotesk Display", "Fremtind Grotesk Mono");
330
+ $_valid-font-family-values: (
331
+ "Fremtind Grotesk",
332
+ "Fremtind Grotesk Display",
333
+ "Fremtind Grotesk Mono"
334
+ );
329
335
 
330
336
  /// Hjelper sette riktig remse med fallback-fonts for Fremtind Grotesk, Fremtind Grotesk Display, og Fremtind Grotesk Mono.
331
337
  /// @param {"Fremtind Grotesk" | "Fremtind Grotesk Mono" | "Fremtind Grotesk Display"} $font - Regular justerer seg automatisk til italic og bold basert på font-style og font-weight. Display og Mono er adskilte fontfamilier.
@@ -336,11 +342,13 @@ $_valid-font-family-values: ("Fremtind Grotesk", "Fremtind Grotesk Display", "Fr
336
342
  }
337
343
 
338
344
  @if $font == "Fremtind Grotesk Mono" {
339
- font-family: "Fremtind Grotesk Mono", "Adjusted Courier New Fallback", -apple-system, BlinkMacSystemFont,
340
- monospace;
345
+ font-family: "Fremtind Grotesk Mono", "Adjusted Courier New Fallback",
346
+ -apple-system, BlinkMacSystemFont, monospace;
341
347
  } @else if $font == "Fremtind Grotesk Display" {
342
- font-family: "Fremtind Grotesk Display", "Adjusted Arial Display Fallback", Arial, sans-serif;
348
+ font-family: "Fremtind Grotesk Display",
349
+ "Adjusted Arial Display Fallback", Arial, sans-serif;
343
350
  } @else {
344
- font-family: "Fremtind Grotesk", "Adjusted Arial Fallback", Arial, sans-serif;
351
+ font-family: "Fremtind Grotesk", "Adjusted Arial Fallback", Arial,
352
+ sans-serif;
345
353
  }
346
354
  }
@@ -7,7 +7,8 @@ $webfonts-dir: "/fonts" !default;
7
7
  font-display: fallback;
8
8
  font-weight: 400;
9
9
  font-style: normal;
10
- src: url("#{$webfonts-dir}/FremtindGrotesk-Regular-Web.woff2") format("woff2"),
10
+ src: url("#{$webfonts-dir}/FremtindGrotesk-Regular-Web.woff2")
11
+ format("woff2"),
11
12
  url("#{$webfonts-dir}/FremtindGrotesk-Regular-Web.woff") format("woff");
12
13
  }
13
14
 
@@ -47,7 +48,8 @@ $webfonts-dir: "/fonts" !default;
47
48
  font-display: fallback;
48
49
  font-weight: 400;
49
50
  font-style: italic;
50
- src: url("#{$webfonts-dir}/FremtindGrotesk-Italic-Web.woff2") format("woff2"),
51
+ src: url("#{$webfonts-dir}/FremtindGrotesk-Italic-Web.woff2")
52
+ format("woff2"),
51
53
  url("#{$webfonts-dir}/FremtindGrotesk-Italic-Web.woff") format("woff");
52
54
  }
53
55
 
@@ -67,8 +69,10 @@ $webfonts-dir: "/fonts" !default;
67
69
  font-display: fallback;
68
70
  font-weight: 700;
69
71
  font-style: italic;
70
- src: url("#{$webfonts-dir}/FremtindGrotesk-BoldItalic-Web.woff2") format("woff2"),
71
- url("#{$webfonts-dir}/FremtindGrotesk-BoldItalic-Web.woff") format("woff");
72
+ src: url("#{$webfonts-dir}/FremtindGrotesk-BoldItalic-Web.woff2")
73
+ format("woff2"),
74
+ url("#{$webfonts-dir}/FremtindGrotesk-BoldItalic-Web.woff")
75
+ format("woff");
72
76
  }
73
77
 
74
78
  @font-face {
@@ -87,7 +91,8 @@ $webfonts-dir: "/fonts" !default;
87
91
  font-display: fallback;
88
92
  font-weight: 400;
89
93
  font-style: normal;
90
- src: url("#{$webfonts-dir}/FremtindGrotesk-Display-Web.woff2") format("woff2"),
94
+ src: url("#{$webfonts-dir}/FremtindGrotesk-Display-Web.woff2")
95
+ format("woff2"),
91
96
  url("#{$webfonts-dir}/FremtindGrotesk-Display-Web.woff") format("woff");
92
97
  }
93
98
 
@@ -107,8 +112,10 @@ $webfonts-dir: "/fonts" !default;
107
112
  font-display: fallback;
108
113
  font-weight: 400;
109
114
  font-style: normal;
110
- src: url("#{$webfonts-dir}/FremtindGroteskMono-Regular-Web.woff2") format("woff2"),
111
- url("#{$webfonts-dir}/FremtindGroteskMono-Regular-Web.woff") format("woff");
115
+ src: url("#{$webfonts-dir}/FremtindGroteskMono-Regular-Web.woff2")
116
+ format("woff2"),
117
+ url("#{$webfonts-dir}/FremtindGroteskMono-Regular-Web.woff")
118
+ format("woff");
112
119
  }
113
120
 
114
121
  @font-face {