@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
package/scss/_input.scss
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@use './spacers' as spacers;
|
|
4
|
-
@use './font-settings' as font-settings;
|
|
5
|
-
@use './breakpoints' as breakpoints;
|
|
2
|
+
@import './font-settings';
|
|
6
3
|
|
|
7
4
|
@mixin input-wrapper {
|
|
8
5
|
width: 100%;
|
|
@@ -10,11 +7,11 @@
|
|
|
10
7
|
|
|
11
8
|
@mixin input-container {
|
|
12
9
|
display: flex;
|
|
13
|
-
font-size: font-
|
|
10
|
+
font-size: $font-size-sm;
|
|
14
11
|
width: 100%;
|
|
15
|
-
border: 2px solid
|
|
12
|
+
border: 2px solid $neutral700;
|
|
16
13
|
outline: none;
|
|
17
|
-
background:
|
|
14
|
+
background: $white;
|
|
18
15
|
|
|
19
16
|
svg:first-of-type {
|
|
20
17
|
padding-left: 0.375rem;
|
|
@@ -25,79 +22,79 @@
|
|
|
25
22
|
}
|
|
26
23
|
|
|
27
24
|
&--large {
|
|
28
|
-
padding:
|
|
25
|
+
padding: getSpacer(2xs) 0;
|
|
29
26
|
|
|
30
27
|
svg:first-of-type {
|
|
31
|
-
padding-left:
|
|
28
|
+
padding-left: getSpacer(2xs);
|
|
32
29
|
}
|
|
33
30
|
|
|
34
31
|
svg:last-of-type {
|
|
35
|
-
padding-right:
|
|
32
|
+
padding-right: getSpacer(2xs);
|
|
36
33
|
}
|
|
37
34
|
}
|
|
38
35
|
|
|
39
36
|
&:focus-within {
|
|
40
|
-
background:
|
|
41
|
-
border-color:
|
|
42
|
-
box-shadow: 0 0 0 2px
|
|
37
|
+
background: $white;
|
|
38
|
+
border-color: $neutral900;
|
|
39
|
+
box-shadow: 0 0 0 2px $neutral900;
|
|
43
40
|
}
|
|
44
41
|
|
|
45
42
|
&:hover {
|
|
46
|
-
background:
|
|
47
|
-
border-color:
|
|
48
|
-
box-shadow: 0 0 0 1px
|
|
43
|
+
background: $neutral50;
|
|
44
|
+
border-color: $neutral700;
|
|
45
|
+
box-shadow: 0 0 0 1px $neutral700;
|
|
49
46
|
|
|
50
47
|
&:focus-within {
|
|
51
|
-
border-color:
|
|
52
|
-
box-shadow: 0 0 0 2px
|
|
48
|
+
border-color: $black;
|
|
49
|
+
box-shadow: 0 0 0 2px $black;
|
|
53
50
|
}
|
|
54
51
|
}
|
|
55
52
|
|
|
56
53
|
&--on-blueberry {
|
|
57
|
-
border-color:
|
|
54
|
+
border-color: $blueberry500;
|
|
58
55
|
|
|
59
56
|
&:hover {
|
|
60
|
-
background:
|
|
61
|
-
box-shadow: 0 0 0 1px
|
|
62
|
-
border-color:
|
|
57
|
+
background: $blueberry50;
|
|
58
|
+
box-shadow: 0 0 0 1px $blueberry500;
|
|
59
|
+
border-color: $blueberry500;
|
|
63
60
|
}
|
|
64
61
|
|
|
65
62
|
&:focus-within {
|
|
66
|
-
background:
|
|
67
|
-
border-color:
|
|
68
|
-
box-shadow: 0 0 0 2px
|
|
63
|
+
background: $white;
|
|
64
|
+
border-color: $neutral900;
|
|
65
|
+
box-shadow: 0 0 0 2px $neutral900;
|
|
69
66
|
}
|
|
70
67
|
}
|
|
71
68
|
|
|
72
69
|
&--on-dark {
|
|
73
|
-
border-color:
|
|
70
|
+
border-color: $blueberry900;
|
|
74
71
|
|
|
75
72
|
&:hover {
|
|
76
|
-
background:
|
|
77
|
-
border-color:
|
|
78
|
-
box-shadow: 0 0 0 1px
|
|
73
|
+
background: $blueberry50;
|
|
74
|
+
border-color: $blueberry900;
|
|
75
|
+
box-shadow: 0 0 0 1px $blueberry900;
|
|
79
76
|
}
|
|
80
77
|
|
|
81
78
|
&:focus-within {
|
|
82
|
-
background:
|
|
83
|
-
border-color:
|
|
84
|
-
box-shadow: 0 0 0 2px
|
|
79
|
+
background: $white;
|
|
80
|
+
border-color: $neutral900;
|
|
81
|
+
box-shadow: 0 0 0 2px $neutral900;
|
|
85
82
|
}
|
|
86
83
|
}
|
|
87
84
|
|
|
88
85
|
&--invalid {
|
|
89
|
-
border-color:
|
|
86
|
+
border-color: $cherry600;
|
|
90
87
|
|
|
91
88
|
&:hover {
|
|
92
|
-
background:
|
|
93
|
-
border-color:
|
|
94
|
-
box-shadow: 0 0 0 2px
|
|
89
|
+
background: $cherry100;
|
|
90
|
+
border-color: $cherry600;
|
|
91
|
+
box-shadow: 0 0 0 2px $cherry600;
|
|
95
92
|
}
|
|
96
93
|
|
|
97
94
|
&:focus-within {
|
|
98
|
-
background:
|
|
99
|
-
border-color:
|
|
100
|
-
box-shadow: 0 0 0 2px
|
|
95
|
+
background: $white;
|
|
96
|
+
border-color: $neutral900;
|
|
97
|
+
box-shadow: 0 0 0 2px $neutral900;
|
|
101
98
|
}
|
|
102
99
|
}
|
|
103
100
|
|
|
@@ -105,32 +102,32 @@
|
|
|
105
102
|
background: transparent;
|
|
106
103
|
|
|
107
104
|
&:hover {
|
|
108
|
-
background:
|
|
105
|
+
background: $neutral100;
|
|
109
106
|
}
|
|
110
107
|
|
|
111
108
|
&:focus-within {
|
|
112
|
-
background:
|
|
109
|
+
background: $white;
|
|
113
110
|
}
|
|
114
111
|
}
|
|
115
112
|
&--transparent#{&}--on-blueberry {
|
|
116
113
|
&:hover {
|
|
117
|
-
background:
|
|
114
|
+
background: $blueberry100;
|
|
118
115
|
}
|
|
119
116
|
|
|
120
117
|
&:focus-within {
|
|
121
|
-
background:
|
|
118
|
+
background: $white;
|
|
122
119
|
}
|
|
123
120
|
}
|
|
124
121
|
|
|
125
122
|
&--disabled {
|
|
126
123
|
background: transparent;
|
|
127
|
-
border-color:
|
|
124
|
+
border-color: $neutral600;
|
|
128
125
|
border-style: dashed;
|
|
129
|
-
color:
|
|
126
|
+
color: $neutral700;
|
|
130
127
|
|
|
131
128
|
&:hover {
|
|
132
129
|
background: transparent;
|
|
133
|
-
border-color:
|
|
130
|
+
border-color: $neutral600;
|
|
134
131
|
box-shadow: none;
|
|
135
132
|
}
|
|
136
133
|
}
|
|
@@ -138,31 +135,31 @@
|
|
|
138
135
|
&__input {
|
|
139
136
|
line-height: 1.625rem;
|
|
140
137
|
font-family: inherit;
|
|
141
|
-
font-size: font-
|
|
142
|
-
padding: 0
|
|
138
|
+
font-size: $font-size-sm;
|
|
139
|
+
padding: 0 getSpacer(2xs);
|
|
143
140
|
border: none;
|
|
144
141
|
outline: none;
|
|
145
142
|
background-color: transparent;
|
|
146
143
|
width: 100%;
|
|
147
144
|
|
|
148
|
-
@media (min-width: map.get(
|
|
149
|
-
font-size: font-
|
|
145
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
146
|
+
font-size: $font-size-md;
|
|
150
147
|
}
|
|
151
148
|
|
|
152
149
|
&::placeholder {
|
|
153
|
-
color:
|
|
150
|
+
color: $neutral500;
|
|
154
151
|
}
|
|
155
152
|
|
|
156
153
|
&--disabled {
|
|
157
|
-
color:
|
|
154
|
+
color: $neutral700;
|
|
158
155
|
}
|
|
159
156
|
|
|
160
157
|
&:first-child {
|
|
161
|
-
padding-left:
|
|
158
|
+
padding-left: getSpacer(s);
|
|
162
159
|
}
|
|
163
160
|
|
|
164
161
|
&:last-child {
|
|
165
|
-
padding-right:
|
|
162
|
+
padding-right: getSpacer(s);
|
|
166
163
|
}
|
|
167
164
|
}
|
|
168
165
|
}
|
package/scss/_print.scss
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
2
|
+
@import 'palette';
|
|
3
|
+
@import '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($grid-breakpoints, lg) !important;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.container {
|
|
22
|
-
min-width: map.get(
|
|
22
|
+
min-width: map.get($grid-breakpoints, lg) !important;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
abbr[title]::after {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
pre,
|
|
34
34
|
blockquote {
|
|
35
|
-
border: 1px solid
|
|
35
|
+
border: 1px solid $neutral500;
|
|
36
36
|
page-break-inside: avoid;
|
|
37
37
|
}
|
|
38
38
|
|
package/scss/_reset.scss
CHANGED
package/scss/helsenorge.scss
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@use 'palette' as *;
|
|
5
|
-
@use 'fonts' as *;
|
|
6
|
-
@use 'body' as *;
|
|
7
|
-
@use 'print' as *;
|
|
1
|
+
@import 'reset';
|
|
2
|
+
@import 'spacers';
|
|
3
|
+
@import 'breakpoints';
|
|
8
4
|
@import 'bootstrap/scss/bootstrap-grid';
|
|
5
|
+
@import 'palette';
|
|
6
|
+
@import 'fonts';
|
|
7
|
+
@import 'body';
|
|
8
|
+
@import 'print';
|
package/scss/layout.module.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@
|
|
1
|
+
@import './breakpoints';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
Denne filen er ment til å importeres som en css module:
|
|
@@ -8,7 +8,7 @@ import designsystemlayout from './scss/layout.scss'
|
|
|
8
8
|
|
|
9
9
|
.container-breakout {
|
|
10
10
|
// This is a copy of how bootstrap's row class sets margins inside a container
|
|
11
|
-
// https://github.com/twbs/bootstrap/blob/e5643aaa89eb67327a5b4abe7db976f0ea276b70/scss/mixins/
|
|
11
|
+
// https://github.com/twbs/bootstrap/blob/e5643aaa89eb67327a5b4abe7db976f0ea276b70/scss/mixins/_grid.scss#L16C1-L17C30
|
|
12
12
|
margin-right: -$grid-gutter-width * 0.5;
|
|
13
13
|
margin-left: -$grid-gutter-width * 0.5;
|
|
14
14
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
7
|
-
@use './fonts' as *;
|
|
2
|
+
@import './spacers';
|
|
3
|
+
@import './breakpoints';
|
|
4
|
+
@import './fonts';
|
|
5
|
+
@import './palette';
|
|
6
|
+
@import './font-mixins';
|
|
8
7
|
|
|
9
8
|
/*
|
|
10
9
|
Denne filen er ment til å importeres som en css module:
|
|
@@ -13,123 +12,123 @@ import designsystemtypography from './scss/typography.scss'
|
|
|
13
12
|
*/
|
|
14
13
|
|
|
15
14
|
.title-feature {
|
|
16
|
-
@include
|
|
15
|
+
@include title-feature;
|
|
17
16
|
}
|
|
18
17
|
|
|
19
18
|
.focused-content {
|
|
20
|
-
font-size: font-
|
|
21
|
-
line-height:
|
|
19
|
+
font-size: $font-size-sm;
|
|
20
|
+
line-height: $lineheight-size-sm;
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
.title1 {
|
|
25
|
-
@include
|
|
24
|
+
@include title1;
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
.title2 {
|
|
29
|
-
@include
|
|
28
|
+
@include title2;
|
|
30
29
|
}
|
|
31
30
|
|
|
32
31
|
.title3 {
|
|
33
|
-
@include
|
|
32
|
+
@include title3;
|
|
34
33
|
}
|
|
35
34
|
|
|
36
35
|
.title4 {
|
|
37
|
-
@include
|
|
36
|
+
@include title4;
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
.title5 {
|
|
41
|
-
@include
|
|
40
|
+
@include title5;
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
.title6 {
|
|
45
|
-
@include
|
|
44
|
+
@include title6;
|
|
46
45
|
}
|
|
47
46
|
|
|
48
47
|
.body {
|
|
49
|
-
@include
|
|
48
|
+
@include body;
|
|
50
49
|
}
|
|
51
50
|
|
|
52
51
|
.preamble {
|
|
53
|
-
@include
|
|
52
|
+
@include preamble;
|
|
54
53
|
}
|
|
55
54
|
|
|
56
55
|
.legend {
|
|
57
|
-
@include
|
|
56
|
+
@include legend;
|
|
58
57
|
}
|
|
59
58
|
|
|
60
59
|
.label {
|
|
61
|
-
@include
|
|
60
|
+
@include label;
|
|
62
61
|
}
|
|
63
62
|
|
|
64
63
|
.label-subdued {
|
|
65
|
-
@include
|
|
64
|
+
@include label-subdued;
|
|
66
65
|
}
|
|
67
66
|
|
|
68
67
|
.sublabel {
|
|
69
|
-
@include
|
|
68
|
+
@include sublabel;
|
|
70
69
|
}
|
|
71
70
|
|
|
72
71
|
.sublabel-subdued {
|
|
73
|
-
@include
|
|
72
|
+
@include sublabel-subdued;
|
|
74
73
|
}
|
|
75
74
|
|
|
76
75
|
.compact-data {
|
|
77
|
-
@include
|
|
76
|
+
@include compact-data;
|
|
78
77
|
}
|
|
79
78
|
|
|
80
79
|
.table-cell {
|
|
81
|
-
@include
|
|
80
|
+
@include table-cell;
|
|
82
81
|
}
|
|
83
82
|
|
|
84
83
|
.strong {
|
|
85
|
-
font-size: font-
|
|
86
|
-
line-height:
|
|
84
|
+
font-size: $font-size-sm;
|
|
85
|
+
line-height: $lineheight-size-sm;
|
|
87
86
|
|
|
88
|
-
@media (min-width: map.get(
|
|
89
|
-
font-size: font-
|
|
90
|
-
line-height:
|
|
87
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
88
|
+
font-size: $font-size-md;
|
|
89
|
+
line-height: $lineheight-size-md;
|
|
91
90
|
}
|
|
92
91
|
}
|
|
93
92
|
|
|
94
93
|
.form {
|
|
95
|
-
font-size: font-
|
|
96
|
-
line-height:
|
|
94
|
+
font-size: $font-size-sm;
|
|
95
|
+
line-height: $lineheight-size-sm;
|
|
97
96
|
|
|
98
|
-
@media (min-width: map.get(
|
|
99
|
-
font-size: font-
|
|
97
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
98
|
+
font-size: $font-size-md;
|
|
100
99
|
}
|
|
101
100
|
}
|
|
102
101
|
|
|
103
102
|
.status-timestamp {
|
|
104
|
-
@include
|
|
103
|
+
@include status-timestamp;
|
|
105
104
|
}
|
|
106
105
|
|
|
107
106
|
.image-caption {
|
|
108
|
-
@include
|
|
107
|
+
@include image-caption;
|
|
109
108
|
}
|
|
110
109
|
|
|
111
110
|
.image-credit {
|
|
112
|
-
@include
|
|
111
|
+
@include image-credit;
|
|
113
112
|
}
|
|
114
113
|
|
|
115
114
|
.input-text {
|
|
116
|
-
@include
|
|
115
|
+
@include input-text;
|
|
117
116
|
}
|
|
118
117
|
|
|
119
118
|
.input-text-large {
|
|
120
|
-
@include
|
|
119
|
+
@include input-text-large;
|
|
121
120
|
}
|
|
122
121
|
|
|
123
122
|
.text-list {
|
|
124
|
-
@include
|
|
123
|
+
@include text-list;
|
|
125
124
|
}
|
|
126
125
|
|
|
127
126
|
.definition-list-type {
|
|
128
|
-
@include
|
|
127
|
+
@include definition-list-type;
|
|
129
128
|
}
|
|
130
129
|
|
|
131
130
|
.definition-list-data {
|
|
132
|
-
@include
|
|
131
|
+
@include definition-list-data;
|
|
133
132
|
}
|
|
134
133
|
|
|
135
134
|
.anchorlink-wrapper {
|
|
@@ -139,24 +138,24 @@ import designsystemtypography from './scss/typography.scss'
|
|
|
139
138
|
overflow-wrap: break-word;
|
|
140
139
|
word-break: break-word;
|
|
141
140
|
text-align: left;
|
|
142
|
-
color:
|
|
141
|
+
color: $blueberry600;
|
|
143
142
|
border: 0.15rem solid transparent;
|
|
144
143
|
text-decoration: underline;
|
|
145
144
|
text-underline-offset: 0.16rem;
|
|
146
|
-
text-decoration-color:
|
|
145
|
+
text-decoration-color: $blueberry400;
|
|
147
146
|
text-decoration-thickness: 0.0625rem;
|
|
148
147
|
padding: 0.1rem;
|
|
149
148
|
|
|
150
149
|
&:hover {
|
|
151
150
|
cursor: pointer;
|
|
152
|
-
color:
|
|
153
|
-
background-color:
|
|
154
|
-
text-decoration-color:
|
|
151
|
+
color: $blueberry700;
|
|
152
|
+
background-color: $blueberry50;
|
|
153
|
+
text-decoration-color: $blueberry600;
|
|
155
154
|
}
|
|
156
155
|
|
|
157
156
|
&:focus {
|
|
158
157
|
outline: none;
|
|
159
|
-
border: 0.15rem solid
|
|
158
|
+
border: 0.15rem solid $black;
|
|
160
159
|
}
|
|
161
160
|
|
|
162
161
|
&[target='_blank'] {
|