@helsenorge/designsystem-react 10.6.1 → 10.6.2
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 +8 -0
- package/components/AnchorLink/styles.module.scss +9 -7
- package/components/Avatar/styles.module.scss +9 -9
- package/components/Badge/styles.module.scss +9 -9
- package/components/Button/styles.module.scss +71 -77
- package/components/Checkbox/styles.module.scss +104 -104
- package/components/Chip/styles.module.scss +22 -21
- package/components/Close/styles.module.scss +5 -5
- package/components/DictionaryTrigger/styles.module.scss +5 -5
- package/components/Drawer/styles.module.scss +27 -27
- package/components/Dropdown/styles.module.scss +55 -55
- package/components/Duolist/styles.module.scss +4 -5
- package/components/EmptyState/styles.module.scss +16 -16
- package/components/ErrorWrapper/styles.module.scss +2 -2
- package/components/Expander/styles.module.scss +53 -53
- package/components/ExpanderHierarchy/expander.module.scss +35 -35
- package/components/ExpanderHierarchy/styles.module.scss +5 -4
- package/components/ExpanderList/styles.module.scss +32 -32
- package/components/EyebrowHeader/styles.module.scss +2 -0
- package/components/FormGroup/styles.module.scss +9 -9
- package/components/FormLayout/styles.module.scss +5 -4
- package/components/HelpBubble/styles.module.scss +14 -14
- package/components/HelpPanel/styles.module.scss +2 -2
- package/components/HelpQuestion/styles.module.scss +20 -20
- package/components/HighlightPanel/styles.module.scss +20 -20
- package/components/HorizontalScroll/styles.module.scss +3 -4
- package/components/Input/styles.module.scss +14 -14
- package/components/Label/styles.module.scss +16 -16
- package/components/LinkList/styles.module.scss +35 -35
- package/components/ListHeader/styles.module.scss +8 -8
- package/components/Loader/styles.module.scss +14 -14
- package/components/MaxCharacters/styles.module.scss +12 -12
- package/components/Modal/styles.module.scss +49 -49
- package/components/NotificationPanel/styles.module.scss +40 -40
- package/components/Panel/styles.module.scss +60 -60
- package/components/PanelList/styles.module.scss +6 -6
- package/components/PopMenu/styles.module.scss +16 -16
- package/components/PopOver/styles.module.scss +15 -14
- package/components/PopOver/styles.module.scss.d.ts +3 -0
- package/components/Progressbar/styles.module.scss +4 -4
- package/components/PromoPanel/styles.module.scss +31 -31
- package/components/RadioButton/styles.module.scss +100 -100
- package/components/Select/styles.module.scss +23 -23
- package/components/ServiceMessage/styles.module.scss +48 -48
- package/components/SharingStatus/styles.module.scss +13 -13
- package/components/Slider/styles.module.scss +25 -25
- package/components/Spacer/styles.module.scss +14 -14
- package/components/StatusDot/styles.module.scss +24 -24
- package/components/Step/styles.module.scss +3 -3
- package/components/StepButtons/styles.module.scss +11 -11
- package/components/Stepper/styles.module.scss +16 -24
- package/components/StickyNote/styles.module.scss +3 -3
- package/components/Table/styles.module.scss +31 -31
- package/components/Tabs/TabList/styles.module.scss +2 -2
- package/components/Tabs/TabPanel/styles.module.scss +7 -7
- package/components/Tabs/styles.module.scss +3 -3
- package/components/Tag/styles.module.scss +16 -16
- package/components/TagList/styles.module.scss +4 -4
- package/components/Textarea/styles.module.scss +9 -9
- package/components/Tile/styles.module.scss +31 -31
- package/components/Title/styles.module.scss +8 -8
- package/components/Toggle/styles.module.scss +18 -18
- package/components/Tooltip/TooltipWord/styles.module.scss +4 -4
- package/components/Trigger/styles.module.scss +21 -21
- package/components/Validation/styles.module.scss +11 -11
- package/package.json +1 -1
- package/scss/_body.scss +6 -5
- package/scss/_breakpoints.scss +2 -2
- package/scss/_font-mixins.scss +22 -22
- package/scss/_fonts.scss +2 -0
- package/scss/_input.scss +51 -54
- package/scss/_print.scss +5 -5
- package/scss/_reset.scss +1 -1
- package/scss/helsenorge.scss +7 -7
- package/scss/layout.module.scss +2 -2
- package/scss/typography.module.scss +46 -47
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
2
|
+
@import '../../scss/spacers';
|
|
3
|
+
@import '../../scss/breakpoints';
|
|
4
|
+
@import '../../scss/palette';
|
|
5
|
+
@import '../../scss/font-settings';
|
|
6
6
|
|
|
7
7
|
.max-characters {
|
|
8
8
|
display: flex;
|
|
9
9
|
justify-content: flex-end;
|
|
10
|
-
padding-top:
|
|
10
|
+
padding-top: getSpacer(2xs);
|
|
11
11
|
padding-right: 2px;
|
|
12
|
-
font-size: font-
|
|
13
|
-
line-height:
|
|
12
|
+
font-size: $font-size-sm;
|
|
13
|
+
line-height: $lineheight-size-sm;
|
|
14
14
|
|
|
15
|
-
@media (min-width: map.get(
|
|
16
|
-
line-height:
|
|
17
|
-
font-size: font-
|
|
15
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
16
|
+
line-height: $lineheight-size-md;
|
|
17
|
+
font-size: $font-size-md;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
&--on-dark {
|
|
21
|
-
color:
|
|
21
|
+
color: $white;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
&--invalid {
|
|
25
|
-
color:
|
|
25
|
+
color: $cherry600;
|
|
26
26
|
font-weight: 600;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
2
|
+
@import '../../scss/spacers';
|
|
3
|
+
@import '../../scss/palette';
|
|
4
|
+
@import '../../scss/breakpoints';
|
|
5
|
+
@import '../../scss/font-settings';
|
|
6
6
|
|
|
7
7
|
.modal-overlay {
|
|
8
8
|
background: rgb(51 51 51 / 75%);
|
|
@@ -32,26 +32,26 @@
|
|
|
32
32
|
.modal {
|
|
33
33
|
pointer-events: auto;
|
|
34
34
|
box-shadow: 0 0 5px 0 rgb(0 0 0 / 50%);
|
|
35
|
-
background-color:
|
|
35
|
+
background-color: $white;
|
|
36
36
|
animation: open 200ms 1;
|
|
37
37
|
outline: none;
|
|
38
38
|
|
|
39
39
|
&__title {
|
|
40
40
|
&--error {
|
|
41
|
-
color:
|
|
41
|
+
color: $cherry600;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
&--success {
|
|
45
|
-
color:
|
|
45
|
+
color: $kiwi900;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
&__iconWrapper {
|
|
50
|
-
padding-right:
|
|
50
|
+
padding-right: getSpacer(xs);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
&__afterTitleChildren {
|
|
54
|
-
padding-left:
|
|
54
|
+
padding-left: getSpacer(xs);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
p {
|
|
@@ -59,54 +59,54 @@
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
&--normal {
|
|
62
|
-
background-color:
|
|
62
|
+
background-color: $white;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
&--error {
|
|
66
|
-
background-color:
|
|
66
|
+
background-color: $cherry100;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
&--warning {
|
|
70
|
-
background-color:
|
|
70
|
+
background-color: $banana50;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
&--success {
|
|
74
|
-
background-color:
|
|
74
|
+
background-color: $kiwi50;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
&--large {
|
|
78
78
|
width: calc(100vw - 0.75rem);
|
|
79
|
-
padding-bottom:
|
|
79
|
+
padding-bottom: getSpacer(l);
|
|
80
80
|
|
|
81
|
-
@media (max-width: map.get(
|
|
81
|
+
@media (max-width: map.get($grid-breakpoints, sm)) {
|
|
82
82
|
p {
|
|
83
83
|
font-size: 1.125rem;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
@media (min-width: map.get(
|
|
88
|
-
padding-bottom:
|
|
87
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
88
|
+
padding-bottom: getSpacer(xl);
|
|
89
89
|
width: 612px;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
@media (min-width: map.get(
|
|
92
|
+
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
93
93
|
width: 696px;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
@include
|
|
97
|
-
padding-bottom:
|
|
96
|
+
@include tiny-screens-media-query {
|
|
97
|
+
padding-bottom: getSpacer(2xs);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
&--medium {
|
|
102
102
|
width: calc(100vw - 0.75rem);
|
|
103
|
-
padding-bottom:
|
|
103
|
+
padding-bottom: getSpacer(m);
|
|
104
104
|
|
|
105
|
-
@media (min-width: map.get(
|
|
105
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
106
106
|
width: 335px;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
@media (min-width: map.get(
|
|
109
|
+
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
110
110
|
width: 515px;
|
|
111
111
|
}
|
|
112
112
|
}
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
&--image {
|
|
119
119
|
padding: 0;
|
|
120
120
|
|
|
121
|
-
@media (min-width: map.get(
|
|
121
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
122
122
|
max-height: calc(100vh - 24px);
|
|
123
123
|
max-width: calc(100vw - 24px);
|
|
124
124
|
width: 100%;
|
|
@@ -160,8 +160,8 @@
|
|
|
160
160
|
|
|
161
161
|
&__close {
|
|
162
162
|
position: absolute;
|
|
163
|
-
right:
|
|
164
|
-
top:
|
|
163
|
+
right: getSpacer(3xs);
|
|
164
|
+
top: getSpacer(3xs);
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
overflow-x: hidden;
|
|
173
173
|
|
|
174
174
|
&:focus-visible {
|
|
175
|
-
outline: 1px solid
|
|
175
|
+
outline: 1px solid $black;
|
|
176
176
|
outline-offset: -1px;
|
|
177
177
|
}
|
|
178
178
|
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
max-height: none;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
@include
|
|
184
|
+
@include tiny-screens-media-query {
|
|
185
185
|
max-height: calc(100dvh - 4rem);
|
|
186
186
|
}
|
|
187
187
|
|
|
@@ -191,30 +191,30 @@
|
|
|
191
191
|
|
|
192
192
|
&__scroll {
|
|
193
193
|
&--large {
|
|
194
|
-
padding:
|
|
194
|
+
padding: getSpacer(xl) getSpacer(m) getSpacer(2xs);
|
|
195
195
|
|
|
196
|
-
@media (min-width: map.get(
|
|
197
|
-
padding:
|
|
196
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
197
|
+
padding: getSpacer(xl) getSpacer(xl) getSpacer(2xs);
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
@include
|
|
201
|
-
padding:
|
|
200
|
+
@include tiny-screens-media-query {
|
|
201
|
+
padding: getSpacer(2xs) getSpacer(2xs) getSpacer(4xs);
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
&--medium {
|
|
206
|
-
padding:
|
|
206
|
+
padding: getSpacer(l) getSpacer(m) getSpacer(2xs);
|
|
207
207
|
|
|
208
|
-
@media (min-width: map.get(
|
|
209
|
-
padding:
|
|
208
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
209
|
+
padding: getSpacer(xl) getSpacer(m) getSpacer(2xs);
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
@include
|
|
213
|
-
padding:
|
|
212
|
+
@include tiny-screens-media-query {
|
|
213
|
+
padding: getSpacer(2xs) getSpacer(3xs) getSpacer(4xs);
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
&--large#{&}--image {
|
|
217
|
-
padding:
|
|
217
|
+
padding: getSpacer(xl) getSpacer(2xs) getSpacer(l);
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
|
|
@@ -240,8 +240,8 @@
|
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
&__imageDescription {
|
|
243
|
-
font-size: font-
|
|
244
|
-
padding-top:
|
|
243
|
+
font-size: $font-size-xs;
|
|
244
|
+
padding-top: getSpacer(s);
|
|
245
245
|
display: block;
|
|
246
246
|
}
|
|
247
247
|
}
|
|
@@ -258,22 +258,22 @@
|
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
&--large {
|
|
261
|
-
padding:
|
|
261
|
+
padding: getSpacer(l) getSpacer(m) 0;
|
|
262
262
|
|
|
263
|
-
@media (min-width: map.get(
|
|
264
|
-
padding:
|
|
263
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
264
|
+
padding: getSpacer(l) getSpacer(xl) 0;
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
-
@include
|
|
268
|
-
padding:
|
|
267
|
+
@include tiny-screens-media-query {
|
|
268
|
+
padding: getSpacer(2xs) getSpacer(2xs) 0;
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
271
|
|
|
272
272
|
&--medium {
|
|
273
|
-
padding:
|
|
273
|
+
padding: getSpacer(m) getSpacer(m) 0;
|
|
274
274
|
|
|
275
|
-
@include
|
|
276
|
-
padding:
|
|
275
|
+
@include tiny-screens-media-query {
|
|
276
|
+
padding: getSpacer(2xs) getSpacer(2xs) 0;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
2
|
+
@import '../../scss/spacers';
|
|
3
|
+
@import '../../scss/breakpoints';
|
|
4
|
+
@import '../../scss/font-settings';
|
|
5
|
+
@import '../../scss/palette';
|
|
6
|
+
@import '../AnchorLink/styles.module';
|
|
7
7
|
|
|
8
8
|
.notification-panel {
|
|
9
9
|
$panel: &;
|
|
10
10
|
|
|
11
11
|
display: flex;
|
|
12
|
-
padding:
|
|
12
|
+
padding: getSpacer(2xs) getSpacer(s) getSpacer(2xs) getSpacer(2xs);
|
|
13
13
|
box-shadow: 0.25rem 0.25rem 0.375rem rgb(0 0 0 / 15%);
|
|
14
14
|
border-radius: 0.25rem;
|
|
15
15
|
|
|
16
|
-
@media (min-width: map.get(
|
|
17
|
-
padding-left:
|
|
18
|
-
padding-right:
|
|
16
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
17
|
+
padding-left: getSpacer(s);
|
|
18
|
+
padding-right: getSpacer(m);
|
|
19
19
|
#{$panel}__icon {
|
|
20
|
-
margin-right:
|
|
20
|
+
margin-right: getSpacer(m);
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
&--compact {
|
|
25
25
|
width: fit-content;
|
|
26
|
-
font-size: font-
|
|
26
|
+
font-size: $font-size-xs;
|
|
27
27
|
line-height: 1.25rem;
|
|
28
28
|
box-shadow: none;
|
|
29
29
|
|
|
30
|
-
@media (min-width: map.get(
|
|
31
|
-
padding-left:
|
|
32
|
-
padding-right:
|
|
30
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
31
|
+
padding-left: getSpacer(2xs);
|
|
32
|
+
padding-right: getSpacer(s);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
&--outline {
|
|
@@ -37,28 +37,28 @@
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
#{$panel}__icon {
|
|
40
|
-
margin-right:
|
|
40
|
+
margin-right: getSpacer(2xs);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
&--dismissable {
|
|
44
|
-
padding:
|
|
44
|
+
padding: getSpacer(2xs) getSpacer(2xs) getSpacer(m);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
&--small {
|
|
48
|
-
max-width: map.get(
|
|
48
|
+
max-width: map.get($grid-breakpoints, sm);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
&--medium {
|
|
52
|
-
max-width: map.get(
|
|
52
|
+
max-width: map.get($grid-breakpoints, md);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
&--large {
|
|
56
|
-
max-width: map.get(
|
|
56
|
+
max-width: map.get($grid-breakpoints, lg);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
&--info {
|
|
60
|
-
border: 0.125rem solid
|
|
61
|
-
background-color:
|
|
60
|
+
border: 0.125rem solid $blueberry700;
|
|
61
|
+
background-color: $blueberry50;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
&--info#{&}--compact {
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
&--warn {
|
|
74
|
-
border: 0.125rem solid
|
|
75
|
-
background-color:
|
|
74
|
+
border: 0.125rem solid $banana700;
|
|
75
|
+
background-color: $banana50;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
&--warn#{&}--compact {
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
&--error {
|
|
88
|
-
border: 0.125rem solid
|
|
89
|
-
background-color:
|
|
88
|
+
border: 0.125rem solid $cherry700;
|
|
89
|
+
background-color: $cherry50;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
&--error#{&}--compact {
|
|
@@ -99,8 +99,8 @@
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
&--success {
|
|
102
|
-
border: 0.125rem solid
|
|
103
|
-
background-color:
|
|
102
|
+
border: 0.125rem solid $kiwi900;
|
|
103
|
+
background-color: $kiwi50;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
&--success#{&}--compact {
|
|
@@ -115,36 +115,36 @@
|
|
|
115
115
|
&__close {
|
|
116
116
|
order: 1;
|
|
117
117
|
margin-left: auto;
|
|
118
|
-
padding-left:
|
|
118
|
+
padding-left: getSpacer(2xs);
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
&__content {
|
|
122
122
|
align-self: center;
|
|
123
123
|
|
|
124
124
|
a {
|
|
125
|
-
@include anchorlink
|
|
126
|
-
@include anchorlink
|
|
125
|
+
@include anchorlink;
|
|
126
|
+
@include anchorlink-icon;
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
&__label,
|
|
131
131
|
&__children {
|
|
132
|
-
font-size: font-
|
|
133
|
-
line-height:
|
|
132
|
+
font-size: $font-size-xs;
|
|
133
|
+
line-height: $lineheight-size-xs;
|
|
134
134
|
margin: 0;
|
|
135
135
|
|
|
136
|
-
@media (min-width: map.get(
|
|
137
|
-
font-size: font-
|
|
136
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
137
|
+
font-size: $font-size-sm;
|
|
138
138
|
line-height: 1.625rem;
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
&__label {
|
|
143
143
|
font-weight: 700;
|
|
144
|
-
margin:
|
|
144
|
+
margin: getSpacer(2xs) 0 0;
|
|
145
145
|
|
|
146
146
|
&--compact {
|
|
147
|
-
font-size: font-
|
|
147
|
+
font-size: $font-size-xs;
|
|
148
148
|
line-height: 1.25rem;
|
|
149
149
|
}
|
|
150
150
|
|
|
@@ -164,16 +164,16 @@
|
|
|
164
164
|
|
|
165
165
|
&__children {
|
|
166
166
|
font-weight: 600;
|
|
167
|
-
padding:
|
|
167
|
+
padding: getSpacer(3xs) 0;
|
|
168
168
|
|
|
169
169
|
&--with-label {
|
|
170
170
|
font-weight: 500;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
&--expander-no-label {
|
|
174
|
-
margin:
|
|
174
|
+
margin: getSpacer(2xs) 0 0;
|
|
175
175
|
|
|
176
|
-
@media (max-width: map.get(
|
|
176
|
+
@media (max-width: map.get($grid-breakpoints, lg)) {
|
|
177
177
|
padding-top: 0;
|
|
178
178
|
}
|
|
179
179
|
}
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
&--with-content {
|
|
191
|
-
padding-bottom:
|
|
191
|
+
padding-bottom: getSpacer(xs);
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
|