@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.
- package/README.md +9 -2
- package/build/build-stats.html +1 -1
- package/build/cjs/components/radio-panel/RadioPanel.cjs +1 -1
- package/build/cjs/components/radio-panel/RadioPanel.cjs.map +1 -1
- package/build/cjs/components/radio-panel/RadioPanel.d.cts +1 -1
- package/build/es/components/radio-panel/RadioPanel.d.ts +1 -1
- package/build/es/components/radio-panel/RadioPanel.js +1 -1
- package/build/es/components/radio-panel/RadioPanel.js.map +1 -1
- package/package.json +2 -2
- package/styles/components/accordion/accordion.css +13 -5
- package/styles/components/accordion/accordion.min.css +7 -1
- package/styles/components/accordion/accordion.scss +17 -6
- package/styles/components/button/button.css +2 -2
- package/styles/components/button/button.min.css +1 -1
- package/styles/components/button/button.scss +2 -1
- package/styles/components/card/card.css +3 -1
- package/styles/components/card/card.scss +3 -1
- package/styles/components/checkbox/checkbox.css +4 -4
- package/styles/components/checkbox/checkbox.min.css +1 -1
- package/styles/components/checkbox/checkbox.scss +15 -5
- package/styles/components/combobox/combobox.css +4 -2
- package/styles/components/combobox/combobox.scss +20 -7
- package/styles/components/datepicker/_calendar.scss +6 -3
- package/styles/components/datepicker/datepicker.css +6 -3
- package/styles/components/datepicker/datepicker.scss +2 -1
- package/styles/components/feedback/feedback.css +2 -2
- package/styles/components/feedback/feedback.min.css +1 -1
- package/styles/components/feedback/feedback.scss +4 -1
- package/styles/components/icon/icon.scss +2 -2
- package/styles/components/input-group/_labels.scss +13 -5
- package/styles/components/input-group/input-group.css +2 -2
- package/styles/components/input-group/input-group.min.css +1 -1
- package/styles/components/input-group/input-group.scss +4 -1
- package/styles/components/link/link.scss +14 -2
- package/styles/components/list/list.scss +21 -6
- package/styles/components/loader/loader.css +6 -6
- package/styles/components/loader/loader.min.css +1 -1
- package/styles/components/loader/skeleton-loader.css +5 -5
- package/styles/components/loader/skeleton-loader.min.css +1 -1
- package/styles/components/loader/skeleton-loader.scss +2 -1
- package/styles/components/logo/logo.scss +12 -4
- package/styles/components/menu/menu.scss +2 -1
- package/styles/components/message/message.css +6 -3
- package/styles/components/message/message.min.css +1 -1
- package/styles/components/message/message.scss +11 -4
- package/styles/components/progress-bar/progress-bar.css +2 -2
- package/styles/components/progress-bar/progress-bar.min.css +1 -1
- package/styles/components/radio-button/radio-button.css +2 -2
- package/styles/components/radio-button/radio-button.min.css +1 -1
- package/styles/components/radio-button/radio-button.scss +24 -9
- package/styles/components/radio-panel/radio-panel.css +2 -637
- package/styles/components/radio-panel/radio-panel.min.css +1 -1
- package/styles/components/radio-panel/radio-panel.scss +2 -11
- package/styles/components/select/select.css +6 -3
- package/styles/components/select/select.scss +20 -7
- package/styles/components/system-message/system-message.css +2 -2
- package/styles/components/system-message/system-message.min.css +1 -1
- package/styles/components/system-message/system-message.scss +8 -3
- package/styles/components/table/_table-cell.scss +10 -4
- package/styles/components/table/_table-head.scss +2 -1
- package/styles/components/table/_table-row.scss +21 -9
- package/styles/components/tabs/tabs.css +6 -3
- package/styles/components/tabs/tabs.scss +6 -3
- package/styles/components/text-input/text-input.css +4 -2
- package/styles/components/text-input/text-input.scss +19 -8
- package/styles/components/toast/toast.css +7 -5
- package/styles/components/toast/toast.min.css +1 -1
- package/styles/components/toast/toast.scss +11 -4
- package/styles/components/toggle-switch/_toggle-slider.scss +2 -1
- package/styles/components/toggle-switch/toggle-switch.css +2 -1
- package/styles/components/toggle-switch/toggle-switch.scss +2 -1
- package/styles/components/tooltip/tooltip.scss +7 -2
- package/styles/core/_spacing.scss +12 -3
- package/styles/core/core.scss +7 -2
- package/styles/core/jkl/_convert.scss +4 -1
- package/styles/core/jkl/_helpers.scss +7 -1
- package/styles/core/jkl/_ornaments.scss +3 -1
- package/styles/core/jkl/_spacing.scss +4 -1
- package/styles/core/jkl/_tokens.scss +12 -4
- package/styles/core/jkl/_typography.scss +14 -6
- package/styles/fonts/webfonts.scss +14 -7
- package/styles/styles.css +86 -64
- 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(
|
|
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(
|
|
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(
|
|
44
|
+
--#{get-class-name($spacing-combination)}: #{map.get(
|
|
45
|
+
spacing.$spacing,
|
|
46
|
+
$_step
|
|
47
|
+
)};
|
|
39
48
|
}
|
|
40
49
|
}
|
|
41
50
|
}
|
package/styles/core/core.scss
CHANGED
|
@@ -32,14 +32,19 @@
|
|
|
32
32
|
|
|
33
33
|
:root {
|
|
34
34
|
@each $level, $values in typography.$text-styles {
|
|
35
|
-
@each $property,
|
|
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,
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
136
|
-
|
|
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(
|
|
142
|
-
|
|
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,
|
|
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: (
|
|
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",
|
|
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",
|
|
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,
|
|
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")
|
|
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")
|
|
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")
|
|
71
|
-
|
|
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")
|
|
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")
|
|
111
|
-
|
|
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 {
|