@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
package/scss/_input.scss CHANGED
@@ -1,8 +1,5 @@
1
1
  @use 'sass:map';
2
- @use './palette' as palette;
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-settings.$font-size-sm;
10
+ font-size: $font-size-sm;
14
11
  width: 100%;
15
- border: 2px solid palette.$neutral700;
12
+ border: 2px solid $neutral700;
16
13
  outline: none;
17
- background: palette.$white;
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: spacers.getSpacer(2xs) 0;
25
+ padding: getSpacer(2xs) 0;
29
26
 
30
27
  svg:first-of-type {
31
- padding-left: spacers.getSpacer(2xs);
28
+ padding-left: getSpacer(2xs);
32
29
  }
33
30
 
34
31
  svg:last-of-type {
35
- padding-right: spacers.getSpacer(2xs);
32
+ padding-right: getSpacer(2xs);
36
33
  }
37
34
  }
38
35
 
39
36
  &:focus-within {
40
- background: palette.$white;
41
- border-color: palette.$neutral900;
42
- box-shadow: 0 0 0 2px palette.$neutral900;
37
+ background: $white;
38
+ border-color: $neutral900;
39
+ box-shadow: 0 0 0 2px $neutral900;
43
40
  }
44
41
 
45
42
  &:hover {
46
- background: palette.$neutral50;
47
- border-color: palette.$neutral700;
48
- box-shadow: 0 0 0 1px palette.$neutral700;
43
+ background: $neutral50;
44
+ border-color: $neutral700;
45
+ box-shadow: 0 0 0 1px $neutral700;
49
46
 
50
47
  &:focus-within {
51
- border-color: palette.$black;
52
- box-shadow: 0 0 0 2px palette.$black;
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: palette.$blueberry500;
54
+ border-color: $blueberry500;
58
55
 
59
56
  &:hover {
60
- background: palette.$blueberry50;
61
- box-shadow: 0 0 0 1px palette.$blueberry500;
62
- border-color: palette.$blueberry500;
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: palette.$white;
67
- border-color: palette.$neutral900;
68
- box-shadow: 0 0 0 2px palette.$neutral900;
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: palette.$blueberry900;
70
+ border-color: $blueberry900;
74
71
 
75
72
  &:hover {
76
- background: palette.$blueberry50;
77
- border-color: palette.$blueberry900;
78
- box-shadow: 0 0 0 1px palette.$blueberry900;
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: palette.$white;
83
- border-color: palette.$neutral900;
84
- box-shadow: 0 0 0 2px palette.$neutral900;
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: palette.$cherry600;
86
+ border-color: $cherry600;
90
87
 
91
88
  &:hover {
92
- background: palette.$cherry100;
93
- border-color: palette.$cherry600;
94
- box-shadow: 0 0 0 2px palette.$cherry600;
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: palette.$white;
99
- border-color: palette.$neutral900;
100
- box-shadow: 0 0 0 2px palette.$neutral900;
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: palette.$neutral100;
105
+ background: $neutral100;
109
106
  }
110
107
 
111
108
  &:focus-within {
112
- background: palette.$white;
109
+ background: $white;
113
110
  }
114
111
  }
115
112
  &--transparent#{&}--on-blueberry {
116
113
  &:hover {
117
- background: palette.$blueberry100;
114
+ background: $blueberry100;
118
115
  }
119
116
 
120
117
  &:focus-within {
121
- background: palette.$white;
118
+ background: $white;
122
119
  }
123
120
  }
124
121
 
125
122
  &--disabled {
126
123
  background: transparent;
127
- border-color: palette.$neutral600;
124
+ border-color: $neutral600;
128
125
  border-style: dashed;
129
- color: palette.$neutral700;
126
+ color: $neutral700;
130
127
 
131
128
  &:hover {
132
129
  background: transparent;
133
- border-color: palette.$neutral600;
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-settings.$font-size-sm;
142
- padding: 0 spacers.getSpacer(2xs);
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(breakpoints.$grid-breakpoints, md)) {
149
- font-size: font-settings.$font-size-md;
145
+ @media (min-width: map.get($grid-breakpoints, md)) {
146
+ font-size: $font-size-md;
150
147
  }
151
148
 
152
149
  &::placeholder {
153
- color: palette.$neutral500;
150
+ color: $neutral500;
154
151
  }
155
152
 
156
153
  &--disabled {
157
- color: palette.$neutral700;
154
+ color: $neutral700;
158
155
  }
159
156
 
160
157
  &:first-child {
161
- padding-left: spacers.getSpacer(s);
158
+ padding-left: getSpacer(s);
162
159
  }
163
160
 
164
161
  &:last-child {
165
- padding-right: spacers.getSpacer(s);
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
- @use 'palette' as palette;
3
- @use 'breakpoints' as breakpoints;
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(breakpoints.$grid-breakpoints, lg) !important;
18
+ min-width: map.get($grid-breakpoints, lg) !important;
19
19
  }
20
20
 
21
21
  .container {
22
- min-width: map.get(breakpoints.$grid-breakpoints, lg) !important;
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 palette.$neutral500;
35
+ border: 1px solid $neutral500;
36
36
  page-break-inside: avoid;
37
37
  }
38
38
 
package/scss/_reset.scss CHANGED
@@ -1,4 +1,4 @@
1
- @import 'normalize.css/normalize.css';
1
+ @import 'normalize.css/normalize';
2
2
 
3
3
  /** Fiks for iOS og Safari 15 */
4
4
  button,
@@ -1,8 +1,8 @@
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 *;
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';
@@ -1,4 +1,4 @@
1
- @use './breakpoints' as *;
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/_scss#L16C1-L17C30
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
- @use './spacers' as spacers;
3
- @use './palette' as palette;
4
- @use './font-mixins' as fonts;
5
- @use './font-settings' as font-settings;
6
- @use './breakpoints' as breakpoints;
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 fonts.title-feature;
15
+ @include title-feature;
17
16
  }
18
17
 
19
18
  .focused-content {
20
- font-size: font-settings.$font-size-sm;
21
- line-height: font-settings.$lineheight-size-sm;
19
+ font-size: $font-size-sm;
20
+ line-height: $lineheight-size-sm;
22
21
  }
23
22
 
24
23
  .title1 {
25
- @include fonts.title1;
24
+ @include title1;
26
25
  }
27
26
 
28
27
  .title2 {
29
- @include fonts.title2;
28
+ @include title2;
30
29
  }
31
30
 
32
31
  .title3 {
33
- @include fonts.title3;
32
+ @include title3;
34
33
  }
35
34
 
36
35
  .title4 {
37
- @include fonts.title4;
36
+ @include title4;
38
37
  }
39
38
 
40
39
  .title5 {
41
- @include fonts.title5;
40
+ @include title5;
42
41
  }
43
42
 
44
43
  .title6 {
45
- @include fonts.title6;
44
+ @include title6;
46
45
  }
47
46
 
48
47
  .body {
49
- @include fonts.body;
48
+ @include body;
50
49
  }
51
50
 
52
51
  .preamble {
53
- @include fonts.preamble;
52
+ @include preamble;
54
53
  }
55
54
 
56
55
  .legend {
57
- @include fonts.legend;
56
+ @include legend;
58
57
  }
59
58
 
60
59
  .label {
61
- @include fonts.label;
60
+ @include label;
62
61
  }
63
62
 
64
63
  .label-subdued {
65
- @include fonts.label-subdued;
64
+ @include label-subdued;
66
65
  }
67
66
 
68
67
  .sublabel {
69
- @include fonts.sublabel;
68
+ @include sublabel;
70
69
  }
71
70
 
72
71
  .sublabel-subdued {
73
- @include fonts.sublabel-subdued;
72
+ @include sublabel-subdued;
74
73
  }
75
74
 
76
75
  .compact-data {
77
- @include fonts.compact-data;
76
+ @include compact-data;
78
77
  }
79
78
 
80
79
  .table-cell {
81
- @include fonts.table-cell;
80
+ @include table-cell;
82
81
  }
83
82
 
84
83
  .strong {
85
- font-size: font-settings.$font-size-sm;
86
- line-height: font-settings.$lineheight-size-sm;
84
+ font-size: $font-size-sm;
85
+ line-height: $lineheight-size-sm;
87
86
 
88
- @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
89
- font-size: font-settings.$font-size-md;
90
- line-height: font-settings.$lineheight-size-md;
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-settings.$font-size-sm;
96
- line-height: font-settings.$lineheight-size-sm;
94
+ font-size: $font-size-sm;
95
+ line-height: $lineheight-size-sm;
97
96
 
98
- @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
99
- font-size: font-settings.$font-size-md;
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 fonts.status-timestamp;
103
+ @include status-timestamp;
105
104
  }
106
105
 
107
106
  .image-caption {
108
- @include fonts.image-caption;
107
+ @include image-caption;
109
108
  }
110
109
 
111
110
  .image-credit {
112
- @include fonts.image-credit;
111
+ @include image-credit;
113
112
  }
114
113
 
115
114
  .input-text {
116
- @include fonts.input-text;
115
+ @include input-text;
117
116
  }
118
117
 
119
118
  .input-text-large {
120
- @include fonts.input-text-large;
119
+ @include input-text-large;
121
120
  }
122
121
 
123
122
  .text-list {
124
- @include fonts.text-list;
123
+ @include text-list;
125
124
  }
126
125
 
127
126
  .definition-list-type {
128
- @include fonts.definition-list-type;
127
+ @include definition-list-type;
129
128
  }
130
129
 
131
130
  .definition-list-data {
132
- @include fonts.definition-list-data;
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: palette.$blueberry600;
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: palette.$blueberry400;
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: palette.$blueberry700;
153
- background-color: palette.$blueberry50;
154
- text-decoration-color: palette.$blueberry600;
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 palette.$black;
158
+ border: 0.15rem solid $black;
160
159
  }
161
160
 
162
161
  &[target='_blank'] {