@helsenorge/designsystem-react 10.6.0 → 10.6.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.
- package/CHANGELOG.md +844 -1402
- package/components/AnchorLink/styles.module.scss +0 -1
- package/components/Button/styles.module.scss +13 -13
- package/components/Checkbox/styles.module.scss +2 -2
- package/components/Chip/styles.module.scss +0 -1
- package/components/Close/styles.module.scss +2 -2
- package/components/Drawer/styles.module.scss +12 -12
- package/components/Dropdown/styles.module.scss +5 -5
- package/components/Duolist/styles.module.scss +2 -2
- package/components/EmptyState/styles.module.scss +5 -5
- package/components/ErrorWrapper/styles.module.scss +2 -2
- package/components/Expander/styles.module.scss +8 -8
- package/components/ExpanderHierarchy/expander.module.scss +7 -7
- package/components/ExpanderList/styles.module.scss +3 -3
- package/components/FormGroup/styles.module.scss +1 -1
- package/components/HelpBubble/styles.module.scss +2 -2
- package/components/HelpQuestion/styles.module.scss +2 -2
- package/components/HighlightPanel/styles.module.scss +2 -2
- package/components/HorizontalScroll/styles.module.scss +1 -1
- package/components/Input/styles.module.scss +3 -3
- package/components/Label/styles.module.scss +2 -2
- package/components/LinkList/styles.module.scss +3 -3
- package/components/ListHeader/styles.module.scss +1 -1
- package/components/MaxCharacters/styles.module.scss +2 -2
- package/components/Modal/styles.module.scss +16 -16
- package/components/NotificationPanel/styles.module.scss +8 -8
- package/components/Panel/styles.module.scss +16 -16
- package/components/PanelList/styles.module.scss +2 -2
- package/components/PopMenu/styles.module.scss +2 -2
- package/components/PopOver/styles.module.scss +2 -2
- package/components/PromoPanel/styles.module.scss +9 -9
- package/components/RadioButton/styles.module.scss +2 -2
- package/components/Select/styles.module.scss +3 -3
- package/components/ServiceMessage/styles.module.scss +1 -1
- package/components/SharingStatus/styles.module.scss +1 -1
- package/components/Slider/styles.module.scss +2 -2
- package/components/StatusDot/styles.module.scss +3 -3
- package/components/StepButtons/styles.module.scss +3 -3
- package/components/Stepper/styles.module.scss +2 -2
- package/components/StickyNote/styles.module.scss +1 -1
- package/components/Table/styles.module.scss +1 -1
- package/components/Tabs/TabList/styles.module.scss +2 -2
- package/components/Tabs/TabPanel/styles.module.scss +3 -3
- package/components/Tabs/styles.module.scss +3 -3
- package/components/Tag/styles.module.scss +1 -1
- package/components/TagList/styles.module.scss +1 -1
- package/components/Textarea/styles.module.scss +1 -1
- package/components/Tile/styles.module.scss +7 -7
- package/components/Toggle/styles.module.scss +5 -5
- package/components/Validation/styles.module.scss +2 -2
- package/package.json +1 -1
- package/scss/_font-mixins.scss +21 -21
- package/scss/_input.scss +2 -2
- package/scss/_print.scss +3 -3
- package/scss/_reset.scss +1 -1
- package/scss/helsenorge.scss +7 -7
- package/scss/typography.module.scss +4 -4
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
@use '../../scss/palette' as palette;
|
|
4
4
|
@use '../../scss/spacers' as spacers;
|
|
5
5
|
@use '../../scss/screen-reader' as *;
|
|
6
|
-
@use '../../scss/breakpoints' as
|
|
7
|
-
@import '../../scss/supernova/styles/colors';
|
|
6
|
+
@use '../../scss/breakpoints' as breakpoints;
|
|
7
|
+
@import '../../scss/supernova/styles/colors.css';
|
|
8
8
|
|
|
9
9
|
.tile {
|
|
10
10
|
// Referanse for grandparent selection i underklassene lenger nede
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
border: 1px solid var(--color-base-border-blueberry);
|
|
23
23
|
outline: none;
|
|
24
24
|
|
|
25
|
-
@media (min-width: map.get(
|
|
25
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
26
26
|
padding: spacers.getSpacer(l) spacers.getSpacer(m) spacers.getSpacer(l) spacers.getSpacer(s);
|
|
27
27
|
justify-content: flex-start;
|
|
28
28
|
}
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
&--compact {
|
|
40
40
|
padding: spacers.getSpacer(2xs) spacers.getSpacer(2xs) spacers.getSpacer(xs);
|
|
41
41
|
|
|
42
|
-
@media (min-width: map.get(
|
|
42
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
43
43
|
padding: spacers.getSpacer(s) spacers.getSpacer(m) spacers.getSpacer(s) spacers.getSpacer(s);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
font-weight: 400;
|
|
85
85
|
margin: spacers.getSpacer(3xs) 0 0;
|
|
86
86
|
|
|
87
|
-
@media (min-width: map.get(
|
|
87
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
88
88
|
text-align: left;
|
|
89
89
|
font-weight: 600;
|
|
90
90
|
font-size: font-settings.$font-size-md;
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
margin: 0 0 0 spacers.getSpacer(3xs);
|
|
97
97
|
text-align: left;
|
|
98
98
|
|
|
99
|
-
@media (min-width: map.get(
|
|
99
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
100
100
|
margin-left: spacers.getSpacer(2xs);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
flex-direction: column;
|
|
127
127
|
align-items: center;
|
|
128
128
|
|
|
129
|
-
@media (min-width: map.get(
|
|
129
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
130
130
|
align-items: start;
|
|
131
131
|
|
|
132
132
|
@media print {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
@use '../../scss/palette' as palette;
|
|
4
4
|
@use '../../scss/font-settings' as font-settings;
|
|
5
5
|
@use '../../scss/font-mixins' as fonts;
|
|
6
|
-
@use '../../scss/breakpoints' as
|
|
7
|
-
@import '../../scss/supernova/styles/colors';
|
|
6
|
+
@use '../../scss/breakpoints' as breakpoints;
|
|
7
|
+
@import '../../scss/supernova/styles/colors.css';
|
|
8
8
|
|
|
9
9
|
.toggle-container {
|
|
10
10
|
display: flex;
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
color: var(--core-color-neutral-900);
|
|
28
28
|
margin-left: spacers.getSpacer(xs);
|
|
29
29
|
|
|
30
|
-
@media (min-width: map.get(
|
|
30
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, sm)) {
|
|
31
31
|
margin-left: spacers.getSpacer(s);
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
margin-left: 0;
|
|
40
40
|
margin-right: spacers.getSpacer(xs);
|
|
41
41
|
|
|
42
|
-
@media (min-width: map.get(
|
|
42
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, sm)) {
|
|
43
43
|
margin-right: spacers.getSpacer(s);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
margin-left: 3.9rem;
|
|
53
53
|
text-align: left;
|
|
54
54
|
|
|
55
|
-
@media (min-width: map.get(
|
|
55
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, sm)) {
|
|
56
56
|
font-size: font-settings.$font-size-sm;
|
|
57
57
|
line-height: font-settings.$lineheight-size-xs;
|
|
58
58
|
text-align: left;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
@use '../../scss/spacers' as spacers;
|
|
3
3
|
@use '../../scss/palette' as palette;
|
|
4
4
|
@use '../../scss/font-settings' as font-settings;
|
|
5
|
-
@use '../../scss/breakpoints' as
|
|
5
|
+
@use '../../scss/breakpoints' as breakpoints;
|
|
6
6
|
|
|
7
7
|
.validation {
|
|
8
8
|
&__error-wrapper {
|
|
9
9
|
margin-bottom: spacers.getSpacer(2xs);
|
|
10
10
|
|
|
11
|
-
@media (min-width: map.get(
|
|
11
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
12
12
|
margin-bottom: spacers.getSpacer(m);
|
|
13
13
|
}
|
|
14
14
|
}
|
package/package.json
CHANGED
package/scss/_font-mixins.scss
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use './spacers' as spacers;
|
|
3
|
-
@use './breakpoints' as
|
|
3
|
+
@use './breakpoints' as breakpoints;
|
|
4
4
|
|
|
5
5
|
@mixin title-feature {
|
|
6
6
|
font-size: 2.375rem;
|
|
7
7
|
line-height: 2.875rem;
|
|
8
8
|
font-weight: 600;
|
|
9
9
|
|
|
10
|
-
@media (min-width: map.get(
|
|
10
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
11
11
|
font-size: 4rem;
|
|
12
12
|
line-height: 5rem;
|
|
13
13
|
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
line-height: 2.375rem;
|
|
19
19
|
font-weight: 600;
|
|
20
20
|
|
|
21
|
-
@media (min-width: map.get(
|
|
21
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
22
22
|
font-size: 3rem;
|
|
23
23
|
line-height: 3.625rem;
|
|
24
24
|
}
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
line-height: 1.938rem;
|
|
30
30
|
font-weight: 600;
|
|
31
31
|
|
|
32
|
-
@media (min-width: map.get(
|
|
32
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
33
33
|
font-size: 2rem;
|
|
34
34
|
line-height: 2.375rem;
|
|
35
35
|
}
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
line-height: 1.813rem;
|
|
41
41
|
font-weight: 600;
|
|
42
42
|
|
|
43
|
-
@media (min-width: map.get(
|
|
43
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
44
44
|
font-size: 1.625rem;
|
|
45
45
|
line-height: 2rem;
|
|
46
46
|
}
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
line-height: 1.625rem;
|
|
52
52
|
font-weight: 600;
|
|
53
53
|
|
|
54
|
-
@media (min-width: map.get(
|
|
54
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
55
55
|
font-size: 1.375rem;
|
|
56
56
|
line-height: 1.813rem;
|
|
57
57
|
}
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
font-weight: 600;
|
|
65
65
|
text-transform: uppercase;
|
|
66
66
|
|
|
67
|
-
@media (min-width: map.get(
|
|
67
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
68
68
|
font-size: 1.125rem;
|
|
69
69
|
line-height: 1.563rem;
|
|
70
70
|
}
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
line-height: 1.375rem;
|
|
76
76
|
font-weight: 600;
|
|
77
77
|
|
|
78
|
-
@media (min-width: map.get(
|
|
78
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
79
79
|
font-size: 1.125rem;
|
|
80
80
|
line-height: 1.563rem;
|
|
81
81
|
}
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
font-size: 1.125rem;
|
|
86
86
|
line-height: 1.688rem;
|
|
87
87
|
|
|
88
|
-
@media (min-width: map.get(
|
|
88
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
89
89
|
font-size: 1.25rem;
|
|
90
90
|
line-height: 1.875rem;
|
|
91
91
|
}
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
line-height: 1.625rem;
|
|
97
97
|
font-weight: 400;
|
|
98
98
|
|
|
99
|
-
@media (min-width: map.get(
|
|
99
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
100
100
|
font-size: 1.5rem;
|
|
101
101
|
line-height: 1.938rem;
|
|
102
102
|
}
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
line-height: 1.438rem;
|
|
108
108
|
font-weight: 600;
|
|
109
109
|
|
|
110
|
-
@media (min-width: map.get(
|
|
110
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
111
111
|
font-size: 1.5rem;
|
|
112
112
|
line-height: 1.938rem;
|
|
113
113
|
}
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
line-height: 1.375rem;
|
|
119
119
|
font-weight: 600;
|
|
120
120
|
|
|
121
|
-
@media (min-width: map.get(
|
|
121
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
122
122
|
font-size: 1.25rem;
|
|
123
123
|
line-height: 1.625rem;
|
|
124
124
|
}
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
line-height: 1.375rem;
|
|
130
130
|
font-weight: 400;
|
|
131
131
|
|
|
132
|
-
@media (min-width: map.get(
|
|
132
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
133
133
|
font-size: 1.25rem;
|
|
134
134
|
line-height: 1.625rem;
|
|
135
135
|
}
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
line-height: 1.2rem;
|
|
141
141
|
font-weight: 600;
|
|
142
142
|
|
|
143
|
-
@media (min-width: map.get(
|
|
143
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
144
144
|
font-size: 1.125rem;
|
|
145
145
|
line-height: 1.463rem;
|
|
146
146
|
}
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
line-height: 1.2rem;
|
|
152
152
|
font-weight: 400;
|
|
153
153
|
|
|
154
|
-
@media (min-width: map.get(
|
|
154
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
155
155
|
font-size: 1.125rem;
|
|
156
156
|
line-height: 1.463rem;
|
|
157
157
|
}
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
font-size: 1rem;
|
|
162
162
|
line-height: 1.5rem;
|
|
163
163
|
|
|
164
|
-
@media (min-width: map.get(
|
|
164
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
165
165
|
font-size: 1.125rem;
|
|
166
166
|
line-height: 1.4375rem;
|
|
167
167
|
}
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
font-size: 1.125rem;
|
|
192
192
|
line-height: 1.688rem;
|
|
193
193
|
|
|
194
|
-
@media (min-width: map.get(
|
|
194
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
195
195
|
line-height: 1.4375rem;
|
|
196
196
|
}
|
|
197
197
|
}
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
font-size: 1.125rem;
|
|
201
201
|
line-height: 1.563rem;
|
|
202
202
|
|
|
203
|
-
@media (min-width: map.get(
|
|
203
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
204
204
|
font-size: 1.25rem;
|
|
205
205
|
line-height: 1.75rem;
|
|
206
206
|
}
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
line-height: 1.375rem;
|
|
212
212
|
font-weight: 400;
|
|
213
213
|
|
|
214
|
-
@media (min-width: map.get(
|
|
214
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
215
215
|
font-size: 1.25rem;
|
|
216
216
|
line-height: 1.625rem;
|
|
217
217
|
}
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
line-height: 1.375rem;
|
|
223
223
|
font-weight: 600;
|
|
224
224
|
|
|
225
|
-
@media (min-width: map.get(
|
|
225
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
226
226
|
font-size: 1.25rem;
|
|
227
227
|
line-height: 1.625rem;
|
|
228
228
|
}
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
line-height: 1.375rem;
|
|
234
234
|
font-weight: 400;
|
|
235
235
|
|
|
236
|
-
@media (min-width: map.get(
|
|
236
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
237
237
|
font-size: 1.25rem;
|
|
238
238
|
line-height: 1.625rem;
|
|
239
239
|
}
|
package/scss/_input.scss
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@use './palette' as palette;
|
|
3
3
|
@use './spacers' as spacers;
|
|
4
4
|
@use './font-settings' as font-settings;
|
|
5
|
-
@use './breakpoints' as
|
|
5
|
+
@use './breakpoints' as breakpoints;
|
|
6
6
|
|
|
7
7
|
@mixin input-wrapper {
|
|
8
8
|
width: 100%;
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
background-color: transparent;
|
|
146
146
|
width: 100%;
|
|
147
147
|
|
|
148
|
-
@media (min-width: map.get(
|
|
148
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
149
149
|
font-size: font-settings.$font-size-md;
|
|
150
150
|
}
|
|
151
151
|
|
package/scss/_print.scss
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use 'palette' as palette;
|
|
3
|
-
@
|
|
3
|
+
@use 'breakpoints' as breakpoints;
|
|
4
4
|
|
|
5
5
|
@media print {
|
|
6
6
|
*,
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
body {
|
|
18
|
-
min-width: map.get(
|
|
18
|
+
min-width: map.get(breakpoints.$grid-breakpoints, lg) !important;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.container {
|
|
22
|
-
min-width: map.get(
|
|
22
|
+
min-width: map.get(breakpoints.$grid-breakpoints, lg) !important;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
abbr[title]::after {
|
package/scss/_reset.scss
CHANGED
package/scss/helsenorge.scss
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
1
|
+
@use 'reset' as *;
|
|
2
|
+
@use 'spacers' as *;
|
|
3
|
+
@use 'breakpoints' as *;
|
|
4
|
+
@use 'palette' as *;
|
|
5
|
+
@use 'fonts' as *;
|
|
6
|
+
@use 'body' as *;
|
|
7
|
+
@use 'print' as *;
|
|
4
8
|
@import 'bootstrap/scss/bootstrap-grid';
|
|
5
|
-
@import 'palette';
|
|
6
|
-
@import 'fonts';
|
|
7
|
-
@import 'body';
|
|
8
|
-
@import 'print';
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
@use './palette' as palette;
|
|
4
4
|
@use './font-mixins' as fonts;
|
|
5
5
|
@use './font-settings' as font-settings;
|
|
6
|
-
@use './breakpoints' as
|
|
7
|
-
@
|
|
6
|
+
@use './breakpoints' as breakpoints;
|
|
7
|
+
@use './fonts' as *;
|
|
8
8
|
|
|
9
9
|
/*
|
|
10
10
|
Denne filen er ment til å importeres som en css module:
|
|
@@ -85,7 +85,7 @@ import designsystemtypography from './scss/typography.scss'
|
|
|
85
85
|
font-size: font-settings.$font-size-sm;
|
|
86
86
|
line-height: font-settings.$lineheight-size-sm;
|
|
87
87
|
|
|
88
|
-
@media (min-width: map.get(
|
|
88
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
89
89
|
font-size: font-settings.$font-size-md;
|
|
90
90
|
line-height: font-settings.$lineheight-size-md;
|
|
91
91
|
}
|
|
@@ -95,7 +95,7 @@ import designsystemtypography from './scss/typography.scss'
|
|
|
95
95
|
font-size: font-settings.$font-size-sm;
|
|
96
96
|
line-height: font-settings.$lineheight-size-sm;
|
|
97
97
|
|
|
98
|
-
@media (min-width: map.get(
|
|
98
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
99
99
|
font-size: font-settings.$font-size-md;
|
|
100
100
|
}
|
|
101
101
|
}
|