@fremtind/jokul 5.0.0-next.5 → 5.0.0-next.7

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 (58) hide show
  1. package/README.md +5 -10
  2. package/codemods/__tests__/import-paths.test.mjs +189 -0
  3. package/codemods/import-paths.mjs +137 -3
  4. package/package.json +2 -1
  5. package/src/fonts/Fremtind-Material-Symbols.woff2 +0 -0
  6. package/src/fonts/InterVariable-Italic.woff2 +0 -0
  7. package/src/fonts/InterVariable.woff2 +0 -0
  8. package/styles/base.css +22 -70
  9. package/styles/base.min.css +1 -1
  10. package/styles/components/beta/nav-link/navlink.css +1 -1
  11. package/styles/components/beta/nav-link/navlink.min.css +1 -1
  12. package/styles/components/checkbox/checkbox.css +1 -1
  13. package/styles/components/checkbox/checkbox.min.css +1 -1
  14. package/styles/components/checkbox-panel/checkbox-panel.css +1 -1
  15. package/styles/components/checkbox-panel/checkbox-panel.min.css +1 -1
  16. package/styles/components/countdown/countdown.css +2 -2
  17. package/styles/components/countdown/countdown.min.css +1 -1
  18. package/styles/components/feedback/feedback.css +2 -2
  19. package/styles/components/feedback/feedback.min.css +1 -1
  20. package/styles/components/file-input/file-input.css +10 -10
  21. package/styles/components/file-input/file-input.min.css +1 -1
  22. package/styles/components/icon/_base-styles.scss +1 -1
  23. package/styles/components/icon/icon.css +1 -1
  24. package/styles/components/icon/icon.min.css +1 -1
  25. package/styles/components/input-group/input-group.css +2 -2
  26. package/styles/components/input-group/input-group.min.css +1 -1
  27. package/styles/components/link/link.css +1 -1
  28. package/styles/components/link/link.min.css +1 -1
  29. package/styles/components/link-list/link-list.css +1 -1
  30. package/styles/components/link-list/link-list.min.css +1 -1
  31. package/styles/components/loader/loader.css +6 -6
  32. package/styles/components/loader/loader.min.css +1 -1
  33. package/styles/components/loader/skeleton-loader.css +3 -3
  34. package/styles/components/loader/skeleton-loader.min.css +1 -1
  35. package/styles/components/message/message.css +2 -2
  36. package/styles/components/message/message.min.css +1 -1
  37. package/styles/components/progress-bar/progress-bar.css +1 -1
  38. package/styles/components/progress-bar/progress-bar.min.css +1 -1
  39. package/styles/components/radio-button/radio-button.css +1 -1
  40. package/styles/components/radio-button/radio-button.min.css +1 -1
  41. package/styles/components/search/search.css +2 -2
  42. package/styles/components/search/search.min.css +1 -1
  43. package/styles/components/search/search.scss +1 -1
  44. package/styles/components/segmented-control/segmented-control.css +4 -4
  45. package/styles/components/segmented-control/segmented-control.min.css +1 -1
  46. package/styles/components/system-message/system-message.css +2 -2
  47. package/styles/components/system-message/system-message.min.css +1 -1
  48. package/styles/components/toast/toast.css +4 -4
  49. package/styles/components/toast/toast.min.css +1 -1
  50. package/styles/components.css +32 -32
  51. package/styles/components.min.css +1 -1
  52. package/styles/jkl/_typography.scss +4 -4
  53. package/styles/theme/_fonts.scss +20 -58
  54. package/styles/theme/_index.scss +1 -1
  55. package/styles/theme/brands/{jokul → fremtind}/_color-scheme.scss +1 -1
  56. package/styles/theme/brands/fremtind/_fonts.scss +30 -0
  57. package/styles/theme/brands/jokul/_fonts.scss +0 -46
  58. /package/styles/theme/brands/{jokul → fremtind}/_index.scss +0 -0
@@ -70,11 +70,11 @@ $_valid-font-family-values: (
70
70
  "Jokul",
71
71
  "Jokul Display",
72
72
  "Jokul Mono",
73
- "Jokul Material Symbols"
73
+ "Jokul Icons"
74
74
  );
75
75
 
76
76
  /// Hjelper sette riktig remse med fallback-fonts for Jokul, Jokul Display, og Jokul Mono.
77
- /// @param {"Jokul" | "Jokul Mono" | "Jokul Display" | "Jokul Material Symbols"} $font - Regular justerer seg automatisk til italic og bold basert på font-style og font-weight. Display og Mono er adskilte fontfamilier.
77
+ /// @param {"Jokul" | "Jokul Mono" | "Jokul Display" | "Jokul Icons"} $font - Regular justerer seg automatisk til italic og bold basert på font-style og font-weight. Display og Mono er adskilte fontfamilier.
78
78
  /// @output - Ønsket fontfamilie med justert fallbackfont.
79
79
  @mixin use-font-family($font) {
80
80
  @if not list.index($_valid-font-family-values, $font) {
@@ -85,9 +85,9 @@ $_valid-font-family-values: (
85
85
  font-family: var(--jkl-font-family-mono);
86
86
  } @else if $font == "Jokul Display" {
87
87
  font-family: var(--jkl-font-family-display);
88
- } @else if $font == "Jokul Material Symbols" {
88
+ } @else if $font == "Jokul Icons" {
89
89
  font-family:
90
- "Jokul Material Symbols", "Jokul Material Symbols Fallback",
90
+ "Jokul Icons", "Jokul Icons Fallback",
91
91
  monospace;
92
92
  } @else {
93
93
  font-family: var(--jkl-font-family-regular);
@@ -11,17 +11,6 @@ $webfonts-dir: "/fonts" !default;
11
11
  src: url("#{$webfonts-dir}/InterVariable.woff2") format("woff2");
12
12
  }
13
13
 
14
- @font-face {
15
- font-family: "Adjusted Arial Fallback";
16
- font-weight: 400;
17
- font-style: normal;
18
- src: local(arial);
19
- size-adjust: 104%;
20
- ascent-override: 82%;
21
- descent-override: normal;
22
- line-gap-override: 32%;
23
- }
24
-
25
14
  @font-face {
26
15
  font-family: Jokul;
27
16
  font-display: fallback;
@@ -31,47 +20,44 @@ $webfonts-dir: "/fonts" !default;
31
20
  }
32
21
 
33
22
  @font-face {
34
- font-family: "Adjusted Arial Fallback";
35
- font-weight: 700;
23
+ font-family: "Jokul Display";
24
+ font-display: fallback;
25
+ font-weight: 400;
36
26
  font-style: normal;
37
- src: local(arial);
38
- size-adjust: 108%;
39
- ascent-override: 83%;
40
- descent-override: normal;
41
- line-gap-override: 28%;
27
+ src: url("#{$webfonts-dir}/InterVariable.woff2") format("woff2");
42
28
  }
43
29
 
44
30
  @font-face {
45
- font-family: Jokul;
31
+ font-family: "Jokul Mono";
46
32
  font-display: fallback;
47
33
  font-weight: 400;
48
- font-style: italic;
34
+ font-style: normal;
49
35
  src: url("#{$webfonts-dir}/InterVariable.woff2") format("woff2");
50
36
  }
51
37
 
38
+ @font-face {
39
+ font-family: "Jokul Icons";
40
+ font-weight: 300 400;
41
+ font-style: normal;
42
+ src: url("#{$webfonts-dir}/Fremtind-Material-Symbols.woff2")
43
+ format("woff2");
44
+ }
45
+
52
46
  @font-face {
53
47
  font-family: "Adjusted Arial Fallback";
54
48
  font-weight: 400;
55
- font-style: italic;
49
+ font-style: normal;
56
50
  src: local(arial);
57
- size-adjust: 106%;
58
- ascent-override: 83%;
51
+ size-adjust: 104%;
52
+ ascent-override: 82%;
59
53
  descent-override: normal;
60
- line-gap-override: 28%;
61
- }
62
-
63
- @font-face {
64
- font-family: Jokul;
65
- font-display: fallback;
66
- font-weight: 700;
67
- font-style: italic;
68
- src: url("#{$webfonts-dir}/InterVariable.woff2") format("woff2");
54
+ line-gap-override: 32%;
69
55
  }
70
56
 
71
57
  @font-face {
72
58
  font-family: "Adjusted Arial Fallback";
73
59
  font-weight: 700;
74
- font-style: italic;
60
+ font-style: normal;
75
61
  src: local(arial);
76
62
  size-adjust: 108%;
77
63
  ascent-override: 83%;
@@ -79,14 +65,6 @@ $webfonts-dir: "/fonts" !default;
79
65
  line-gap-override: 28%;
80
66
  }
81
67
 
82
- @font-face {
83
- font-family: "Jokul Display";
84
- font-display: fallback;
85
- font-weight: 400;
86
- font-style: normal;
87
- src: url("#{$webfonts-dir}/InterVariable.woff2") format("woff2");
88
- }
89
-
90
68
  @font-face {
91
69
  font-family: "Adjusted Arial Display Fallback";
92
70
  font-weight: 400;
@@ -98,14 +76,6 @@ $webfonts-dir: "/fonts" !default;
98
76
  line-gap-override: 40%;
99
77
  }
100
78
 
101
- @font-face {
102
- font-family: "Jokul Mono";
103
- font-display: fallback;
104
- font-weight: 400;
105
- font-style: normal;
106
- src: url("#{$webfonts-dir}/InterVariable.woff2") format("woff2");
107
- }
108
-
109
79
  @font-face {
110
80
  font-family: "Adjusted Courier New Fallback";
111
81
  font-weight: 400;
@@ -118,15 +88,7 @@ $webfonts-dir: "/fonts" !default;
118
88
  }
119
89
 
120
90
  @font-face {
121
- font-family: "Jokul Material Symbols";
122
- font-weight: 300 400;
123
- font-style: normal;
124
- src: url("#{$webfonts-dir}/Fremtind-Material-Symbols.woff2")
125
- format("woff2");
126
- }
127
-
128
- @font-face {
129
- font-family: "Jokul Material Symbols Fallback";
91
+ font-family: "Jokul Icons Fallback";
130
92
  src: local(courier new);
131
93
  font-weight: 300 400;
132
94
  font-style: normal;
@@ -6,4 +6,4 @@
6
6
  @forward "brands/dnb";
7
7
  @forward "brands/eika";
8
8
  @forward "brands/sparebank1";
9
- @forward "brands/jokul";
9
+ @forward "brands/fremtind";
@@ -4,7 +4,7 @@
4
4
 
5
5
 
6
6
  @layer jokul.theme {
7
- [data-brand="jokul"] {
7
+ [data-brand="fremtind"] {
8
8
  /* stylelint-disable declaration-block-no-duplicate-custom-properties -- fallback and light-dark() declarations are intentionally paired. */
9
9
  --jkl-color-neutral-background-page: #F4F2EF;
10
10
  --jkl-color-neutral-background-page: light-dark(#F4F2EF, #1B1917);
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+
6
+ $webfonts-dir-fremtind: "/fonts/brands/fremtind" !default;
7
+
8
+ @layer jokul.theme {
9
+ @font-face {
10
+ font-family: "Inter";
11
+ font-display: fallback;
12
+ font-weight: 400;
13
+ font-style: normal;
14
+ src: url("#{$webfonts-dir-fremtind}/InterVariable.woff2") format("woff2");
15
+ }
16
+
17
+ @font-face {
18
+ font-family: "Inter";
19
+ font-display: fallback;
20
+ font-weight: 700;
21
+ font-style: normal;
22
+ src: url("#{$webfonts-dir-fremtind}/InterVariable.woff2") format("woff2");
23
+ }
24
+
25
+ [data-brand="fremtind"] {
26
+ --jkl-font-family-regular: Inter, 'Adjusted Arial Fallback', arial, sans-serif;
27
+ --jkl-font-family-display: Inter, 'Adjusted Arial Display Fallback', arial, sans-serif;
28
+ --jkl-font-family-mono: monospace, -apple-system, blinkmacsystemfont;
29
+ }
30
+ }
@@ -1,46 +0,0 @@
1
- /**
2
- * Do not edit directly, this file was auto-generated.
3
- */
4
-
5
-
6
- $webfonts-dir-jokul: "/fonts/brands/jokul" !default;
7
-
8
- @layer jokul.theme {
9
- @font-face {
10
- font-family: "Inter";
11
- font-display: fallback;
12
- font-weight: 300;
13
- font-style: normal;
14
- src: url("#{$webfonts-dir-jokul}/InterVariable.woff2") format("woff2");
15
- }
16
-
17
- @font-face {
18
- font-family: "Inter";
19
- font-display: fallback;
20
- font-weight: 400;
21
- font-style: normal;
22
- src: url("#{$webfonts-dir-jokul}/InterVariable.woff2") format("woff2");
23
- }
24
-
25
- @font-face {
26
- font-family: "Inter";
27
- font-display: fallback;
28
- font-weight: 600;
29
- font-style: normal;
30
- src: url("#{$webfonts-dir-jokul}/InterVariable.woff2") format("woff2");
31
- }
32
-
33
- @font-face {
34
- font-family: "Inter";
35
- font-display: fallback;
36
- font-weight: 700;
37
- font-style: normal;
38
- src: url("#{$webfonts-dir-jokul}/InterVariable.woff2") format("woff2");
39
- }
40
-
41
- [data-brand="jokul"] {
42
- --jkl-font-family-regular: Inter, 'Adjusted Arial Fallback', arial, sans-serif;
43
- --jkl-font-family-display: Inter, 'Adjusted Arial Display Fallback', arial, sans-serif;
44
- --jkl-font-family-mono: monospace, -apple-system, blinkmacsystemfont;
45
- }
46
- }