@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.
Files changed (76) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/components/AnchorLink/styles.module.scss +9 -7
  3. package/components/Avatar/styles.module.scss +9 -9
  4. package/components/Badge/styles.module.scss +9 -9
  5. package/components/Button/styles.module.scss +71 -77
  6. package/components/Checkbox/styles.module.scss +104 -104
  7. package/components/Chip/styles.module.scss +22 -21
  8. package/components/Close/styles.module.scss +5 -5
  9. package/components/DictionaryTrigger/styles.module.scss +5 -5
  10. package/components/Drawer/styles.module.scss +27 -27
  11. package/components/Dropdown/styles.module.scss +55 -55
  12. package/components/Duolist/styles.module.scss +4 -5
  13. package/components/EmptyState/styles.module.scss +16 -16
  14. package/components/ErrorWrapper/styles.module.scss +2 -2
  15. package/components/Expander/styles.module.scss +53 -53
  16. package/components/ExpanderHierarchy/expander.module.scss +35 -35
  17. package/components/ExpanderHierarchy/styles.module.scss +5 -4
  18. package/components/ExpanderList/styles.module.scss +32 -32
  19. package/components/EyebrowHeader/styles.module.scss +2 -0
  20. package/components/FormGroup/styles.module.scss +9 -9
  21. package/components/FormLayout/styles.module.scss +5 -4
  22. package/components/HelpBubble/styles.module.scss +14 -14
  23. package/components/HelpPanel/styles.module.scss +2 -2
  24. package/components/HelpQuestion/styles.module.scss +20 -20
  25. package/components/HighlightPanel/styles.module.scss +20 -20
  26. package/components/HorizontalScroll/styles.module.scss +3 -4
  27. package/components/Input/styles.module.scss +14 -14
  28. package/components/Label/styles.module.scss +16 -16
  29. package/components/LinkList/styles.module.scss +35 -35
  30. package/components/ListHeader/styles.module.scss +8 -8
  31. package/components/Loader/styles.module.scss +14 -14
  32. package/components/MaxCharacters/styles.module.scss +12 -12
  33. package/components/Modal/styles.module.scss +49 -49
  34. package/components/NotificationPanel/styles.module.scss +40 -40
  35. package/components/Panel/styles.module.scss +60 -60
  36. package/components/PanelList/styles.module.scss +6 -6
  37. package/components/PopMenu/styles.module.scss +16 -16
  38. package/components/PopOver/styles.module.scss +15 -14
  39. package/components/PopOver/styles.module.scss.d.ts +3 -0
  40. package/components/Progressbar/styles.module.scss +4 -4
  41. package/components/PromoPanel/styles.module.scss +31 -31
  42. package/components/RadioButton/styles.module.scss +100 -100
  43. package/components/Select/styles.module.scss +23 -23
  44. package/components/ServiceMessage/styles.module.scss +48 -48
  45. package/components/SharingStatus/styles.module.scss +13 -13
  46. package/components/Slider/styles.module.scss +25 -25
  47. package/components/Spacer/styles.module.scss +14 -14
  48. package/components/StatusDot/styles.module.scss +24 -24
  49. package/components/Step/styles.module.scss +3 -3
  50. package/components/StepButtons/styles.module.scss +11 -11
  51. package/components/Stepper/styles.module.scss +16 -24
  52. package/components/StickyNote/styles.module.scss +3 -3
  53. package/components/Table/styles.module.scss +31 -31
  54. package/components/Tabs/TabList/styles.module.scss +2 -2
  55. package/components/Tabs/TabPanel/styles.module.scss +7 -7
  56. package/components/Tabs/styles.module.scss +3 -3
  57. package/components/Tag/styles.module.scss +16 -16
  58. package/components/TagList/styles.module.scss +4 -4
  59. package/components/Textarea/styles.module.scss +9 -9
  60. package/components/Tile/styles.module.scss +31 -31
  61. package/components/Title/styles.module.scss +8 -8
  62. package/components/Toggle/styles.module.scss +18 -18
  63. package/components/Tooltip/TooltipWord/styles.module.scss +4 -4
  64. package/components/Trigger/styles.module.scss +21 -21
  65. package/components/Validation/styles.module.scss +11 -11
  66. package/package.json +1 -1
  67. package/scss/_body.scss +6 -5
  68. package/scss/_breakpoints.scss +2 -2
  69. package/scss/_font-mixins.scss +22 -22
  70. package/scss/_fonts.scss +2 -0
  71. package/scss/_input.scss +51 -54
  72. package/scss/_print.scss +5 -5
  73. package/scss/_reset.scss +1 -1
  74. package/scss/helsenorge.scss +7 -7
  75. package/scss/layout.module.scss +2 -2
  76. package/scss/typography.module.scss +46 -47
@@ -1,28 +1,28 @@
1
1
  @use 'sass:map';
2
- @use '../../scss/spacers' as spacers;
3
- @use '../../scss/palette' as palette;
4
- @use '../../scss/font-settings' as font-settings;
5
- @use '../../scss/breakpoints' as breakpoints;
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: spacers.getSpacer(2xs);
10
+ padding-top: getSpacer(2xs);
11
11
  padding-right: 2px;
12
- font-size: font-settings.$font-size-sm;
13
- line-height: font-settings.$lineheight-size-sm;
12
+ font-size: $font-size-sm;
13
+ line-height: $lineheight-size-sm;
14
14
 
15
- @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
16
- line-height: font-settings.$lineheight-size-md;
17
- font-size: font-settings.$font-size-md;
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: palette.$white;
21
+ color: $white;
22
22
  }
23
23
 
24
24
  &--invalid {
25
- color: palette.$cherry600;
25
+ color: $cherry600;
26
26
  font-weight: 600;
27
27
  }
28
28
  }
@@ -1,8 +1,8 @@
1
1
  @use 'sass:map';
2
- @use '../../scss/spacers' as spacers;
3
- @use '../../scss/palette' as palette;
4
- @use '../../scss/font-settings' as font-settings;
5
- @use '../../scss/breakpoints' as breakpoints;
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: palette.$white;
35
+ background-color: $white;
36
36
  animation: open 200ms 1;
37
37
  outline: none;
38
38
 
39
39
  &__title {
40
40
  &--error {
41
- color: palette.$cherry600;
41
+ color: $cherry600;
42
42
  }
43
43
 
44
44
  &--success {
45
- color: palette.$kiwi900;
45
+ color: $kiwi900;
46
46
  }
47
47
  }
48
48
 
49
49
  &__iconWrapper {
50
- padding-right: spacers.getSpacer(xs);
50
+ padding-right: getSpacer(xs);
51
51
  }
52
52
 
53
53
  &__afterTitleChildren {
54
- padding-left: spacers.getSpacer(xs);
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: palette.$white;
62
+ background-color: $white;
63
63
  }
64
64
 
65
65
  &--error {
66
- background-color: palette.$cherry100;
66
+ background-color: $cherry100;
67
67
  }
68
68
 
69
69
  &--warning {
70
- background-color: palette.$banana50;
70
+ background-color: $banana50;
71
71
  }
72
72
 
73
73
  &--success {
74
- background-color: palette.$kiwi50;
74
+ background-color: $kiwi50;
75
75
  }
76
76
 
77
77
  &--large {
78
78
  width: calc(100vw - 0.75rem);
79
- padding-bottom: spacers.getSpacer(l);
79
+ padding-bottom: getSpacer(l);
80
80
 
81
- @media (max-width: map.get(breakpoints.$grid-breakpoints, sm)) {
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(breakpoints.$grid-breakpoints, md)) {
88
- padding-bottom: spacers.getSpacer(xl);
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(breakpoints.$grid-breakpoints, lg)) {
92
+ @media (min-width: map.get($grid-breakpoints, lg)) {
93
93
  width: 696px;
94
94
  }
95
95
 
96
- @include breakpoints.tiny-screens-media-query {
97
- padding-bottom: spacers.getSpacer(2xs);
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: spacers.getSpacer(m);
103
+ padding-bottom: getSpacer(m);
104
104
 
105
- @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
105
+ @media (min-width: map.get($grid-breakpoints, md)) {
106
106
  width: 335px;
107
107
  }
108
108
 
109
- @media (min-width: map.get(breakpoints.$grid-breakpoints, lg)) {
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(breakpoints.$grid-breakpoints, md)) {
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: spacers.getSpacer(3xs);
164
- top: spacers.getSpacer(3xs);
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 palette.$black;
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 breakpoints.tiny-screens-media-query {
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: spacers.getSpacer(xl) spacers.getSpacer(m) spacers.getSpacer(2xs);
194
+ padding: getSpacer(xl) getSpacer(m) getSpacer(2xs);
195
195
 
196
- @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
197
- padding: spacers.getSpacer(xl) spacers.getSpacer(xl) spacers.getSpacer(2xs);
196
+ @media (min-width: map.get($grid-breakpoints, md)) {
197
+ padding: getSpacer(xl) getSpacer(xl) getSpacer(2xs);
198
198
  }
199
199
 
200
- @include breakpoints.tiny-screens-media-query {
201
- padding: spacers.getSpacer(2xs) spacers.getSpacer(2xs) spacers.getSpacer(4xs);
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: spacers.getSpacer(l) spacers.getSpacer(m) spacers.getSpacer(2xs);
206
+ padding: getSpacer(l) getSpacer(m) getSpacer(2xs);
207
207
 
208
- @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
209
- padding: spacers.getSpacer(xl) spacers.getSpacer(m) spacers.getSpacer(2xs);
208
+ @media (min-width: map.get($grid-breakpoints, md)) {
209
+ padding: getSpacer(xl) getSpacer(m) getSpacer(2xs);
210
210
  }
211
211
 
212
- @include breakpoints.tiny-screens-media-query {
213
- padding: spacers.getSpacer(2xs) spacers.getSpacer(3xs) spacers.getSpacer(4xs);
212
+ @include tiny-screens-media-query {
213
+ padding: getSpacer(2xs) getSpacer(3xs) getSpacer(4xs);
214
214
  }
215
215
  }
216
216
  &--large#{&}--image {
217
- padding: spacers.getSpacer(xl) spacers.getSpacer(2xs) spacers.getSpacer(l);
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-settings.$font-size-xs;
244
- padding-top: spacers.getSpacer(s);
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: spacers.getSpacer(l) spacers.getSpacer(m) 0;
261
+ padding: getSpacer(l) getSpacer(m) 0;
262
262
 
263
- @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
264
- padding: spacers.getSpacer(l) spacers.getSpacer(xl) 0;
263
+ @media (min-width: map.get($grid-breakpoints, md)) {
264
+ padding: getSpacer(l) getSpacer(xl) 0;
265
265
  }
266
266
 
267
- @include breakpoints.tiny-screens-media-query {
268
- padding: spacers.getSpacer(2xs) spacers.getSpacer(2xs) 0;
267
+ @include tiny-screens-media-query {
268
+ padding: getSpacer(2xs) getSpacer(2xs) 0;
269
269
  }
270
270
  }
271
271
 
272
272
  &--medium {
273
- padding: spacers.getSpacer(m) spacers.getSpacer(m) 0;
273
+ padding: getSpacer(m) getSpacer(m) 0;
274
274
 
275
- @include breakpoints.tiny-screens-media-query {
276
- padding: spacers.getSpacer(2xs) spacers.getSpacer(2xs) 0;
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
- @use '../../scss/spacers' as spacers;
3
- @use '../../scss/font-settings' as font-settings;
4
- @use '../../scss/palette' as palette;
5
- @use '../AnchorLink/styles.module' as anchorlink;
6
- @use '../../scss/breakpoints' as breakpoints;
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: spacers.getSpacer(2xs) spacers.getSpacer(s) spacers.getSpacer(2xs) spacers.getSpacer(2xs);
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(breakpoints.$grid-breakpoints, md)) {
17
- padding-left: spacers.getSpacer(s);
18
- padding-right: spacers.getSpacer(m);
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: spacers.getSpacer(m);
20
+ margin-right: getSpacer(m);
21
21
  }
22
22
  }
23
23
 
24
24
  &--compact {
25
25
  width: fit-content;
26
- font-size: font-settings.$font-size-xs;
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(breakpoints.$grid-breakpoints, md)) {
31
- padding-left: spacers.getSpacer(2xs);
32
- padding-right: spacers.getSpacer(s);
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: spacers.getSpacer(2xs);
40
+ margin-right: getSpacer(2xs);
41
41
  }
42
42
 
43
43
  &--dismissable {
44
- padding: spacers.getSpacer(2xs) spacers.getSpacer(2xs) spacers.getSpacer(m);
44
+ padding: getSpacer(2xs) getSpacer(2xs) getSpacer(m);
45
45
  }
46
46
 
47
47
  &--small {
48
- max-width: map.get(breakpoints.$grid-breakpoints, sm);
48
+ max-width: map.get($grid-breakpoints, sm);
49
49
  }
50
50
 
51
51
  &--medium {
52
- max-width: map.get(breakpoints.$grid-breakpoints, md);
52
+ max-width: map.get($grid-breakpoints, md);
53
53
  }
54
54
 
55
55
  &--large {
56
- max-width: map.get(breakpoints.$grid-breakpoints, lg);
56
+ max-width: map.get($grid-breakpoints, lg);
57
57
  }
58
58
 
59
59
  &--info {
60
- border: 0.125rem solid palette.$blueberry700;
61
- background-color: palette.$blueberry50;
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 palette.$banana700;
75
- background-color: palette.$banana50;
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 palette.$cherry700;
89
- background-color: palette.$cherry50;
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 palette.$kiwi900;
103
- background-color: palette.$kiwi50;
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: spacers.getSpacer(2xs);
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.anchorlink;
126
- @include anchorlink.anchorlink-icon;
125
+ @include anchorlink;
126
+ @include anchorlink-icon;
127
127
  }
128
128
  }
129
129
 
130
130
  &__label,
131
131
  &__children {
132
- font-size: font-settings.$font-size-xs;
133
- line-height: font-settings.$lineheight-size-xs;
132
+ font-size: $font-size-xs;
133
+ line-height: $lineheight-size-xs;
134
134
  margin: 0;
135
135
 
136
- @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
137
- font-size: font-settings.$font-size-sm;
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: spacers.getSpacer(2xs) 0 0;
144
+ margin: getSpacer(2xs) 0 0;
145
145
 
146
146
  &--compact {
147
- font-size: font-settings.$font-size-xs;
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: spacers.getSpacer(3xs) 0;
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: spacers.getSpacer(2xs) 0 0;
174
+ margin: getSpacer(2xs) 0 0;
175
175
 
176
- @media (max-width: map.get(breakpoints.$grid-breakpoints, lg)) {
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: spacers.getSpacer(xs);
191
+ padding-bottom: getSpacer(xs);
192
192
  }
193
193
  }
194
194