@helsenorge/designsystem-react 5.0.0-beta.0 → 5.0.0-beta.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 +36 -3
- package/Close.js +1 -1
- package/Close.js.map +1 -1
- package/HighlightBox.js +2 -0
- package/HighlightBox.js.map +1 -0
- package/ListHeader.js +1 -1
- package/ListHeader.js.map +1 -1
- package/Panel.js +1 -1
- package/Panel.js.map +1 -1
- package/README.md +9 -51
- package/Table.js +1 -1
- package/Table.js.map +1 -1
- package/TableBody.js +1 -1
- package/TableBody.js.map +1 -1
- package/TableExpandedRow.js +1 -1
- package/TableExpandedRow.js.map +1 -1
- package/TableHead.js +1 -1
- package/TableHead.js.map +1 -1
- package/TableRow.js +1 -1
- package/TableRow.js.map +1 -1
- package/Textarea.js +1 -1
- package/Textarea.js.map +1 -1
- package/components/ButtonWithModal/index.js +1 -1
- package/components/ButtonWithModal/index.js.map +1 -1
- package/components/Checkbox/styles.module.scss +13 -0
- package/components/Close/Close.d.ts +0 -2
- package/components/Close/Close.d.ts.map +1 -1
- package/components/Close/componentdata.json +1 -1
- package/components/Close/index.js +1 -1
- package/components/DictionaryTrigger/DictionaryTrigger.d.ts +22 -0
- package/components/DictionaryTrigger/DictionaryTrigger.d.ts.map +1 -0
- package/components/DictionaryTrigger/componentdata.json +1 -0
- package/components/DictionaryTrigger/index.d.ts +4 -0
- package/components/DictionaryTrigger/index.d.ts.map +1 -0
- package/components/DictionaryTrigger/index.js +2 -0
- package/components/DictionaryTrigger/index.js.map +1 -0
- package/components/DictionaryTrigger/styles.module.scss +41 -0
- package/components/DictionaryTrigger/styles.module.scss.d.ts +9 -0
- package/components/ExpanderHierarchy/ExpanderButton.d.ts.map +1 -1
- package/components/ExpanderHierarchy/expander.module.scss +14 -7
- package/components/ExpanderHierarchy/expander.module.scss.d.ts +2 -0
- package/components/ExpanderHierarchy/index.js +1 -1
- package/components/ExpanderHierarchy/index.js.map +1 -1
- package/components/HelpBubble/index.js +1 -1
- package/components/HelpBubbleExample/index.js +1 -1
- package/components/HelpPanel/HelpPanel.d.ts +17 -0
- package/components/HelpPanel/HelpPanel.d.ts.map +1 -0
- package/components/HelpPanel/componentdata.json +1 -0
- package/components/HelpPanel/index.d.ts +4 -0
- package/components/HelpPanel/index.d.ts.map +1 -0
- package/components/HelpPanel/index.js +2 -0
- package/components/HelpPanel/index.js.map +1 -0
- package/components/HelpPanel/styles.module.scss +5 -0
- package/components/HelpPanel/styles.module.scss.d.ts +9 -0
- package/components/HighlightBox/HighlightBox.d.ts +7 -0
- package/components/HighlightBox/HighlightBox.d.ts.map +1 -1
- package/components/HighlightBox/componentdata.json +1 -1
- package/components/HighlightBox/index.js +1 -1
- package/components/HighlightBox/index.js.map +1 -1
- package/components/HighlightBox/styles.module.scss +15 -0
- package/components/HighlightBox/styles.module.scss.d.ts +2 -0
- package/components/Label/componentdata.json +1 -1
- package/components/Modal/index.js +1 -1
- package/components/NotificationPanel/index.js +1 -1
- package/components/NotificationPanel/index.js.map +1 -1
- package/components/Panel/Panel.d.ts +3 -1
- package/components/Panel/Panel.d.ts.map +1 -1
- package/components/Panel/componentdata.json +1 -1
- package/components/Panel/styles.module.scss +1 -0
- package/components/PopMenu/PopMenu.d.ts.map +1 -1
- package/components/PopMenu/index.js +1 -1
- package/components/PopMenu/index.js.map +1 -1
- package/components/RadioButton/styles.module.scss +13 -0
- package/components/ServiceMessage/ServiceMessage.d.ts +6 -3
- package/components/ServiceMessage/ServiceMessage.d.ts.map +1 -1
- package/components/ServiceMessage/componentdata.json +1 -1
- package/components/ServiceMessage/index.js +1 -1
- package/components/ServiceMessage/index.js.map +1 -1
- package/components/ServiceMessage/styles.module.scss +139 -238
- package/components/ServiceMessage/styles.module.scss.d.ts +17 -34
- package/components/Table/styles.module.scss +2 -2
- package/components/Tag/styles.module.scss +0 -15
- package/components/Tooltip/index.js +1 -1
- package/components/TooltipExample/index.js +1 -1
- package/components/Trigger/HelpSign.d.ts +5 -0
- package/components/Trigger/HelpSign.d.ts.map +1 -0
- package/components/Trigger/InfoSignStroke.d.ts +5 -0
- package/components/Trigger/InfoSignStroke.d.ts.map +1 -0
- package/components/Trigger/Trigger.d.ts +41 -0
- package/components/Trigger/Trigger.d.ts.map +1 -0
- package/components/Trigger/componentdata.json +1 -0
- package/components/Trigger/index.d.ts +4 -0
- package/components/Trigger/index.d.ts.map +1 -0
- package/components/Trigger/index.js +2 -0
- package/components/Trigger/index.js.map +1 -0
- package/components/Trigger/styles.module.scss +85 -0
- package/components/Trigger/styles.module.scss.d.ts +14 -0
- package/constants.d.ts +2 -0
- package/constants.d.ts.map +1 -1
- package/constants.js +1 -1
- package/constants.js.map +1 -1
- package/package.json +4 -1
- package/scss/_palette.scss +15 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
1
2
|
@import '../../scss/spacers';
|
|
2
3
|
@import '../../scss/palette';
|
|
3
4
|
@import '../../scss/breakpoints';
|
|
@@ -5,322 +6,222 @@
|
|
|
5
6
|
@import '../../scss/grid';
|
|
6
7
|
|
|
7
8
|
.service-message {
|
|
8
|
-
|
|
9
|
+
$servicemessage: &;
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
background-color: $kiwi50;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
&--info {
|
|
16
|
-
background-color: $blueberry50;
|
|
17
|
-
}
|
|
11
|
+
border-width: 1px;
|
|
12
|
+
border-bottom-style: solid;
|
|
18
13
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&--alert {
|
|
24
|
-
background-color: $cherry50;
|
|
25
|
-
}
|
|
14
|
+
&:first-of-type {
|
|
15
|
+
border-top-style: solid;
|
|
26
16
|
}
|
|
27
17
|
|
|
28
|
-
|
|
29
|
-
|
|
18
|
+
&--success {
|
|
19
|
+
background-color: $kiwi50;
|
|
30
20
|
|
|
31
|
-
|
|
32
|
-
|
|
21
|
+
&:hover {
|
|
22
|
+
background-color: rgba-to-rgb(rgba($kiwi500, 0.1), $kiwi50);
|
|
33
23
|
}
|
|
34
24
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
@include make-container-max-widths;
|
|
39
|
-
}
|
|
25
|
+
&#{$servicemessage},
|
|
26
|
+
&#{$servicemessage}__label-container {
|
|
27
|
+
border-color: $kiwi900;
|
|
40
28
|
}
|
|
29
|
+
}
|
|
41
30
|
|
|
42
|
-
|
|
43
|
-
|
|
31
|
+
&--info {
|
|
32
|
+
background-color: $blueberry50;
|
|
44
33
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&--expanded {
|
|
50
|
-
border-bottom: 0.0625rem solid $kiwi900;
|
|
51
|
-
}
|
|
34
|
+
&:hover {
|
|
35
|
+
background-color: rgba-to-rgb(rgba($blueberry500, 0.1), $blueberry50);
|
|
52
36
|
}
|
|
53
37
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
&:hover {
|
|
58
|
-
background-color: rgb(24 128 151 / 10%);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&--expanded {
|
|
62
|
-
border-bottom: 0.0625rem solid $blueberry700;
|
|
63
|
-
}
|
|
38
|
+
&#{$servicemessage},
|
|
39
|
+
&#{$servicemessage}__label-container {
|
|
40
|
+
border-color: $blueberry700;
|
|
64
41
|
}
|
|
42
|
+
}
|
|
65
43
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
&:hover {
|
|
70
|
-
background-color: rgb(221 171 6 / 10%);
|
|
71
|
-
}
|
|
44
|
+
&--warn {
|
|
45
|
+
background-color: $banana50;
|
|
72
46
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
47
|
+
&:hover {
|
|
48
|
+
background-color: rgba-to-rgb(rgba($banana500, 0.1), $banana50);
|
|
76
49
|
}
|
|
77
50
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
&:hover {
|
|
82
|
-
background-color: rgb(200 53 33 / 10%);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
&--expanded {
|
|
86
|
-
border-bottom: 0.0625rem solid $cherry700;
|
|
87
|
-
}
|
|
51
|
+
&#{$servicemessage},
|
|
52
|
+
&#{$servicemessage}__label-container {
|
|
53
|
+
border-color: $banana700;
|
|
88
54
|
}
|
|
55
|
+
}
|
|
89
56
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
border: 0.0625rem solid $kiwi900;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&--info {
|
|
96
|
-
border: 0.0625rem solid $blueberry700;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
&--warn {
|
|
100
|
-
border: 0.0625rem solid $banana700;
|
|
101
|
-
}
|
|
57
|
+
&--alert {
|
|
58
|
+
background-color: $cherry50;
|
|
102
59
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
60
|
+
&:hover {
|
|
61
|
+
background-color: rgba-to-rgb(rgba($cherry500, 0.1), $cherry50);
|
|
106
62
|
}
|
|
107
63
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
&--width {
|
|
115
|
-
width: 100%;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
&--not-first {
|
|
119
|
-
border-top-color: transparent;
|
|
120
|
-
border-right-color: transparent;
|
|
121
|
-
border-left-color: transparent;
|
|
122
|
-
}
|
|
64
|
+
&#{$servicemessage},
|
|
65
|
+
&#{$servicemessage}__label-container {
|
|
66
|
+
border-color: $cherry700;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
123
69
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
70
|
+
&__container {
|
|
71
|
+
@include make-container;
|
|
72
|
+
@include make-container-max-widths;
|
|
73
|
+
}
|
|
128
74
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
padding-bottom: 0.3125rem;
|
|
75
|
+
&__row {
|
|
76
|
+
@include make-row;
|
|
77
|
+
}
|
|
133
78
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}
|
|
79
|
+
&__col {
|
|
80
|
+
@include make-col-ready;
|
|
81
|
+
@include make-col(12);
|
|
82
|
+
}
|
|
139
83
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
84
|
+
&__label-container {
|
|
85
|
+
position: relative;
|
|
86
|
+
padding-top: getSpacer(3xs);
|
|
87
|
+
padding-bottom: getSpacer(3xs);
|
|
143
88
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
89
|
+
@media (min-width: map-get($grid-breakpoints, lg)) {
|
|
90
|
+
padding-top: getSpacer(2xs);
|
|
91
|
+
padding-bottom: getSpacer(2xs);
|
|
92
|
+
}
|
|
147
93
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
94
|
+
&--has-expander:has(:focus-visible) {
|
|
95
|
+
box-shadow: inset 0 0 0 2px $black;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
152
98
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
}
|
|
99
|
+
&__label {
|
|
100
|
+
display: flex;
|
|
101
|
+
width: 100%;
|
|
102
|
+
align-items: center;
|
|
103
|
+
gap: getSpacer(2xs);
|
|
159
104
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
}
|
|
105
|
+
@media (min-width: map-get($grid-breakpoints, md)) {
|
|
106
|
+
gap: getSpacer(m);
|
|
163
107
|
}
|
|
164
108
|
}
|
|
165
109
|
|
|
166
|
-
&
|
|
167
|
-
|
|
168
|
-
|
|
110
|
+
&__title {
|
|
111
|
+
width: 100%;
|
|
112
|
+
font-weight: 700;
|
|
169
113
|
font-size: $font-size-xs;
|
|
170
114
|
line-height: 1.25rem;
|
|
171
|
-
padding: getSpacer(3xs) 0 getSpacer(xs) 0;
|
|
172
115
|
|
|
173
116
|
@media (min-width: map-get($grid-breakpoints, md)) {
|
|
174
|
-
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
@media (min-width: map-get($grid-breakpoints, lg)) {
|
|
178
|
-
padding: getSpacer(2xs) 0 getSpacer(s) 0;
|
|
179
|
-
margin: 0 4.5625rem;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
&__info {
|
|
183
|
-
display: block;
|
|
184
|
-
font-size: $font-size-xs;
|
|
185
|
-
line-height: 1.25rem;
|
|
186
|
-
|
|
187
|
-
@media (min-width: map-get($grid-breakpoints, lg)) {
|
|
188
|
-
padding-top: getSpacer(xs);
|
|
189
|
-
line-height: 1.625rem;
|
|
190
|
-
font-size: $font-size-sm;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
&--smaller {
|
|
194
|
-
display: block;
|
|
195
|
-
font-size: 0.875rem;
|
|
196
|
-
padding-top: getSpacer(2xs);
|
|
197
|
-
line-height: 1.25rem;
|
|
198
|
-
|
|
199
|
-
@media (min-width: map-get($grid-breakpoints, lg)) {
|
|
200
|
-
padding-top: getSpacer(xs);
|
|
201
|
-
font-size: $font-size-xs;
|
|
202
|
-
line-height: $lineheight-size-xs;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
117
|
+
font-size: $font-size-sm;
|
|
205
118
|
}
|
|
119
|
+
}
|
|
206
120
|
|
|
207
|
-
|
|
208
|
-
|
|
121
|
+
&__toggle {
|
|
122
|
+
all: unset;
|
|
209
123
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
124
|
+
// Triks for at hele labelen skal trigge klikk på knappen
|
|
125
|
+
&::after {
|
|
126
|
+
inset: 0;
|
|
127
|
+
content: '';
|
|
128
|
+
position: absolute;
|
|
214
129
|
}
|
|
215
130
|
}
|
|
216
131
|
|
|
217
|
-
&
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
132
|
+
&__content {
|
|
133
|
+
margin-left: calc(38px + getSpacer(2xs));
|
|
134
|
+
margin-right: calc(38px + getSpacer(2xs));
|
|
135
|
+
padding-top: getSpacer(xs);
|
|
136
|
+
padding-bottom: getSpacer(xs);
|
|
222
137
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
138
|
+
@media (min-width: map-get($grid-breakpoints, md)) {
|
|
139
|
+
margin-left: calc(38px + getSpacer(m));
|
|
140
|
+
margin-right: calc(38px + getSpacer(m));
|
|
226
141
|
}
|
|
227
142
|
|
|
228
|
-
|
|
229
|
-
margin-left:
|
|
230
|
-
|
|
231
|
-
|
|
143
|
+
@media (min-width: map-get($grid-breakpoints, lg)) {
|
|
144
|
+
margin-left: calc(48px + getSpacer(m));
|
|
145
|
+
margin-right: calc(48px + getSpacer(m));
|
|
146
|
+
padding-top: getSpacer(2xs);
|
|
147
|
+
padding-bottom: getSpacer(s);
|
|
232
148
|
}
|
|
233
149
|
}
|
|
234
150
|
|
|
235
|
-
&
|
|
236
|
-
text-align: left;
|
|
237
|
-
font-weight: 700;
|
|
151
|
+
&__info {
|
|
238
152
|
font-size: $font-size-xs;
|
|
239
153
|
line-height: 1.25rem;
|
|
154
|
+
margin: 0;
|
|
240
155
|
|
|
241
|
-
@media (min-width: map-get($grid-breakpoints,
|
|
156
|
+
@media (min-width: map-get($grid-breakpoints, lg)) {
|
|
157
|
+
margin-top: getSpacer(xs);
|
|
158
|
+
line-height: 1.625rem;
|
|
242
159
|
font-size: $font-size-sm;
|
|
243
160
|
}
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
&__top-row {
|
|
247
|
-
line-height: $lineheight-size-xs;
|
|
248
|
-
align-items: center;
|
|
249
161
|
|
|
250
|
-
|
|
251
|
-
font-size:
|
|
252
|
-
|
|
253
|
-
}
|
|
162
|
+
&--extra {
|
|
163
|
+
font-size: 0.875rem;
|
|
164
|
+
margin-top: getSpacer(2xs);
|
|
254
165
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
166
|
+
@media (min-width: map-get($grid-breakpoints, lg)) {
|
|
167
|
+
margin-top: getSpacer(xs);
|
|
168
|
+
font-size: $font-size-xs;
|
|
169
|
+
line-height: $lineheight-size-xs;
|
|
170
|
+
}
|
|
259
171
|
}
|
|
260
172
|
}
|
|
261
173
|
|
|
262
|
-
&
|
|
174
|
+
&__actions {
|
|
263
175
|
display: flex;
|
|
264
176
|
justify-content: space-between;
|
|
265
177
|
flex-flow: column wrap;
|
|
266
|
-
padding: getSpacer(2xs) 0 0 0;
|
|
267
178
|
gap: getSpacer(2xs);
|
|
179
|
+
margin-top: getSpacer(2xs);
|
|
268
180
|
|
|
269
181
|
@media (min-width: map-get($grid-breakpoints, sm)) {
|
|
270
182
|
flex-direction: row;
|
|
271
183
|
}
|
|
272
184
|
|
|
273
185
|
@media (min-width: map-get($grid-breakpoints, lg)) {
|
|
274
|
-
|
|
186
|
+
margin-top: getSpacer(s);
|
|
275
187
|
}
|
|
188
|
+
}
|
|
276
189
|
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
190
|
+
&__action {
|
|
191
|
+
display: flex;
|
|
192
|
+
align-items: center;
|
|
193
|
+
border: none;
|
|
194
|
+
width: fit-content;
|
|
195
|
+
color: $blueberry700;
|
|
196
|
+
font-weight: 600;
|
|
197
|
+
font-size: $font-size-xs;
|
|
198
|
+
line-height: 1.25rem;
|
|
199
|
+
background-color: transparent;
|
|
200
|
+
text-decoration: none;
|
|
201
|
+
padding: 0.5rem;
|
|
202
|
+
margin-left: -0.5rem;
|
|
203
|
+
gap: getSpacer(xs);
|
|
204
|
+
|
|
205
|
+
&:hover,
|
|
206
|
+
&:active {
|
|
207
|
+
background-color: rgb(88 170 187 / 10%);
|
|
281
208
|
}
|
|
282
209
|
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
align-items: center;
|
|
286
|
-
border: none;
|
|
287
|
-
width: fit-content;
|
|
288
|
-
color: $blueberry700;
|
|
289
|
-
font-weight: 600;
|
|
290
|
-
font-size: $font-size-xs;
|
|
291
|
-
line-height: 1.25rem;
|
|
210
|
+
&:focus-visible {
|
|
211
|
+
box-shadow: 0 0 0 2px $black;
|
|
292
212
|
background-color: transparent;
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
margin-left: -0.5rem;
|
|
296
|
-
|
|
297
|
-
&:hover,
|
|
298
|
-
&:active {
|
|
299
|
-
background-color: rgb(88 170 187 / 10%);
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
&:focus {
|
|
303
|
-
box-shadow: 0 0 0 2px $black;
|
|
304
|
-
background-color: transparent;
|
|
305
|
-
border-radius: 0;
|
|
306
|
-
border: 0;
|
|
307
|
-
outline: none;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
svg {
|
|
311
|
-
margin-left: getSpacer(xs);
|
|
312
|
-
}
|
|
213
|
+
border: 0;
|
|
214
|
+
outline: none;
|
|
313
215
|
}
|
|
314
216
|
|
|
315
|
-
|
|
316
|
-
|
|
217
|
+
&--close {
|
|
218
|
+
@media (min-width: map-get($grid-breakpoints, lg)) {
|
|
317
219
|
margin-left: auto;
|
|
318
|
-
padding: 0;
|
|
319
|
-
|
|
320
|
-
svg {
|
|
321
|
-
margin-left: 0;
|
|
322
|
-
}
|
|
323
220
|
}
|
|
324
221
|
}
|
|
325
222
|
}
|
|
223
|
+
|
|
224
|
+
&__close {
|
|
225
|
+
z-index: 1;
|
|
226
|
+
}
|
|
326
227
|
}
|
|
@@ -1,41 +1,24 @@
|
|
|
1
1
|
export type Styles = {
|
|
2
2
|
'service-message': string;
|
|
3
|
-
'service-
|
|
4
|
-
'service-
|
|
5
|
-
'service-
|
|
6
|
-
'service-
|
|
3
|
+
'service-message__action': string;
|
|
4
|
+
'service-message__action--close': string;
|
|
5
|
+
'service-message__actions': string;
|
|
6
|
+
'service-message__close': string;
|
|
7
|
+
'service-message__col': string;
|
|
8
|
+
'service-message__container': string;
|
|
7
9
|
'service-message__content': string;
|
|
8
|
-
'service-
|
|
9
|
-
'service-
|
|
10
|
-
'service-message__content--spacing': string;
|
|
11
|
-
'service-message__icon--expander': string;
|
|
12
|
-
'service-message__icon--signal': string;
|
|
10
|
+
'service-message__info': string;
|
|
11
|
+
'service-message__info--extra': string;
|
|
13
12
|
'service-message__label': string;
|
|
14
|
-
'service-
|
|
15
|
-
'service-
|
|
16
|
-
'service-
|
|
17
|
-
'service-
|
|
18
|
-
'service-
|
|
19
|
-
'service-
|
|
20
|
-
'service-
|
|
21
|
-
'service-
|
|
22
|
-
'service-
|
|
23
|
-
'service-message__wrapper__border--success': string;
|
|
24
|
-
'service-message__wrapper__border--warn': string;
|
|
25
|
-
'service-message__wrapper__btn': string;
|
|
26
|
-
'service-message__wrapper__btn--expanded': string;
|
|
27
|
-
'service-message__wrapper__btn--first': string;
|
|
28
|
-
'service-message__wrapper__btn--not-first': string;
|
|
29
|
-
'service-message__wrapper__btn--width': string;
|
|
30
|
-
'service-message__wrapper--alert': string;
|
|
31
|
-
'service-message__wrapper--alert--expanded': string;
|
|
32
|
-
'service-message__wrapper--info': string;
|
|
33
|
-
'service-message__wrapper--info--expanded': string;
|
|
34
|
-
'service-message__wrapper--inner': string;
|
|
35
|
-
'service-message__wrapper--success': string;
|
|
36
|
-
'service-message__wrapper--success--expanded': string;
|
|
37
|
-
'service-message__wrapper--warn': string;
|
|
38
|
-
'service-message__wrapper--warn--expanded': string;
|
|
13
|
+
'service-message__label-container': string;
|
|
14
|
+
'service-message__label-container--has-expander': string;
|
|
15
|
+
'service-message__row': string;
|
|
16
|
+
'service-message__title': string;
|
|
17
|
+
'service-message__toggle': string;
|
|
18
|
+
'service-message--alert': string;
|
|
19
|
+
'service-message--info': string;
|
|
20
|
+
'service-message--success': string;
|
|
21
|
+
'service-message--warn': string;
|
|
39
22
|
};
|
|
40
23
|
|
|
41
24
|
export type ClassNames = keyof Styles;
|
|
@@ -98,7 +98,7 @@ table .table-body .table-row {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
.table__expanded-row .table__cell {
|
|
101
|
+
.table__expanded-row > .table__cell {
|
|
102
102
|
text-align: left;
|
|
103
103
|
padding: 0.75rem;
|
|
104
104
|
}
|
|
@@ -115,7 +115,7 @@ table .table-body .table-row {
|
|
|
115
115
|
display: block;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
.table__cell:first-child {
|
|
118
|
+
> .table__cell:first-child {
|
|
119
119
|
border-top: 0;
|
|
120
120
|
}
|
|
121
121
|
}
|
|
@@ -4,21 +4,6 @@
|
|
|
4
4
|
@import '../../scss/palette';
|
|
5
5
|
@import '../../scss/font-settings';
|
|
6
6
|
|
|
7
|
-
/**
|
|
8
|
-
* Konverter en gjennomsiktig farge til en ugjennomsiktig farge ved å simulere fargen plassert
|
|
9
|
-
* på en bakgrunnsfarge (f.eks. 50% gjennomsiktig $blueberry200 på hvit bakgrunn).
|
|
10
|
-
*
|
|
11
|
-
* Fra https://makandracards.com/makandra/42500-sass-how-to-convert-an-rgba-color-to-its-rgb-look-alike
|
|
12
|
-
*
|
|
13
|
-
* @param $rgba Farge med alpha-verdi, f.eks. rgba(black, 0.67)
|
|
14
|
-
* @param $background Bakgrunnsfarge. Default: $white
|
|
15
|
-
*
|
|
16
|
-
* @returns Farge uten gjennomsiktighet
|
|
17
|
-
*/
|
|
18
|
-
@function rgba-to-rgb($rgba, $background: $white) {
|
|
19
|
-
@return mix(rgb(red($rgba), green($rgba), blue($rgba)), $background, alpha($rgba) * 100%);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
7
|
.tag {
|
|
23
8
|
$tag: &;
|
|
24
9
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{T as p}from"../../Tooltip.js";import{a as J,b as K}from"../../Tooltip.js";import"react";import"../../TooltipWord.js";import"../../constants.js";import"./TooltipWord/styles.module.scss";import"../../hooks/useDelayedState.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";import"../../HelpBubble.js";import"classnames";import"../../AnchorLink.js";import"../../hooks/useHover.js";import"../../theme/currys/color.js";import"../../theme/index.js";import"../../theme/grid.js";import"../../theme/palette.js";import"../../theme/spacers.js";import"../Icons/Icon.js";import"../Icons/ArrowUpRight.js";import"../AnchorLink/styles.module.scss";import"../../Close.js";import"../../hooks/useBreakpoint.js";import"../Icons/X.js";import"../Close/styles.module.scss";import"../../PopOver.js";import"../../hooks/useInterval.js";import"../../hooks/useIsVisible.js";import"../../hooks/useIntersectionObserver.js";import"../../hooks/useLayoutEvent.js";import"../../utils/debounce.js";import"../../hooks/useSize.js";import"
|
|
1
|
+
import{T as p}from"../../Tooltip.js";import{a as J,b as K}from"../../Tooltip.js";import"react";import"../../TooltipWord.js";import"../../constants.js";import"./TooltipWord/styles.module.scss";import"../../hooks/useDelayedState.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";import"../../HelpBubble.js";import"classnames";import"../../AnchorLink.js";import"../../hooks/useHover.js";import"../../theme/currys/color.js";import"../../theme/index.js";import"../../theme/grid.js";import"../../theme/palette.js";import"../../theme/spacers.js";import"../Icons/Icon.js";import"../Icons/ArrowUpRight.js";import"../AnchorLink/styles.module.scss";import"../../Close.js";import"../../hooks/useBreakpoint.js";import"../../utils/refs.js";import"../Icons/X.js";import"../Close/styles.module.scss";import"../../PopOver.js";import"../../hooks/useInterval.js";import"../../hooks/useIsVisible.js";import"../../hooks/useIntersectionObserver.js";import"../../hooks/useLayoutEvent.js";import"../../utils/debounce.js";import"../../hooks/useSize.js";import"../PopOver/styles.module.scss";import"../HelpBubble/styles.module.scss";export{J as Tooltip,K as TooltipOpenProvider,p as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import t from"react";import{longLoremText as m}from"../../utils/loremtext.js";import{b as i,T as r}from"../../Tooltip.js";import"../../TooltipWord.js";import"../../constants.js";import"../Tooltip/TooltipWord/styles.module.scss";import"../../hooks/useDelayedState.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";import"../../HelpBubble.js";import"classnames";import"../../AnchorLink.js";import"../../hooks/useHover.js";import"../../theme/currys/color.js";import"../../theme/index.js";import"../../theme/grid.js";import"../../theme/palette.js";import"../../theme/spacers.js";import"../Icons/Icon.js";import"../Icons/ArrowUpRight.js";import"../AnchorLink/styles.module.scss";import"../../Close.js";import"../../hooks/useBreakpoint.js";import"../Icons/X.js";import"../Close/styles.module.scss";import"../../PopOver.js";import"../../hooks/useInterval.js";import"../../hooks/useIsVisible.js";import"../../hooks/useIntersectionObserver.js";import"../../hooks/useLayoutEvent.js";import"../../utils/debounce.js";import"../../hooks/useSize.js";import"
|
|
1
|
+
import t from"react";import{longLoremText as m}from"../../utils/loremtext.js";import{b as i,T as r}from"../../Tooltip.js";import"../../TooltipWord.js";import"../../constants.js";import"../Tooltip/TooltipWord/styles.module.scss";import"../../hooks/useDelayedState.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";import"../../HelpBubble.js";import"classnames";import"../../AnchorLink.js";import"../../hooks/useHover.js";import"../../theme/currys/color.js";import"../../theme/index.js";import"../../theme/grid.js";import"../../theme/palette.js";import"../../theme/spacers.js";import"../Icons/Icon.js";import"../Icons/ArrowUpRight.js";import"../AnchorLink/styles.module.scss";import"../../Close.js";import"../../hooks/useBreakpoint.js";import"../../utils/refs.js";import"../Icons/X.js";import"../Close/styles.module.scss";import"../../PopOver.js";import"../../hooks/useInterval.js";import"../../hooks/useIsVisible.js";import"../../hooks/useIntersectionObserver.js";import"../../hooks/useLayoutEvent.js";import"../../utils/debounce.js";import"../../hooks/useSize.js";import"../PopOver/styles.module.scss";import"../HelpBubble/styles.module.scss";const e=o=>t.createElement(i,null,t.createElement(t.Fragment,null,t.createElement(r,{...o},"Et tooltip her.")," "+m,t.createElement("button",null,"Knapp"),"Dette er ",t.createElement(r,{...o},o.children)," som skal ha nærmere forklaring.",m,t.createElement(r,{...o},"Enda et tooltip her."))),J=e;export{J as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HelpSign.d.ts","sourceRoot":"","sources":["../../../src/components/Trigger/HelpSign.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAW,YAAY,EAAE,MAAM,UAAU,CAAC;AAEjD,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAkBpC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InfoSignStroke.d.ts","sourceRoot":"","sources":["../../../src/components/Trigger/InfoSignStroke.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAW,YAAY,EAAE,MAAM,UAAU,CAAC;AAEjD,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAkB1C,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type TriggerVariant = 'help';
|
|
3
|
+
export type TriggerSize = 'medium' | 'large';
|
|
4
|
+
export type TriggerMode = 'onlight' | 'ondark';
|
|
5
|
+
export interface TriggerProps extends Pick<React.InputHTMLAttributes<HTMLButtonElement>, 'onClick' | 'aria-haspopup' | 'aria-controls'> {
|
|
6
|
+
/**
|
|
7
|
+
* Sets aria-label of the trigger. ariaLabel or ariaLabelledById MUST be set!
|
|
8
|
+
*/
|
|
9
|
+
ariaLabel?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Sets aria-labelledby of the trigger. ariaLabel or ariaLabelledById MUST be set!
|
|
12
|
+
*/
|
|
13
|
+
ariaLabelledById?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Controls the icon and color. Default: help.
|
|
16
|
+
*/
|
|
17
|
+
variant?: TriggerVariant;
|
|
18
|
+
/**
|
|
19
|
+
* Changes the design based on the background the trigger is placed on. Default: onlight.
|
|
20
|
+
*/
|
|
21
|
+
mode?: TriggerMode;
|
|
22
|
+
/**
|
|
23
|
+
* Size of the trigger. Default: medium.
|
|
24
|
+
*/
|
|
25
|
+
size?: TriggerSize;
|
|
26
|
+
/**
|
|
27
|
+
* Indicates that the trigger is in use.
|
|
28
|
+
*/
|
|
29
|
+
selected?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Classname will be applied to the button element.
|
|
32
|
+
*/
|
|
33
|
+
className?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Optional test id.
|
|
36
|
+
*/
|
|
37
|
+
testId?: string;
|
|
38
|
+
}
|
|
39
|
+
declare const Trigger: React.ForwardRefExoticComponent<TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
40
|
+
export default Trigger;
|
|
41
|
+
//# sourceMappingURL=Trigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Trigger.d.ts","sourceRoot":"","sources":["../../../src/components/Trigger/Trigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AAEpC,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE7C,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE/C,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,EAAE,SAAS,GAAG,eAAe,GAAG,eAAe,CAAC;IACrI;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AA4BD,QAAA,MAAM,OAAO,wFAmCZ,CAAC;AAIF,eAAe,OAAO,CAAC"}
|