@helsenorge/designsystem-react 3.1.4 → 3.2.1-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 +551 -590
- package/Checkbox.js +1 -1
- package/Checkbox.js.map +1 -1
- package/Input.js +1 -1
- package/Input.js.map +1 -1
- package/Label.js +2 -0
- package/Label.js.map +1 -0
- package/Panel.js +1 -1
- package/Panel.js.map +1 -1
- package/README.md +0 -8
- package/RadioButton.js +1 -1
- package/RadioButton.js.map +1 -1
- package/Select.js +1 -1
- package/Select.js.map +1 -1
- package/StatusDot.js +1 -1
- package/StatusDot.js.map +1 -1
- package/Textarea.js +1 -1
- package/Textarea.js.map +1 -1
- package/components/Button/componentdata.json +1 -1
- package/components/Checkbox/Checkbox.d.ts +3 -3
- package/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/components/Checkbox/componentdata.json +1 -1
- package/components/Checkbox/index.js +1 -1
- package/components/Checkbox/styles.module.scss +223 -59
- package/components/Checkbox/styles.module.scss.d.ts +25 -3
- package/components/Dropdown/componentdata.json +1 -1
- package/components/ErrorWrapper/componentdata.json +1 -1
- package/components/Expander/componentdata.json +1 -1
- package/components/FormExample/FormExample.d.ts.map +1 -1
- package/components/FormExample/index.js +3 -3
- package/components/FormExample/index.js.map +1 -1
- package/components/FormGroup/index.js +1 -1
- package/components/HelpBubbleExample/componentdata.json +1 -1
- package/components/HighlightBox/componentdata.json +1 -1
- package/components/Input/Input.d.ts +2 -8
- package/components/Input/Input.d.ts.map +1 -1
- package/components/Input/componentdata.json +1 -1
- package/components/Input/index.js +1 -1
- package/components/Input/styles.module.scss.d.ts +0 -3
- package/components/Label/Label.d.ts +41 -0
- package/components/Label/Label.d.ts.map +1 -0
- package/components/Label/SubLabel.d.ts +17 -0
- package/components/Label/SubLabel.d.ts.map +1 -0
- package/components/Label/componentdata.json +1 -0
- package/components/Label/index.d.ts +5 -0
- package/components/Label/index.d.ts.map +1 -0
- package/components/Label/index.js +2 -0
- package/components/Label/index.js.map +1 -0
- package/components/Label/styles.module.scss +66 -0
- package/components/Label/styles.module.scss.d.ts +17 -0
- package/components/Panel/Panel.d.ts +2 -0
- package/components/Panel/Panel.d.ts.map +1 -1
- package/components/Panel/componentdata.json +1 -1
- package/components/Panel/styles.module.scss +65 -2
- package/components/Panel/styles.module.scss.d.ts +7 -0
- package/components/PopMenu/componentdata.json +1 -1
- package/components/RadioButton/RadioButton.d.ts +3 -3
- package/components/RadioButton/RadioButton.d.ts.map +1 -1
- package/components/RadioButton/componentdata.json +1 -1
- package/components/RadioButton/index.js +1 -1
- package/components/RadioButton/styles.module.scss +228 -52
- package/components/RadioButton/styles.module.scss.d.ts +15 -3
- package/components/Select/Select.d.ts +2 -2
- package/components/Select/Select.d.ts.map +1 -1
- package/components/Select/componentdata.json +1 -1
- package/components/Select/index.js +1 -1
- package/components/Select/styles.module.scss +0 -22
- package/components/Select/styles.module.scss.d.ts +0 -3
- package/components/ServiceMessage/ServiceMessage.d.ts.map +1 -1
- package/components/ServiceMessage/index.js +1 -1
- package/components/ServiceMessage/index.js.map +1 -1
- package/components/ServiceMessage/styles.module.scss +18 -0
- package/components/ServiceMessage/styles.module.scss.d.ts +4 -0
- package/components/StatusDot/StatusDot.d.ts +9 -0
- package/components/StatusDot/StatusDot.d.ts.map +1 -1
- package/components/StatusDot/componentdata.json +1 -1
- package/components/StatusDot/index.js +1 -1
- package/components/StatusDot/styles.module.scss +14 -3
- package/components/StatusDot/styles.module.scss.d.ts +1 -0
- package/components/Step/componentdata.json +1 -1
- package/components/Table/Table.d.ts.map +1 -1
- package/components/Table/TableBody/TableBody.d.ts +1 -1
- package/components/Table/TableBody/TableBody.d.ts.map +1 -1
- package/components/Table/TableCell/TableCell.d.ts +1 -1
- package/components/Table/TableCell/TableCell.d.ts.map +1 -1
- package/components/Table/TableExpandedRow/TableExpandedRow.d.ts +1 -1
- package/components/Table/TableExpandedRow/TableExpandedRow.d.ts.map +1 -1
- package/components/Table/TableExpanderCell/TableExpanderCell.d.ts +2 -2
- package/components/Table/TableExpanderCell/TableExpanderCell.d.ts.map +1 -1
- package/components/Table/TableHead/TableHead.d.ts +1 -1
- package/components/Table/TableHead/TableHead.d.ts.map +1 -1
- package/components/Table/TableHeadCell/TableHeadCell.d.ts +1 -1
- package/components/Table/TableHeadCell/TableHeadCell.d.ts.map +1 -1
- package/components/Table/TableRow/componentdata.json +1 -1
- package/components/Table/index.js +1 -1
- package/components/Table/index.js.map +1 -1
- package/components/Table/styles.module.scss +0 -2
- package/components/Table/utils.d.ts +8 -0
- package/components/Table/utils.d.ts.map +1 -1
- package/components/Tag/componentdata.json +1 -1
- package/components/Textarea/Textarea.d.ts +2 -6
- package/components/Textarea/Textarea.d.ts.map +1 -1
- package/components/Textarea/componentdata.json +1 -1
- package/components/Textarea/index.js +1 -1
- package/components/Textarea/styles.module.scss.d.ts +0 -3
- package/components/Tooltip/TooltipWord/styles.module.scss +4 -1
- package/components/Tooltip/componentdata.json +1 -1
- package/components/TooltipExample/componentdata.json +1 -1
- package/components/Validation/index.js +1 -1
- 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/hooks/usePseudoClasses.d.ts +12 -0
- package/hooks/usePseudoClasses.d.ts.map +1 -0
- package/hooks/usePseudoClasses.js +2 -0
- package/hooks/usePseudoClasses.js.map +1 -0
- package/package.json +1 -1
- package/scss/_input.scss +6 -28
- package/scss/_spacers.scss +1 -1
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
@import '../../scss/palette';
|
|
5
5
|
@import '../../scss/font-settings';
|
|
6
6
|
|
|
7
|
+
$checkbox-icon-size: 1.625rem;
|
|
8
|
+
|
|
7
9
|
.checkbox-errors {
|
|
8
10
|
font-size: $font-size-sm;
|
|
9
11
|
font-weight: 600;
|
|
@@ -45,47 +47,145 @@
|
|
|
45
47
|
display: flex;
|
|
46
48
|
align-items: flex-start;
|
|
47
49
|
cursor: pointer;
|
|
48
|
-
font-size: $font-size-sm;
|
|
49
|
-
line-height: $lineheight-size-sm;
|
|
50
50
|
|
|
51
51
|
&__text {
|
|
52
|
-
|
|
53
|
-
}
|
|
52
|
+
color: $black;
|
|
54
53
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
&--on-dark {
|
|
55
|
+
color: $white;
|
|
56
|
+
}
|
|
58
57
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
&__big-form {
|
|
59
|
+
&--checked {
|
|
60
|
+
color: $white;
|
|
61
|
+
}
|
|
62
|
+
&--checked#{&}--invalid {
|
|
63
|
+
color: $black;
|
|
64
|
+
}
|
|
65
|
+
&--checked#{&}--disabled {
|
|
66
|
+
color: $neutral700;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
62
69
|
|
|
63
|
-
|
|
64
|
-
|
|
70
|
+
&--disabled {
|
|
71
|
+
color: $neutral700;
|
|
72
|
+
}
|
|
65
73
|
}
|
|
66
74
|
|
|
67
75
|
&--disabled {
|
|
68
76
|
cursor: default;
|
|
69
|
-
color: $neutral400;
|
|
70
77
|
}
|
|
71
78
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
79
|
+
&__big-form {
|
|
80
|
+
&--focus {
|
|
81
|
+
box-shadow: 0 0 0 getSpacer(3xs);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&--on-white {
|
|
85
|
+
background-color: $neutral50;
|
|
86
|
+
|
|
87
|
+
:hover > & {
|
|
88
|
+
background-color: $neutral100;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
&--on-white#{&}--focus {
|
|
92
|
+
color: $neutral500;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&--on-grey {
|
|
96
|
+
background-color: $white;
|
|
97
|
+
|
|
98
|
+
:hover > & {
|
|
99
|
+
background-color: $neutral100;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&--on-grey#{&}--focus {
|
|
104
|
+
color: $neutral500;
|
|
105
|
+
background-color: $white;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&--on-blueberry {
|
|
109
|
+
background-color: $white;
|
|
110
|
+
|
|
111
|
+
:hover > & {
|
|
112
|
+
background-color: $blueberry100;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
&--on-blueberry#{&}--focus {
|
|
116
|
+
color: $blueberry500;
|
|
117
|
+
background-color: $white;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&--on-invalid {
|
|
121
|
+
background-color: $white;
|
|
122
|
+
|
|
123
|
+
:hover > & {
|
|
124
|
+
background-color: $cherry100;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
&--on-invalid#{&}--focus {
|
|
128
|
+
color: $cherry400;
|
|
129
|
+
background-color: $white;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&--disabled {
|
|
133
|
+
background-color: $neutral50;
|
|
134
|
+
|
|
135
|
+
:hover > & {
|
|
136
|
+
background-color: $neutral50;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&--checked {
|
|
141
|
+
background-color: $blueberry500;
|
|
142
|
+
|
|
143
|
+
:hover > & {
|
|
144
|
+
background-color: $blueberry600;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
&--checked#{&}--focus {
|
|
148
|
+
color: $blueberry900;
|
|
149
|
+
background-color: $blueberry500;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&--checked#{&}--on-invalid {
|
|
153
|
+
background-color: $cherry100;
|
|
154
|
+
|
|
155
|
+
:hover > & {
|
|
156
|
+
background-color: $cherry200;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&--checked#{&}--on-invalid#{&}--focus {
|
|
161
|
+
color: $cherry400;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&--checked#{&}--disabled {
|
|
165
|
+
background-color: $neutral50;
|
|
166
|
+
|
|
167
|
+
:hover > & {
|
|
168
|
+
background-color: $neutral50;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&--disabled#{&}--white {
|
|
173
|
+
background-color: $white;
|
|
174
|
+
|
|
175
|
+
:hover > & {
|
|
176
|
+
background-color: $white;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
75
179
|
}
|
|
76
180
|
|
|
77
|
-
&--bigform
|
|
78
|
-
|
|
181
|
+
&--bigform {
|
|
182
|
+
padding: getSpacer(s);
|
|
79
183
|
}
|
|
80
184
|
|
|
81
185
|
&--bigform#{&}--on-dark {
|
|
82
186
|
background-color: $blueberry800;
|
|
83
187
|
}
|
|
84
188
|
|
|
85
|
-
&--bigform#{&}--invalid {
|
|
86
|
-
background-color: $white;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
189
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
90
190
|
&--bigform {
|
|
91
191
|
padding: 1.68rem getSpacer(l);
|
|
@@ -103,28 +203,22 @@
|
|
|
103
203
|
justify-content: center;
|
|
104
204
|
align-items: center;
|
|
105
205
|
margin: getSpacer(4xs) getSpacer(s) getSpacer(4xs) getSpacer(4xs);
|
|
106
|
-
height:
|
|
107
|
-
width:
|
|
108
|
-
min-height:
|
|
109
|
-
min-width:
|
|
110
|
-
color: $neutral700;
|
|
206
|
+
height: $checkbox-icon-size;
|
|
207
|
+
width: $checkbox-icon-size;
|
|
208
|
+
min-height: $checkbox-icon-size;
|
|
209
|
+
min-width: $checkbox-icon-size;
|
|
111
210
|
box-shadow: 0 0 0 getSpacer(4xs);
|
|
112
211
|
|
|
113
212
|
:hover > & {
|
|
114
213
|
box-shadow: 0 0 0 getSpacer(3xs);
|
|
115
|
-
background-color: $neutral100;
|
|
116
214
|
}
|
|
117
215
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
color: $
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
&--checked {
|
|
124
|
-
color: $blueberry500;
|
|
216
|
+
&--on-white,
|
|
217
|
+
&--on-grey {
|
|
218
|
+
color: $neutral700;
|
|
125
219
|
|
|
126
220
|
:hover > & {
|
|
127
|
-
background-color: $
|
|
221
|
+
background-color: $neutral100;
|
|
128
222
|
}
|
|
129
223
|
}
|
|
130
224
|
|
|
@@ -136,52 +230,94 @@
|
|
|
136
230
|
}
|
|
137
231
|
}
|
|
138
232
|
|
|
233
|
+
&--on-invalid {
|
|
234
|
+
color: $cherry500;
|
|
235
|
+
|
|
236
|
+
:hover > & {
|
|
237
|
+
background-color: $cherry100;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
139
241
|
&--on-dark {
|
|
140
242
|
color: $neutral200;
|
|
141
243
|
|
|
142
244
|
:hover > & {
|
|
143
|
-
background-color:
|
|
245
|
+
background-color: #ffffff1a;
|
|
144
246
|
}
|
|
247
|
+
}
|
|
145
248
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
249
|
+
&--disabled {
|
|
250
|
+
color: $neutral600;
|
|
251
|
+
background-color: $neutral50;
|
|
149
252
|
|
|
150
|
-
:
|
|
151
|
-
|
|
253
|
+
:hover > & {
|
|
254
|
+
box-shadow: 0 0 0 getSpacer(4xs);
|
|
255
|
+
background-color: $neutral50;
|
|
152
256
|
}
|
|
153
257
|
}
|
|
154
258
|
|
|
155
|
-
|
|
156
|
-
|
|
259
|
+
&__regular {
|
|
260
|
+
&--checked {
|
|
261
|
+
background-color: $blueberry500;
|
|
262
|
+
color: $blueberry500;
|
|
263
|
+
box-shadow: 0 0 0 getSpacer(4xs);
|
|
157
264
|
|
|
158
|
-
|
|
159
|
-
|
|
265
|
+
:hover > & {
|
|
266
|
+
background-color: $blueberry600;
|
|
267
|
+
color: $blueberry600;
|
|
268
|
+
box-shadow: 0 0 0 getSpacer(4xs);
|
|
269
|
+
}
|
|
160
270
|
}
|
|
271
|
+
&--checked#{&}--invalid {
|
|
272
|
+
background-color: $cherry500;
|
|
273
|
+
color: $cherry500;
|
|
274
|
+
box-shadow: 0 0 0 getSpacer(4xs);
|
|
161
275
|
|
|
162
|
-
|
|
163
|
-
|
|
276
|
+
:hover > & {
|
|
277
|
+
background-color: $cherry600;
|
|
278
|
+
color: $cherry600;
|
|
279
|
+
box-shadow: 0 0 0 getSpacer(4xs);
|
|
280
|
+
}
|
|
164
281
|
}
|
|
282
|
+
&--checked#{&}--on-dark {
|
|
283
|
+
background-color: $blueberry50;
|
|
284
|
+
color: $blueberry50;
|
|
285
|
+
box-shadow: 0 0 0 getSpacer(4xs);
|
|
165
286
|
|
|
166
|
-
|
|
167
|
-
|
|
287
|
+
:hover > & {
|
|
288
|
+
background-color: $blueberry200;
|
|
289
|
+
color: $blueberry200;
|
|
290
|
+
box-shadow: 0 0 0 getSpacer(4xs);
|
|
291
|
+
}
|
|
168
292
|
}
|
|
169
293
|
}
|
|
170
294
|
|
|
171
|
-
|
|
172
|
-
|
|
295
|
+
&__big-form {
|
|
296
|
+
&--checked {
|
|
297
|
+
background-color: $blueberry50;
|
|
298
|
+
box-shadow: none;
|
|
173
299
|
|
|
174
|
-
|
|
175
|
-
|
|
300
|
+
:hover > & {
|
|
301
|
+
background-color: $blueberry200;
|
|
302
|
+
box-shadow: none;
|
|
303
|
+
}
|
|
176
304
|
}
|
|
305
|
+
&--checked#{&}--invalid {
|
|
306
|
+
background-color: $cherry500;
|
|
177
307
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
308
|
+
:hover > & {
|
|
309
|
+
background-color: $cherry600;
|
|
310
|
+
}
|
|
181
311
|
}
|
|
312
|
+
&--checked#{&}--disabled {
|
|
313
|
+
color: $neutral600;
|
|
314
|
+
background-color: $neutral50;
|
|
315
|
+
box-shadow: 0 0 0 getSpacer(4xs);
|
|
182
316
|
|
|
183
|
-
|
|
184
|
-
|
|
317
|
+
:hover > & {
|
|
318
|
+
background-color: $neutral50;
|
|
319
|
+
box-shadow: 0 0 0 getSpacer(4xs);
|
|
320
|
+
}
|
|
185
321
|
}
|
|
186
322
|
}
|
|
187
323
|
}
|
|
@@ -193,6 +329,7 @@
|
|
|
193
329
|
}
|
|
194
330
|
|
|
195
331
|
&:focus {
|
|
332
|
+
/* stylelint-disable-next-line */
|
|
196
333
|
& + .checkbox__icon-wrapper {
|
|
197
334
|
box-shadow: 0 0 0 getSpacer(3xs);
|
|
198
335
|
color: $black;
|
|
@@ -204,6 +341,33 @@
|
|
|
204
341
|
&--invalid {
|
|
205
342
|
color: $black;
|
|
206
343
|
}
|
|
344
|
+
|
|
345
|
+
&__big-form {
|
|
346
|
+
&--checked {
|
|
347
|
+
background-color: $blueberry200;
|
|
348
|
+
box-shadow: 0 0 0 getSpacer(3xs);
|
|
349
|
+
color: $white;
|
|
350
|
+
|
|
351
|
+
// komboklasser fungerer ikke i nested struktur
|
|
352
|
+
&--invalid {
|
|
353
|
+
background-color: $cherry500;
|
|
354
|
+
color: $black;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
&--disabled {
|
|
358
|
+
color: $neutral700;
|
|
359
|
+
background-color: $neutral50;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
207
363
|
}
|
|
208
364
|
}
|
|
365
|
+
|
|
366
|
+
&:focus-visible {
|
|
367
|
+
outline: none;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.checkbox-sublabel-wrapper {
|
|
372
|
+
padding-left: 2.8rem;
|
|
209
373
|
}
|
|
@@ -2,19 +2,41 @@ export type Styles = {
|
|
|
2
2
|
checkbox: string;
|
|
3
3
|
checkbox__icon: string;
|
|
4
4
|
'checkbox__icon-wrapper': string;
|
|
5
|
-
'checkbox__icon-
|
|
5
|
+
'checkbox__icon-wrapper__big-form--checked': string;
|
|
6
|
+
'checkbox__icon-wrapper__big-form--checked--disabled': string;
|
|
7
|
+
'checkbox__icon-wrapper__big-form--checked--invalid': string;
|
|
8
|
+
'checkbox__icon-wrapper__big-form--disabled': string;
|
|
9
|
+
'checkbox__icon-wrapper__big-form--invalid': string;
|
|
10
|
+
'checkbox__icon-wrapper__regular--checked': string;
|
|
11
|
+
'checkbox__icon-wrapper__regular--invalid': string;
|
|
12
|
+
'checkbox__icon-wrapper__regular--on-dark': string;
|
|
6
13
|
'checkbox__icon-wrapper--disabled': string;
|
|
7
14
|
'checkbox__icon-wrapper--invalid': string;
|
|
8
15
|
'checkbox__icon-wrapper--on-blueberry': string;
|
|
9
16
|
'checkbox__icon-wrapper--on-dark': string;
|
|
17
|
+
'checkbox__icon-wrapper--on-grey': string;
|
|
18
|
+
'checkbox__icon-wrapper--on-invalid': string;
|
|
19
|
+
'checkbox__icon-wrapper--on-white': string;
|
|
10
20
|
'checkbox-errors': string;
|
|
11
21
|
'checkbox-label': string;
|
|
22
|
+
'checkbox-label__big-form--checked': string;
|
|
23
|
+
'checkbox-label__big-form--disabled': string;
|
|
24
|
+
'checkbox-label__big-form--focus': string;
|
|
25
|
+
'checkbox-label__big-form--on-blueberry': string;
|
|
26
|
+
'checkbox-label__big-form--on-grey': string;
|
|
27
|
+
'checkbox-label__big-form--on-invalid': string;
|
|
28
|
+
'checkbox-label__big-form--on-white': string;
|
|
29
|
+
'checkbox-label__big-form--white': string;
|
|
12
30
|
'checkbox-label__text': string;
|
|
31
|
+
'checkbox-label__text__big-form--checked': string;
|
|
32
|
+
'checkbox-label__text__big-form--disabled': string;
|
|
33
|
+
'checkbox-label__text__big-form--invalid': string;
|
|
34
|
+
'checkbox-label__text--disabled': string;
|
|
35
|
+
'checkbox-label__text--on-dark': string;
|
|
13
36
|
'checkbox-label--bigform': string;
|
|
14
37
|
'checkbox-label--disabled': string;
|
|
15
|
-
'checkbox-label--invalid': string;
|
|
16
|
-
'checkbox-label--on-blueberry': string;
|
|
17
38
|
'checkbox-label--on-dark': string;
|
|
39
|
+
'checkbox-sublabel-wrapper': string;
|
|
18
40
|
'checkbox-wrapper': string;
|
|
19
41
|
'checkbox-wrapper--bigform': string;
|
|
20
42
|
'checkbox-wrapper--with-error': string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"props":{"label":{"defaultValue":null,"description":"Label for dropdown. Synlig for skjermlesere.","name":"label","parent":{"fileName":"src/components/Dropdown/Dropdown.tsx","name":"DropdownProps"},"declarations":[{"fileName":"src/components/Dropdown/Dropdown.tsx","name":"DropdownProps"}],"required":true,"type":{"name":"string"}},"placeholder":{"defaultValue":null,"description":"Tekst på knappen som åpner dropdownen","name":"placeholder","parent":{"fileName":"src/components/Dropdown/Dropdown.tsx","name":"DropdownProps"},"declarations":[{"fileName":"src/components/Dropdown/Dropdown.tsx","name":"DropdownProps"}],"required":true,"type":{"name":"string"}},"children":{"defaultValue":null,"description":"Sets the dropdown content","name":"children","parent":{"fileName":"src/components/Dropdown/Dropdown.tsx","name":"DropdownProps"},"declarations":[{"fileName":"src/components/Dropdown/Dropdown.tsx","name":"DropdownProps"},{"fileName":"
|
|
1
|
+
{"props":{"label":{"defaultValue":null,"description":"Label for dropdown. Synlig for skjermlesere.","name":"label","parent":{"fileName":"src/components/Dropdown/Dropdown.tsx","name":"DropdownProps"},"declarations":[{"fileName":"src/components/Dropdown/Dropdown.tsx","name":"DropdownProps"}],"required":true,"type":{"name":"string"}},"placeholder":{"defaultValue":null,"description":"Tekst på knappen som åpner dropdownen","name":"placeholder","parent":{"fileName":"src/components/Dropdown/Dropdown.tsx","name":"DropdownProps"},"declarations":[{"fileName":"src/components/Dropdown/Dropdown.tsx","name":"DropdownProps"}],"required":true,"type":{"name":"string"}},"children":{"defaultValue":null,"description":"Sets the dropdown content","name":"children","parent":{"fileName":"src/components/Dropdown/Dropdown.tsx","name":"DropdownProps"},"declarations":[{"fileName":"src/components/Dropdown/Dropdown.tsx","name":"DropdownProps"},{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"TypeLiteral"}],"required":false,"type":{"name":"ReactNode"}},"closeText":{"defaultValue":null,"description":"Close button text","name":"closeText","parent":{"fileName":"src/components/Dropdown/Dropdown.tsx","name":"DropdownProps"},"declarations":[{"fileName":"src/components/Dropdown/Dropdown.tsx","name":"DropdownProps"}],"required":false,"type":{"name":"string"}},"noCloseButton":{"defaultValue":null,"description":"No close button","name":"noCloseButton","parent":{"fileName":"src/components/Dropdown/Dropdown.tsx","name":"DropdownProps"},"declarations":[{"fileName":"src/components/Dropdown/Dropdown.tsx","name":"DropdownProps"}],"required":false,"type":{"name":"boolean"}},"onToggle":{"defaultValue":null,"description":"Called when dropdown is open/closed.","name":"onToggle","parent":{"fileName":"src/components/Dropdown/Dropdown.tsx","name":"DropdownProps"},"declarations":[{"fileName":"src/components/Dropdown/Dropdown.tsx","name":"DropdownProps"}],"required":false,"type":{"name":"((isOpen: boolean) => void)"}},"open":{"defaultValue":null,"description":"Om dropdown er åpen","name":"open","parent":{"fileName":"src/components/Dropdown/Dropdown.tsx","name":"DropdownProps"},"declarations":[{"fileName":"src/components/Dropdown/Dropdown.tsx","name":"DropdownProps"}],"required":false,"type":{"name":"boolean"}},"mode":{"defaultValue":null,"description":"Changes the visuals of the dropdown","name":"mode","parent":{"fileName":"src/components/Dropdown/Dropdown.tsx","name":"DropdownProps"},"declarations":[{"fileName":"src/components/Dropdown/Dropdown.tsx","name":"DropdownProps"}],"required":false,"type":{"name":"enum","raw":"\"onwhite\" | \"ongrey\" | \"onblueberry\" | \"oncherry\"","value":[{"value":"\"onwhite\""},{"value":"\"ongrey\""},{"value":"\"onblueberry\""},{"value":"\"oncherry\""}]}},"transparent":{"defaultValue":null,"description":"Makes the background transparent","name":"transparent","parent":{"fileName":"src/components/Dropdown/Dropdown.tsx","name":"DropdownProps"},"declarations":[{"fileName":"src/components/Dropdown/Dropdown.tsx","name":"DropdownProps"}],"required":false,"type":{"name":"boolean"}},"fluid":{"defaultValue":null,"description":"Makes the background transparent","name":"fluid","parent":{"fileName":"src/components/Dropdown/Dropdown.tsx","name":"DropdownProps"},"declarations":[{"fileName":"src/components/Dropdown/Dropdown.tsx","name":"DropdownProps"}],"required":false,"type":{"name":"boolean"}},"disabled":{"defaultValue":null,"description":"Makes the dropdown disabled","name":"disabled","parent":{"fileName":"src/components/Dropdown/Dropdown.tsx","name":"DropdownProps"},"declarations":[{"fileName":"src/components/Dropdown/Dropdown.tsx","name":"DropdownProps"}],"required":false,"type":{"name":"boolean"}},"testId":{"defaultValue":null,"description":"Sets the data-testid attribute on the dropdown button.","name":"testId","parent":{"fileName":"src/components/Dropdown/Dropdown.tsx","name":"DropdownProps"},"declarations":[{"fileName":"src/components/Dropdown/Dropdown.tsx","name":"DropdownProps"}],"required":false,"type":{"name":"string"}}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"props":{"errorText":{"defaultValue":null,"description":"Error message","name":"errorText","parent":{"fileName":"src/components/ErrorWrapper/ErrorWrapper.tsx","name":"ErrorWrapperProps"},"declarations":[{"fileName":"src/components/ErrorWrapper/ErrorWrapper.tsx","name":"ErrorWrapperProps"}],"required":false,"type":{"name":"string"}},"children":{"defaultValue":null,"description":"Form component","name":"children","parent":{"fileName":"src/components/ErrorWrapper/ErrorWrapper.tsx","name":"ErrorWrapperProps"},"declarations":[{"fileName":"src/components/ErrorWrapper/ErrorWrapper.tsx","name":"ErrorWrapperProps"},{"fileName":"
|
|
1
|
+
{"props":{"errorText":{"defaultValue":null,"description":"Error message","name":"errorText","parent":{"fileName":"src/components/ErrorWrapper/ErrorWrapper.tsx","name":"ErrorWrapperProps"},"declarations":[{"fileName":"src/components/ErrorWrapper/ErrorWrapper.tsx","name":"ErrorWrapperProps"}],"required":false,"type":{"name":"string"}},"children":{"defaultValue":null,"description":"Form component","name":"children","parent":{"fileName":"src/components/ErrorWrapper/ErrorWrapper.tsx","name":"ErrorWrapperProps"},"declarations":[{"fileName":"src/components/ErrorWrapper/ErrorWrapper.tsx","name":"ErrorWrapperProps"},{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"TypeLiteral"}],"required":false,"type":{"name":"ReactNode"}},"className":{"defaultValue":null,"description":"Adds custom classes to the element.","name":"className","parent":{"fileName":"src/components/ErrorWrapper/ErrorWrapper.tsx","name":"ErrorWrapperProps"},"declarations":[{"fileName":"src/components/ErrorWrapper/ErrorWrapper.tsx","name":"ErrorWrapperProps"}],"required":false,"type":{"name":"string"}},"testId":{"defaultValue":null,"description":"Sets the data-testid attribute.","name":"testId","parent":{"fileName":"src/components/ErrorWrapper/ErrorWrapper.tsx","name":"ErrorWrapperProps"},"declarations":[{"fileName":"src/components/ErrorWrapper/ErrorWrapper.tsx","name":"ErrorWrapperProps"}],"required":false,"type":{"name":"string"}}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"props":{"title":{"defaultValue":null,"description":"Sets the trigger title","name":"title","parent":{"fileName":"src/components/Expander/Expander.tsx","name":"ExpanderProps"},"declarations":[{"fileName":"src/components/Expander/Expander.tsx","name":"ExpanderProps"}],"required":true,"type":{"name":"string"}},"children":{"defaultValue":null,"description":"Sets the expanded content","name":"children","parent":{"fileName":"src/components/Expander/Expander.tsx","name":"ExpanderProps"},"declarations":[{"fileName":"src/components/Expander/Expander.tsx","name":"ExpanderProps"},{"fileName":"
|
|
1
|
+
{"props":{"title":{"defaultValue":null,"description":"Sets the trigger title","name":"title","parent":{"fileName":"src/components/Expander/Expander.tsx","name":"ExpanderProps"},"declarations":[{"fileName":"src/components/Expander/Expander.tsx","name":"ExpanderProps"}],"required":true,"type":{"name":"string"}},"children":{"defaultValue":null,"description":"Sets the expanded content","name":"children","parent":{"fileName":"src/components/Expander/Expander.tsx","name":"ExpanderProps"},"declarations":[{"fileName":"src/components/Expander/Expander.tsx","name":"ExpanderProps"},{"fileName":"designsystem/node_modules/@types/react/index.d.ts","name":"TypeLiteral"}],"required":false,"type":{"name":"ReactNode"}},"size":{"defaultValue":null,"description":"Sets the size of the expander. Default: ExpanderSize.small","name":"size","parent":{"fileName":"src/components/Expander/Expander.tsx","name":"ExpanderProps"},"declarations":[{"fileName":"src/components/Expander/Expander.tsx","name":"ExpanderProps"}],"required":false,"type":{"name":"enum","raw":"ExpanderSize","value":[{"value":"\"small\"","description":"","fullComment":"","tags":{}},{"value":"\"large\"","description":"","fullComment":"","tags":{}}]}},"color":{"defaultValue":null,"description":"Sets the background of the expander. Requires size=ExpanderSize.large.","name":"color","parent":{"fileName":"src/components/Expander/Expander.tsx","name":"ExpanderProps"},"declarations":[{"fileName":"src/components/Expander/Expander.tsx","name":"ExpanderProps"}],"required":false,"type":{"name":"enum","raw":"ExpanderColors","value":[{"value":"\"banana\""},{"value":"\"blueberry\""},{"value":"\"cherry\""},{"value":"\"kiwi\""},{"value":"\"neutral\""},{"value":"\"plum\""},{"value":"\"white\""}]}},"svgIcon":{"defaultValue":null,"description":"Adds an icon to the expander trigger. Requires size=ExpanderSize.large.","name":"svgIcon","parent":{"fileName":"src/components/Expander/Expander.tsx","name":"ExpanderProps"},"declarations":[{"fileName":"src/components/Expander/Expander.tsx","name":"ExpanderProps"}],"required":false,"type":{"name":"SvgIcon"}},"expanded":{"defaultValue":null,"description":"Opens or closes the expander","name":"expanded","parent":{"fileName":"src/components/Expander/Expander.tsx","name":"ExpanderProps"},"declarations":[{"fileName":"src/components/Expander/Expander.tsx","name":"ExpanderProps"}],"required":false,"type":{"name":"boolean"}},"noNestedLine":{"defaultValue":null,"description":"Removes border to the left of the content. Requires size=ExpanderSize.small.","name":"noNestedLine","parent":{"fileName":"src/components/Expander/Expander.tsx","name":"ExpanderProps"},"declarations":[{"fileName":"src/components/Expander/Expander.tsx","name":"ExpanderProps"}],"required":false,"type":{"name":"boolean"}},"sticky":{"defaultValue":null,"description":"Stick expander trigger to top of screen while scrolling down","name":"sticky","parent":{"fileName":"src/components/Expander/Expander.tsx","name":"ExpanderProps"},"declarations":[{"fileName":"src/components/Expander/Expander.tsx","name":"ExpanderProps"}],"required":false,"type":{"name":"boolean"}},"onExpand":{"defaultValue":null,"description":"Called when expander is open/closed.","name":"onExpand","parent":{"fileName":"src/components/Expander/Expander.tsx","name":"ExpanderProps"},"declarations":[{"fileName":"src/components/Expander/Expander.tsx","name":"ExpanderProps"}],"required":false,"type":{"name":"((isExpanded: boolean) => void)"}},"renderChildrenWhenClosed":{"defaultValue":null,"description":"Whether to render children when closed (in which case they are hidden with CSS). Default: false","name":"renderChildrenWhenClosed","parent":{"fileName":"src/components/Expander/Expander.tsx","name":"ExpanderProps"},"declarations":[{"fileName":"src/components/Expander/Expander.tsx","name":"ExpanderProps"}],"required":false,"type":{"name":"boolean"}},"testId":{"defaultValue":null,"description":"Sets the data-testid attribute on the expander button.","name":"testId","parent":{"fileName":"src/components/Expander/Expander.tsx","name":"ExpanderProps"},"declarations":[{"fileName":"src/components/Expander/Expander.tsx","name":"ExpanderProps"}],"required":false,"type":{"name":"string"}}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormExample.d.ts","sourceRoot":"","sources":["../../../src/components/FormExample/FormExample.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"FormExample.d.ts","sourceRoot":"","sources":["../../../src/components/FormExample/FormExample.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAgB9C,UAAU,gBAAgB;IACxB,WAAW,EAAE,mBAAmB,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,OAAO,WAAW,CAAC;CACpC;AAED,oBAAY,mBAAmB;IAC7B,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,eAAO,MAAM,WAAW,UAAW,gBAAgB,KAAG,WAmTrD,CAAC;AAEF,eAAe,WAAW,CAAC"}
|