@helsenorge/designsystem-react 1.0.0-beta90 → 1.0.0-beta95
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/Button-8af0be6e.js +2 -0
- package/Button-8af0be6e.js.map +1 -0
- package/Checkbox-fb5dff56.js +2 -0
- package/Checkbox-fb5dff56.js.map +1 -0
- package/Close-9f68bcd0.js +2 -0
- package/Close-9f68bcd0.js.map +1 -0
- package/FormGroup-6c545646.js +2 -0
- package/FormGroup-6c545646.js.map +1 -0
- package/Icon-04613a89.js +2 -0
- package/Icon-04613a89.js.map +1 -0
- package/Input-adeb7f88.js +2 -0
- package/Input-adeb7f88.js.map +1 -0
- package/Loader-b3fd59f4.js +2 -0
- package/Loader-b3fd59f4.js.map +1 -0
- package/Modal-b7d10081.js +2 -0
- package/Modal-b7d10081.js.map +1 -0
- package/RadioButton-d90884c9.js +2 -0
- package/RadioButton-d90884c9.js.map +1 -0
- package/Textarea-05e33ba3.js +2 -0
- package/Textarea-05e33ba3.js.map +1 -0
- package/Title-90910763.js +2 -0
- package/Title-90910763.js.map +1 -0
- package/Validation-9bf0c0ec.js +2 -0
- package/Validation-9bf0c0ec.js.map +1 -0
- package/components/AnchorLink/index.d.ts +1 -0
- package/components/AnchorLink/index.d.ts.map +1 -1
- package/components/AnchorLink/index.js +1 -1
- package/components/Avatar/index.d.ts +1 -0
- package/components/Avatar/index.d.ts.map +1 -1
- package/components/Avatar/index.js +1 -1
- package/components/Badge/index.d.ts +1 -0
- package/components/Badge/index.d.ts.map +1 -1
- package/components/Button/Button.d.ts.map +1 -1
- package/components/Button/index.d.ts +1 -0
- package/components/Button/index.d.ts.map +1 -1
- package/components/Button/index.js +1 -1
- package/components/ButtonWithModal/componentdata.json +38 -0
- package/components/ButtonWithModal/index.d.ts +1 -0
- package/components/ButtonWithModal/index.d.ts.map +1 -1
- package/components/ButtonWithModal/index.js +1 -1
- package/components/Checkbox/Checkbox.d.ts +3 -3
- package/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/components/Checkbox/componentdata.json +10 -4
- package/components/Checkbox/index.d.ts +1 -0
- package/components/Checkbox/index.d.ts.map +1 -1
- package/components/Checkbox/index.js +1 -1
- package/components/Close/index.d.ts +1 -0
- package/components/Close/index.d.ts.map +1 -1
- package/components/Close/index.js +1 -1
- package/components/ExpanderList/index.d.ts +1 -0
- package/components/ExpanderList/index.d.ts.map +1 -1
- package/components/ExpanderList/index.js +1 -1
- package/components/FormExample/FormExample.d.ts +8 -5
- package/components/FormExample/FormExample.d.ts.map +1 -1
- package/components/FormExample/componentdata.json +9 -0
- package/components/FormExample/index.d.ts +1 -0
- package/components/FormExample/index.d.ts.map +1 -1
- package/components/FormExample/index.js +1 -1
- package/components/FormExample/index.js.map +1 -1
- package/components/FormGroup/FormGroup.d.ts +5 -6
- package/components/FormGroup/FormGroup.d.ts.map +1 -1
- package/components/FormGroup/componentdata.json +29 -4
- package/components/FormGroup/index.d.ts +1 -0
- package/components/FormGroup/index.d.ts.map +1 -1
- package/components/FormGroup/index.js +1 -1
- package/components/FormGroup/styles.module.scss +12 -3
- package/components/HighlightBox/HighlightBox.d.ts +24 -0
- package/components/HighlightBox/HighlightBox.d.ts.map +1 -0
- package/components/HighlightBox/componentdata.json +484 -0
- package/components/HighlightBox/index.d.ts +4 -0
- package/components/HighlightBox/index.d.ts.map +1 -0
- package/components/HighlightBox/index.js +2 -0
- package/components/HighlightBox/index.js.map +1 -0
- package/components/HighlightBox/styles.module.scss +89 -0
- package/components/Icons/AcupunctureBack.js +1 -1
- package/components/Icons/Icon.js +1 -1
- package/components/Icons/NoEye.js +1 -1
- package/components/Icons/SectionSign.js +1 -1
- package/components/Icons/SpeechBubble.js +1 -1
- package/components/Icons/SupportingPerson.js +1 -1
- package/components/Icons/Syringe.js +1 -1
- package/components/Icons/index.js +1 -1
- package/components/Input/Input.d.ts +55 -0
- package/components/Input/Input.d.ts.map +1 -0
- package/components/Input/componentdata.json +425 -0
- package/components/Input/index.d.ts +4 -0
- package/components/Input/index.d.ts.map +1 -0
- package/components/Input/index.js +2 -0
- package/components/Input/index.js.map +1 -0
- package/components/Input/styles.module.scss +55 -0
- package/components/Input/styles.module.scss.d.ts +23 -0
- package/components/LinkList/index.d.ts +1 -0
- package/components/LinkList/index.d.ts.map +1 -1
- package/components/LinkList/index.js +1 -1
- package/components/List/index.d.ts +1 -0
- package/components/List/index.d.ts.map +1 -1
- package/components/Loader/Loader.d.ts +7 -1
- package/components/Loader/Loader.d.ts.map +1 -1
- package/components/Loader/componentdata.json +32 -1
- package/components/Loader/index.d.ts +1 -0
- package/components/Loader/index.d.ts.map +1 -1
- package/components/Loader/index.js +1 -1
- package/components/Loader/styles.module.scss +19 -4
- package/components/Logo/index.d.ts +1 -0
- package/components/Logo/index.d.ts.map +1 -1
- package/components/Modal/Modal.d.ts +6 -0
- package/components/Modal/Modal.d.ts.map +1 -1
- package/components/Modal/componentdata.json +40 -0
- package/components/Modal/index.d.ts +1 -0
- package/components/Modal/index.d.ts.map +1 -1
- package/components/Modal/index.js +1 -1
- package/components/Modal/styles.module.scss +21 -2
- package/components/NotificationPanel/index.d.ts +1 -0
- package/components/NotificationPanel/index.d.ts.map +1 -1
- package/components/NotificationPanel/index.js +1 -1
- package/components/Portal/componentdata.json +80 -0
- package/components/Portal/index.d.ts +13 -0
- package/components/Portal/index.d.ts.map +1 -0
- package/components/Portal/index.js +2 -0
- package/components/Portal/index.js.map +1 -0
- package/components/RadioButton/RadioButton.d.ts +31 -0
- package/components/RadioButton/RadioButton.d.ts.map +1 -0
- package/components/RadioButton/componentdata.json +265 -0
- package/components/RadioButton/index.d.ts +4 -0
- package/components/RadioButton/index.d.ts.map +1 -0
- package/components/RadioButton/index.js +2 -0
- package/components/RadioButton/index.js.map +1 -0
- package/components/RadioButton/styles.module.scss +236 -0
- package/components/RadioButton/styles.module.scss.d.ts +23 -0
- package/components/Slider/index.d.ts +1 -0
- package/components/Slider/index.d.ts.map +1 -1
- package/components/Slider/index.js +1 -1
- package/components/Spacer/index.d.ts +1 -0
- package/components/Spacer/index.d.ts.map +1 -1
- package/components/Textarea/Textarea.d.ts +35 -0
- package/components/Textarea/Textarea.d.ts.map +1 -0
- package/components/Textarea/componentdata.json +565 -0
- package/components/Textarea/index.d.ts +4 -0
- package/components/Textarea/index.d.ts.map +1 -0
- package/components/Textarea/index.js +2 -0
- package/components/Textarea/index.js.map +1 -0
- package/components/Textarea/styles.module.scss +57 -0
- package/components/Textarea/styles.module.scss.d.ts +26 -0
- package/components/Tile/index.d.ts +1 -0
- package/components/Tile/index.d.ts.map +1 -1
- package/components/Tile/index.js +1 -1
- package/components/Title/index.d.ts +1 -0
- package/components/Title/index.d.ts.map +1 -1
- package/components/Title/index.js +1 -1
- package/components/Validation/Validation.d.ts +2 -2
- package/components/Validation/Validation.d.ts.map +1 -1
- package/components/Validation/index.d.ts +1 -0
- package/components/Validation/index.d.ts.map +1 -1
- package/components/Validation/index.js +1 -1
- package/constants-42547490.js +2 -0
- package/constants-42547490.js.map +1 -0
- package/constants.d.ts +29 -0
- package/constants.d.ts.map +1 -1
- package/hooks/useIcons.d.ts +4 -0
- package/hooks/useIcons.d.ts.map +1 -0
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/package.json +2 -1
- package/scss/_input.scss +174 -0
- package/scss/_title.scss +16 -12
- package/Button-48132cc3.js +0 -2
- package/Button-48132cc3.js.map +0 -1
- package/Checkbox-46666e69.js +0 -2
- package/Checkbox-46666e69.js.map +0 -1
- package/Close-591125bb.js +0 -2
- package/Close-591125bb.js.map +0 -1
- package/FormGroup-56d60079.js +0 -2
- package/FormGroup-56d60079.js.map +0 -1
- package/Loader-6ff0d481.js +0 -2
- package/Loader-6ff0d481.js.map +0 -1
- package/Modal-145869ba.js +0 -2
- package/Modal-145869ba.js.map +0 -1
- package/Title-72851d51.js +0 -2
- package/Title-72851d51.js.map +0 -1
- package/Validation-372a97b9.js +0 -2
- package/Validation-372a97b9.js.map +0 -1
- package/constants-d919236e.js +0 -2
- package/constants-d919236e.js.map +0 -1
|
@@ -0,0 +1,425 @@
|
|
|
1
|
+
{
|
|
2
|
+
"props": {
|
|
3
|
+
"defaultValue": {
|
|
4
|
+
"defaultValue": null,
|
|
5
|
+
"description": "initial value for input",
|
|
6
|
+
"name": "defaultValue",
|
|
7
|
+
"parent": {
|
|
8
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
9
|
+
"name": "InputProps"
|
|
10
|
+
},
|
|
11
|
+
"declarations": [
|
|
12
|
+
{
|
|
13
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
14
|
+
"name": "InputProps"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"required": false,
|
|
18
|
+
"type": {
|
|
19
|
+
"name": "string"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"placeholder": {
|
|
23
|
+
"defaultValue": null,
|
|
24
|
+
"description": "Text for the placeholder",
|
|
25
|
+
"name": "placeholder",
|
|
26
|
+
"parent": {
|
|
27
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
28
|
+
"name": "InputProps"
|
|
29
|
+
},
|
|
30
|
+
"declarations": [
|
|
31
|
+
{
|
|
32
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
33
|
+
"name": "InputProps"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"required": false,
|
|
37
|
+
"type": {
|
|
38
|
+
"name": "string"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"type": {
|
|
42
|
+
"defaultValue": null,
|
|
43
|
+
"description": "HMTL Input type",
|
|
44
|
+
"name": "type",
|
|
45
|
+
"parent": {
|
|
46
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
47
|
+
"name": "InputProps"
|
|
48
|
+
},
|
|
49
|
+
"declarations": [
|
|
50
|
+
{
|
|
51
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
52
|
+
"name": "InputProps"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"required": false,
|
|
56
|
+
"type": {
|
|
57
|
+
"name": "enum",
|
|
58
|
+
"raw": "\"number\" | \"text\" | \"email\" | \"password\" | \"search\" | \"tel\" | \"url\" | undefined",
|
|
59
|
+
"value": [
|
|
60
|
+
{
|
|
61
|
+
"value": "undefined"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"value": "\"number\""
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"value": "\"text\""
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"value": "\"email\""
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"value": "\"password\""
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"value": "\"search\""
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"value": "\"tel\""
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"value": "\"url\""
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"inputid": {
|
|
88
|
+
"defaultValue": null,
|
|
89
|
+
"description": "input id",
|
|
90
|
+
"name": "inputid",
|
|
91
|
+
"parent": {
|
|
92
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
93
|
+
"name": "InputProps"
|
|
94
|
+
},
|
|
95
|
+
"declarations": [
|
|
96
|
+
{
|
|
97
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
98
|
+
"name": "InputProps"
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"required": false,
|
|
102
|
+
"type": {
|
|
103
|
+
"name": "string"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"name": {
|
|
107
|
+
"defaultValue": null,
|
|
108
|
+
"description": "Unique identifyer for the input tag",
|
|
109
|
+
"name": "name",
|
|
110
|
+
"parent": {
|
|
111
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
112
|
+
"name": "InputProps"
|
|
113
|
+
},
|
|
114
|
+
"declarations": [
|
|
115
|
+
{
|
|
116
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
117
|
+
"name": "InputProps"
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"required": false,
|
|
121
|
+
"type": {
|
|
122
|
+
"name": "string"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"transparent": {
|
|
126
|
+
"defaultValue": null,
|
|
127
|
+
"description": "If true, the component will be transparent.",
|
|
128
|
+
"name": "transparent",
|
|
129
|
+
"parent": {
|
|
130
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
131
|
+
"name": "InputProps"
|
|
132
|
+
},
|
|
133
|
+
"declarations": [
|
|
134
|
+
{
|
|
135
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
136
|
+
"name": "InputProps"
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
"required": false,
|
|
140
|
+
"type": {
|
|
141
|
+
"name": "boolean"
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"icon": {
|
|
145
|
+
"defaultValue": null,
|
|
146
|
+
"description": "Icon to be displayed next to the input field",
|
|
147
|
+
"name": "icon",
|
|
148
|
+
"parent": {
|
|
149
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
150
|
+
"name": "InputProps"
|
|
151
|
+
},
|
|
152
|
+
"declarations": [
|
|
153
|
+
{
|
|
154
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
155
|
+
"name": "InputProps"
|
|
156
|
+
}
|
|
157
|
+
],
|
|
158
|
+
"required": false,
|
|
159
|
+
"type": {
|
|
160
|
+
"name": "FC<SvgPathProps>"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"iconRight": {
|
|
164
|
+
"defaultValue": null,
|
|
165
|
+
"description": "Places the icon to the right",
|
|
166
|
+
"name": "iconRight",
|
|
167
|
+
"parent": {
|
|
168
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
169
|
+
"name": "InputProps"
|
|
170
|
+
},
|
|
171
|
+
"declarations": [
|
|
172
|
+
{
|
|
173
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
174
|
+
"name": "InputProps"
|
|
175
|
+
}
|
|
176
|
+
],
|
|
177
|
+
"required": false,
|
|
178
|
+
"type": {
|
|
179
|
+
"name": "boolean"
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"mode": {
|
|
183
|
+
"defaultValue": null,
|
|
184
|
+
"description": "Changes the color profile of the input",
|
|
185
|
+
"name": "mode",
|
|
186
|
+
"parent": {
|
|
187
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
188
|
+
"name": "InputProps"
|
|
189
|
+
},
|
|
190
|
+
"declarations": [
|
|
191
|
+
{
|
|
192
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
193
|
+
"name": "InputProps"
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"required": false,
|
|
197
|
+
"type": {
|
|
198
|
+
"name": "enum",
|
|
199
|
+
"raw": "\"onwhite\" | \"ongrey\" | \"onblueberry\" | \"ondark\" | \"oninvalid\" | undefined",
|
|
200
|
+
"value": [
|
|
201
|
+
{
|
|
202
|
+
"value": "undefined"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"value": "\"onwhite\""
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"value": "\"ongrey\""
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"value": "\"onblueberry\""
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"value": "\"ondark\""
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"value": "\"oninvalid\""
|
|
218
|
+
}
|
|
219
|
+
]
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"variant": {
|
|
223
|
+
"defaultValue": null,
|
|
224
|
+
"description": "Changes the visuals of the input",
|
|
225
|
+
"name": "variant",
|
|
226
|
+
"parent": {
|
|
227
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
228
|
+
"name": "InputProps"
|
|
229
|
+
},
|
|
230
|
+
"declarations": [
|
|
231
|
+
{
|
|
232
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
233
|
+
"name": "InputProps"
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
"required": false,
|
|
237
|
+
"type": {
|
|
238
|
+
"name": "enum",
|
|
239
|
+
"raw": "\"normal\" | \"bigform\" | undefined",
|
|
240
|
+
"value": [
|
|
241
|
+
{
|
|
242
|
+
"value": "undefined"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"value": "\"normal\""
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"value": "\"bigform\""
|
|
249
|
+
}
|
|
250
|
+
]
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
"label": {
|
|
254
|
+
"defaultValue": null,
|
|
255
|
+
"description": "Label of the input",
|
|
256
|
+
"name": "label",
|
|
257
|
+
"parent": {
|
|
258
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
259
|
+
"name": "InputProps"
|
|
260
|
+
},
|
|
261
|
+
"declarations": [
|
|
262
|
+
{
|
|
263
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
264
|
+
"name": "InputProps"
|
|
265
|
+
}
|
|
266
|
+
],
|
|
267
|
+
"required": false,
|
|
268
|
+
"type": {
|
|
269
|
+
"name": "string"
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
"error": {
|
|
273
|
+
"defaultValue": null,
|
|
274
|
+
"description": "Activates Error style for the input",
|
|
275
|
+
"name": "error",
|
|
276
|
+
"parent": {
|
|
277
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
278
|
+
"name": "InputProps"
|
|
279
|
+
},
|
|
280
|
+
"declarations": [
|
|
281
|
+
{
|
|
282
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
283
|
+
"name": "InputProps"
|
|
284
|
+
}
|
|
285
|
+
],
|
|
286
|
+
"required": false,
|
|
287
|
+
"type": {
|
|
288
|
+
"name": "boolean"
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"errorText": {
|
|
292
|
+
"defaultValue": null,
|
|
293
|
+
"description": "Error text to show above the component",
|
|
294
|
+
"name": "errorText",
|
|
295
|
+
"parent": {
|
|
296
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
297
|
+
"name": "InputProps"
|
|
298
|
+
},
|
|
299
|
+
"declarations": [
|
|
300
|
+
{
|
|
301
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
302
|
+
"name": "InputProps"
|
|
303
|
+
}
|
|
304
|
+
],
|
|
305
|
+
"required": false,
|
|
306
|
+
"type": {
|
|
307
|
+
"name": "string"
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
"testId": {
|
|
311
|
+
"defaultValue": null,
|
|
312
|
+
"description": "Sets the data-testid attribute.",
|
|
313
|
+
"name": "testId",
|
|
314
|
+
"parent": {
|
|
315
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
316
|
+
"name": "InputProps"
|
|
317
|
+
},
|
|
318
|
+
"declarations": [
|
|
319
|
+
{
|
|
320
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
321
|
+
"name": "InputProps"
|
|
322
|
+
}
|
|
323
|
+
],
|
|
324
|
+
"required": false,
|
|
325
|
+
"type": {
|
|
326
|
+
"name": "string"
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
"disabled": {
|
|
330
|
+
"defaultValue": null,
|
|
331
|
+
"description": "Disables the input field",
|
|
332
|
+
"name": "disabled",
|
|
333
|
+
"parent": {
|
|
334
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
335
|
+
"name": "InputProps"
|
|
336
|
+
},
|
|
337
|
+
"declarations": [
|
|
338
|
+
{
|
|
339
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
340
|
+
"name": "InputProps"
|
|
341
|
+
}
|
|
342
|
+
],
|
|
343
|
+
"required": false,
|
|
344
|
+
"type": {
|
|
345
|
+
"name": "boolean"
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
"readOnly": {
|
|
349
|
+
"defaultValue": null,
|
|
350
|
+
"description": "Om input feltet er readOnly",
|
|
351
|
+
"name": "readOnly",
|
|
352
|
+
"parent": {
|
|
353
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
354
|
+
"name": "InputProps"
|
|
355
|
+
},
|
|
356
|
+
"declarations": [
|
|
357
|
+
{
|
|
358
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
359
|
+
"name": "InputProps"
|
|
360
|
+
}
|
|
361
|
+
],
|
|
362
|
+
"required": false,
|
|
363
|
+
"type": {
|
|
364
|
+
"name": "boolean"
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
"autocomplete": {
|
|
368
|
+
"defaultValue": null,
|
|
369
|
+
"description": "attribute autocomplete,",
|
|
370
|
+
"name": "autocomplete",
|
|
371
|
+
"parent": {
|
|
372
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
373
|
+
"name": "InputProps"
|
|
374
|
+
},
|
|
375
|
+
"declarations": [
|
|
376
|
+
{
|
|
377
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
378
|
+
"name": "InputProps"
|
|
379
|
+
}
|
|
380
|
+
],
|
|
381
|
+
"required": false,
|
|
382
|
+
"type": {
|
|
383
|
+
"name": "string"
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
"afterLabelChildren": {
|
|
387
|
+
"defaultValue": null,
|
|
388
|
+
"description": "Component shown after label",
|
|
389
|
+
"name": "afterLabelChildren",
|
|
390
|
+
"parent": {
|
|
391
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
392
|
+
"name": "InputProps"
|
|
393
|
+
},
|
|
394
|
+
"declarations": [
|
|
395
|
+
{
|
|
396
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
397
|
+
"name": "InputProps"
|
|
398
|
+
}
|
|
399
|
+
],
|
|
400
|
+
"required": false,
|
|
401
|
+
"type": {
|
|
402
|
+
"name": "ReactNode"
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
"belowLabelChildren": {
|
|
406
|
+
"defaultValue": null,
|
|
407
|
+
"description": "Component shown under label",
|
|
408
|
+
"name": "belowLabelChildren",
|
|
409
|
+
"parent": {
|
|
410
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
411
|
+
"name": "InputProps"
|
|
412
|
+
},
|
|
413
|
+
"declarations": [
|
|
414
|
+
{
|
|
415
|
+
"fileName": "src/components/Input/Input.tsx",
|
|
416
|
+
"name": "InputProps"
|
|
417
|
+
}
|
|
418
|
+
],
|
|
419
|
+
"required": false,
|
|
420
|
+
"type": {
|
|
421
|
+
"name": "ReactNode"
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Input/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{I as s}from"../../Input-adeb7f88.js";export{a as InputTypes,I as default}from"../../Input-adeb7f88.js";import"../../_rollupPluginBabelHelpers-d0752906.js";import"../../_tslib-51c8a283.js";import"react";import"../../index-9b84fabc.js";import"../../constants-42547490.js";import"../../uuid-8870ab4b.js";import"../../Icon-04613a89.js";import"../../color-acb834c6.js";import"../../index-19b48c51.js";import"../../palette-f206f488.js";import"../../grid-11a70eb7.js";import"../../useBreakpoint-324a9b14.js";import"../../useWindowSize-73b47451.js";import"./styles.module.scss";
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
@import '../../scss/_spacers.scss';
|
|
2
|
+
@import '../../scss/_breakpoints.scss';
|
|
3
|
+
@import '../../scss/_palette.scss';
|
|
4
|
+
@import '../../scss/_font-settings.scss';
|
|
5
|
+
@import '../../scss/_input.scss';
|
|
6
|
+
|
|
7
|
+
.input-wrapper {
|
|
8
|
+
@include input-wrapper;
|
|
9
|
+
|
|
10
|
+
margin: getSpacer(l) 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.input-wrapper:first-of-type {
|
|
14
|
+
margin-top: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.input-wrapper:last-of-type {
|
|
18
|
+
margin-bottom: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.content-wrapper {
|
|
22
|
+
@include content-wrapper;
|
|
23
|
+
|
|
24
|
+
padding: 0.5rem 0;
|
|
25
|
+
display: inline-flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
|
|
28
|
+
&--with-icon {
|
|
29
|
+
padding: 1px 0;
|
|
30
|
+
|
|
31
|
+
@media (min-width: map-get($grid-breakpoints, md)) {
|
|
32
|
+
padding: 0.375rem 0;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&__input {
|
|
37
|
+
line-height: getSpacer(m);
|
|
38
|
+
height: getSpacer(m);
|
|
39
|
+
|
|
40
|
+
&--bigform {
|
|
41
|
+
height: 2.5rem;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@media (min-width: map-get($grid-breakpoints, md)) {
|
|
45
|
+
line-height: 1.625rem;
|
|
46
|
+
height: 2.125rem;
|
|
47
|
+
font-size: $font-size-md;
|
|
48
|
+
|
|
49
|
+
&--bigform {
|
|
50
|
+
line-height: 1.75rem;
|
|
51
|
+
height: 3.5rem;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type Styles = {
|
|
2
|
+
'content-wrapper': string;
|
|
3
|
+
'content-wrapper__input': string;
|
|
4
|
+
'content-wrapper__input--bigform': string;
|
|
5
|
+
'content-wrapper__input--disabled': string;
|
|
6
|
+
'content-wrapper--bigform': string;
|
|
7
|
+
'content-wrapper--disabled': string;
|
|
8
|
+
'content-wrapper--invalid': string;
|
|
9
|
+
'content-wrapper--on-blueberry': string;
|
|
10
|
+
'content-wrapper--on-dark': string;
|
|
11
|
+
'content-wrapper--transparent': string;
|
|
12
|
+
'content-wrapper--with-icon': string;
|
|
13
|
+
'input-wrapper': string;
|
|
14
|
+
'input-wrapper__after-label-children': string;
|
|
15
|
+
'input-wrapper__label-wrapper': string;
|
|
16
|
+
'input-wrapper__label-wrapper--on-dark': string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export type ClassNames = keyof Styles;
|
|
20
|
+
|
|
21
|
+
declare const styles: Styles;
|
|
22
|
+
|
|
23
|
+
export default styles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/LinkList/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,eAAe,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/LinkList/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,eAAe,QAAQ,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"../../_rollupPluginBabelHelpers-d0752906.js";import{_ as r}from"../../_tslib-51c8a283.js";import t from"react";import{c as l}from"../../index-9b84fabc.js";import{a
|
|
1
|
+
import{a as e}from"../../_rollupPluginBabelHelpers-d0752906.js";import{_ as r}from"../../_tslib-51c8a283.js";import t from"react";import{c as l}from"../../index-9b84fabc.js";import{I as a}from"../../Icon-04613a89.js";import{I as o}from"../../constants-42547490.js";import{u as i,B as s}from"../../useBreakpoint-324a9b14.js";import{u as n}from"../../useHover-037be19d.js";import m from"./styles.module.scss";import"../../useWindowSize-73b47451.js";import"../../grid-11a70eb7.js";var c=function(e){var r=e.isExtraSmall,l=e.isHovered,a=t.createElement("path",{d:"M19.171 32.951l1.409 1.42L31.031 24 20.58 13.63l-1.409 1.42 9.02 8.95z"}),o=t.createElement("path",{d:"M24.479 11.63L36.93 23.999 24.479 36.37l-1.409-1.419L33.083 25H13v-2h20.085L23.07 13.049z"}),i=t.createElement("path",{d:"M17.885 32.577l1.779 1.793 10.451-10.371L19.664 13.63l-1.779 1.793 8.644 8.576z"});return r?l?t.createElement("path",{d:"M25.98 11.103l12.977 12.896L25.98 36.897l-1.78-1.794 9.899-9.841-20.204.001v-2.526l20.204-.001-9.899-9.839z"}):i:l?o:a},d=t.forwardRef((function(d,p){var v,f=d.children,u=d.className,h=void 0===u?"":u,_=d.color,k=void 0===_?"neutral":_,b=d.icon,E=d.size,z=void 0===E?"medium":E,j=d.chevron,L=void 0!==j&&j,g=d.testId,N=d.target,H=r(d,["children","className","color","icon","size","chevron","testId","target"]),I=n(),B=I.hoverRef,S=I.isHovered,x=i(),M="small"!==z&&!(!L&&!b);return t.createElement("li",{ref:p,"data-testid":g},t.createElement("a",Object.assign({className:l(m["link-list__anchor"],m["link-list__anchor--"+k],(v={},e(v,m["link-list__anchor--small"],"small"===z),e(v,m["link-list__anchor--medium"],"medium"===z),e(v,m["link-list__anchor--large"],"large"===z),v),h),ref:B,rel:"_blank"===N?"noopener noreferrer":void 0,target:N},H),M&&b&&t.createElement("span",{className:m["link-list__icon"]},t.cloneElement(b,{size:x===s.Xs?o.XSmall:o.Small,isHovered:S})),t.createElement("span",{className:m["link-list__content"]},f),M&&L&&t.createElement("span",{className:m["link-list__chevron"]},t.createElement(a,{svgIcon:c,isHovered:S,size:o.XSmall}))))})),p=t.forwardRef((function(r,a){var o,i=r.children,s=r.className,n=void 0===s?"":s,c=r.chevron,p=void 0!==c&&c,v=r.size,f=void 0===v?"medium":v,u=r.color,h=r.topBorder,_=void 0===h||h,k=r.bottomBorder,b=void 0===k||k,E=r.testId;return t.createElement("ul",{ref:a,className:l(m["link-list"],(o={},e(o,m["link-list--hastopborder"],_),e(o,m["link-list--nobottomborder"],!b),o),n||""),"data-testid":E},t.Children.map(i,(function(e){if(e.type===d)return t.cloneElement(e,{color:u,size:f,chevron:p})})))}));p.Link=d,d.displayName="LinkList.Link";export default p;export{p as LinkList};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/List/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,eAAe,IAAI,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/List/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,eAAe,IAAI,CAAC"}
|
|
@@ -2,6 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import { PaletteNames } from '../../theme/palette';
|
|
3
3
|
export declare type LoaderColors = PaletteNames;
|
|
4
4
|
export declare type LoaderSizes = 'tiny' | 'small' | 'medium' | 'large';
|
|
5
|
+
export declare enum Overlay {
|
|
6
|
+
screen = "screen",
|
|
7
|
+
parent = "parent"
|
|
8
|
+
}
|
|
5
9
|
interface LoaderProps {
|
|
6
10
|
/** Sets the color of the loader */
|
|
7
11
|
color?: LoaderColors;
|
|
@@ -13,8 +17,10 @@ interface LoaderProps {
|
|
|
13
17
|
testId?: string;
|
|
14
18
|
/** Centers the loader in a container */
|
|
15
19
|
center?: boolean;
|
|
20
|
+
/** Inline the loader so it can be used in a span or paragraph */
|
|
21
|
+
inline?: boolean;
|
|
16
22
|
/** Loader is displayed with grey background covering the entire screen */
|
|
17
|
-
overlay?:
|
|
23
|
+
overlay?: keyof typeof Overlay;
|
|
18
24
|
/** Individual id for loading icon (aria-labelledby). */
|
|
19
25
|
ariaLabelledById?: string;
|
|
20
26
|
/** String that labels the current loading element */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../../../src/components/Loader/Loader.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../../../src/components/Loader/Loader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAI3D,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGnD,oBAAY,YAAY,GAAG,YAAY,CAAC;AACxC,oBAAY,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAChE,oBAAY,OAAO;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,UAAU,WAAW;IACnB,mCAAmC;IACnC,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wCAAwC;IACxC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,iEAAiE;IACjE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,0EAA0E;IAC1E,OAAO,CAAC,EAAE,MAAM,OAAO,OAAO,CAAC;IAC/B,0DAA0D;IAC1D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,MAAM,iFAyFV,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -143,6 +143,25 @@
|
|
|
143
143
|
"name": "boolean"
|
|
144
144
|
}
|
|
145
145
|
},
|
|
146
|
+
"inline": {
|
|
147
|
+
"defaultValue": null,
|
|
148
|
+
"description": "Inline the loader so it can be used in a span or paragraph",
|
|
149
|
+
"name": "inline",
|
|
150
|
+
"parent": {
|
|
151
|
+
"fileName": "src/components/Loader/Loader.tsx",
|
|
152
|
+
"name": "LoaderProps"
|
|
153
|
+
},
|
|
154
|
+
"declarations": [
|
|
155
|
+
{
|
|
156
|
+
"fileName": "src/components/Loader/Loader.tsx",
|
|
157
|
+
"name": "LoaderProps"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"required": false,
|
|
161
|
+
"type": {
|
|
162
|
+
"name": "boolean"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
146
165
|
"overlay": {
|
|
147
166
|
"defaultValue": null,
|
|
148
167
|
"description": "Loader is displayed with grey background covering the entire screen",
|
|
@@ -159,7 +178,19 @@
|
|
|
159
178
|
],
|
|
160
179
|
"required": false,
|
|
161
180
|
"type": {
|
|
162
|
-
"name": "
|
|
181
|
+
"name": "enum",
|
|
182
|
+
"raw": "\"screen\" | \"parent\" | undefined",
|
|
183
|
+
"value": [
|
|
184
|
+
{
|
|
185
|
+
"value": "undefined"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"value": "\"screen\""
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"value": "\"parent\""
|
|
192
|
+
}
|
|
193
|
+
]
|
|
163
194
|
}
|
|
164
195
|
},
|
|
165
196
|
"ariaLabelledById": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Loader/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,eAAe,MAAM,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Loader/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,eAAe,MAAM,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{L as r}from"../../Loader-
|
|
1
|
+
import{L as r}from"../../Loader-b3fd59f4.js";export{O as Overlay,L as default}from"../../Loader-b3fd59f4.js";import"../../_rollupPluginBabelHelpers-d0752906.js";import"react";import"../../index-9b84fabc.js";import"../../uuid-8870ab4b.js";import"./styles.module.scss";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|