@helsenorge/designsystem-react 1.0.0-beta94 → 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-80751ae6.js → Close-9f68bcd0.js} +2 -2
- package/Close-9f68bcd0.js.map +1 -0
- package/FormGroup-6c545646.js +2 -0
- package/FormGroup-6c545646.js.map +1 -0
- package/{Icon-9b4a8a2d.js → Icon-04613a89.js} +2 -2
- package/Icon-04613a89.js.map +1 -0
- package/Input-adeb7f88.js +2 -0
- package/Input-adeb7f88.js.map +1 -0
- package/{Modal-6b4a2c9c.js → Modal-b7d10081.js} +2 -2
- 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/{Validation-ef9ee0ae.js → Validation-9bf0c0ec.js} +2 -2
- package/Validation-9bf0c0ec.js.map +1 -0
- package/components/AnchorLink/index.js +1 -1
- package/components/Avatar/index.js +1 -1
- package/components/Button/Button.d.ts.map +1 -1
- package/components/Button/index.js +1 -1
- package/components/ButtonWithModal/index.js +1 -1
- package/components/Checkbox/componentdata.json +9 -9
- package/components/Checkbox/index.js +1 -1
- package/components/Close/index.js +1 -1
- package/components/ExpanderList/index.js +1 -1
- package/components/FormExample/FormExample.d.ts +2 -1
- package/components/FormExample/FormExample.d.ts.map +1 -1
- package/components/FormExample/componentdata.json +6 -3
- package/components/FormExample/index.js +1 -1
- package/components/FormExample/index.js.map +1 -1
- package/components/FormGroup/FormGroup.d.ts.map +1 -1
- package/components/FormGroup/componentdata.json +9 -9
- package/components/FormGroup/index.js +1 -1
- 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.js +1 -1
- package/components/Modal/index.js +1 -1
- package/components/NotificationPanel/index.js +1 -1
- package/components/RadioButton/componentdata.json +9 -9
- package/components/RadioButton/index.js +1 -1
- package/components/Textarea/Textarea.d.ts +4 -0
- package/components/Textarea/Textarea.d.ts.map +1 -1
- package/components/Textarea/componentdata.json +44 -6
- package/components/Textarea/index.js +1 -1
- package/components/Textarea/styles.module.scss +13 -110
- package/components/Textarea/styles.module.scss.d.ts +13 -8
- package/components/Tile/index.js +1 -1
- package/components/Validation/componentdata.json +3 -3
- package/components/Validation/index.js +1 -1
- package/constants-42547490.js +2 -0
- package/constants-42547490.js.map +1 -0
- package/constants.d.ts +7 -7
- package/constants.d.ts.map +1 -1
- package/hooks/useIcons.d.ts +4 -0
- package/hooks/useIcons.d.ts.map +1 -0
- package/index.js +1 -1
- package/package.json +1 -1
- package/scss/_input.scss +174 -0
- package/Button-72f96290.js +0 -2
- package/Button-72f96290.js.map +0 -1
- package/Checkbox-0ba01292.js +0 -2
- package/Checkbox-0ba01292.js.map +0 -1
- package/Close-80751ae6.js.map +0 -1
- package/FormGroup-68288be3.js +0 -2
- package/FormGroup-68288be3.js.map +0 -1
- package/Icon-9b4a8a2d.js.map +0 -1
- package/Modal-6b4a2c9c.js.map +0 -1
- package/RadioButton-84ca988e.js +0 -2
- package/RadioButton-84ca988e.js.map +0 -1
- package/Textarea-9c91191a.js +0 -2
- package/Textarea-9c91191a.js.map +0 -1
- package/Validation-ef9ee0ae.js.map +0 -1
- package/constants-a4b0b501.js +0 -2
- package/constants-a4b0b501.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,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{I as a}from"../../Icon-
|
|
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,2 +1,2 @@
|
|
|
1
|
-
import{M as s}from"../../Modal-
|
|
1
|
+
import{M as s}from"../../Modal-b7d10081.js";export{b as ModalSize,a as ModalVariants,M as default}from"../../Modal-b7d10081.js";import"../../_rollupPluginBabelHelpers-d0752906.js";import"react";import"../../index-9b84fabc.js";import"../../palette-f206f488.js";import"../../Button-8af0be6e.js";import"../../_tslib-51c8a283.js";import"../../color-acb834c6.js";import"../../index-19b48c51.js";import"../../grid-11a70eb7.js";import"../../Icon-04613a89.js";import"../../constants-42547490.js";import"../../Loader-b3fd59f4.js";import"../../uuid-8870ab4b.js";import"../Loader/styles.module.scss";import"../../useHover-037be19d.js";import"../../useWindowSize-73b47451.js";import"../Button/styles.module.scss";import"./styles.module.scss";import"../../AlertSignFill-e607ff43.js";import"../../Title-90910763.js";import"../Title/styles.module.scss";import"../../Close-9f68bcd0.js";import"../Close/styles.module.scss";import"../../useBreakpoint-324a9b14.js";import"react-dom";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../_rollupPluginBabelHelpers-d0752906.js";import e from"react";import{c as t}from"../../index-9b84fabc.js";import{p as o}from"../../palette-f206f488.js";import{I as n}from"../../Icon-
|
|
1
|
+
import{a}from"../../_rollupPluginBabelHelpers-d0752906.js";import e from"react";import{c as t}from"../../index-9b84fabc.js";import{p as o}from"../../palette-f206f488.js";import{I as n}from"../../Icon-04613a89.js";import"../../constants-42547490.js";import{a as i,A as r}from"../../AlertSignFill-e607ff43.js";import l from"./styles.module.scss";import{C as c}from"../../Close-9f68bcd0.js";import"../../_tslib-51c8a283.js";import"../Close/styles.module.scss";import"../../useBreakpoint-324a9b14.js";import"../../useWindowSize-73b47451.js";import"../../grid-11a70eb7.js";var s={info:{color:"kiwi",depth:50},warn:{color:"banana",depth:50},alert:{color:"cherry",depth:100},crisis:{color:"black",depth:0}},m={info:e.createElement(n,{svgIcon:function(a){var t=a.isExtraSmall,o=a.isHovered,n=e.createElement("path",{d:"M25.672 30.501a.682.682 0 01-.322-.272.835.835 0 01-.11-.443v-7.917l-.112-.112-3.651.194v.544c.148.015.314.05.495.104.18.055.316.112.406.172a.994.994 0 01.299.316.88.88 0 01.119.459v6.337a.879.879 0 01-.098.443.623.623 0 01-.335.257c-.09.035-.197.06-.32.074a8.883 8.883 0 01-.38.038v.544h4.709v-.544a2.45 2.45 0 01-.7-.194M24 37.604c-7.5 0-13.604-6.103-13.604-13.604 0-7.501 6.104-13.603 13.604-13.603 7.502 0 13.602 6.102 13.602 13.603 0 7.501-6.1 13.604-13.601 13.604m0-28.909C15.56 8.695 8.694 15.562 8.694 24c0 8.438 6.867 15.305 15.305 15.305 8.438 0 15.304-6.867 15.304-15.305 0-8.438-6.866-15.305-15.304-15.305m-.274 10.632a1.559 1.559 0 100-3.118 1.559 1.559 0 000 3.118"}),i=e.createElement("path",{d:"M25.672 30.501a.682.682 0 01-.322-.272.835.835 0 01-.11-.443v-7.917l-.112-.112-3.651.194v.544c.148.015.314.05.495.104.18.055.316.112.406.172a.994.994 0 01.299.316.88.88 0 01.119.459v6.337a.879.879 0 01-.098.443.623.623 0 01-.335.257c-.09.035-.197.06-.32.074a8.883 8.883 0 01-.38.038v.544h4.709v-.544a2.45 2.45 0 01-.7-.194M24 37.604c-7.5 0-13.604-6.103-13.604-13.604 0-7.501 6.104-13.603 13.604-13.603 7.502 0 13.602 6.102 13.602 13.603 0 7.501-6.1 13.604-13.601 13.604m0-28.909C15.56 8.695 8.694 15.562 8.694 24c0 8.438 6.867 15.305 15.305 15.305 8.438 0 15.304-6.867 15.304-15.305 0-8.438-6.866-15.305-15.304-15.305m-.274 8.632a1.559 1.559 0 100-3.118 1.559 1.559 0 000 3.118"}),r=e.createElement("path",{d:"M25.668 30.487a.68.68 0 01-.32-.271.833.833 0 01-.111-.442v-7.9l-.112-.112-3.643.193v.543c.148.015.313.05.495.104.18.055.315.112.405.172a.991.991 0 01.297.315.877.877 0 01.119.458v6.324c0 .182-.032.33-.097.442a.622.622 0 01-.334.256c-.09.035-.197.06-.32.074-.124.015-.25.028-.38.038v.543h4.7v-.543a2.445 2.445 0 01-.699-.194M24 37.575c-7.485 0-13.575-6.09-13.575-13.575 0-7.485 6.09-13.574 13.575-13.574 7.486 0 13.574 6.089 13.574 13.574 0 7.485-6.088 13.575-13.574 13.575m0-28.848C15.58 8.727 8.728 15.58 8.728 24S15.579 39.273 24 39.273c8.42 0 15.272-6.853 15.272-15.273S32.421 8.727 24 8.727m-.274 10.61a1.556 1.556 0 100-3.112 1.556 1.556 0 000 3.112"});return t?o?e.createElement("path",{d:"M25.668 30.487a.68.68 0 01-.32-.271.833.833 0 01-.111-.442v-7.9l-.112-.112-3.643.193v.543c.148.015.313.05.495.104.18.055.315.112.405.172a.991.991 0 01.297.315.877.877 0 01.119.458v6.324c0 .182-.032.33-.097.442a.622.622 0 01-.334.256c-.09.035-.197.06-.32.074-.124.015-.25.028-.38.038v.543h4.7v-.543a2.445 2.445 0 01-.699-.194M24 37.575c-7.485 0-13.575-6.09-13.575-13.575 0-7.485 6.09-13.574 13.575-13.574 7.486 0 13.574 6.089 13.574 13.574 0 7.485-6.088 13.575-13.574 13.575m0-28.848C15.58 8.727 8.728 15.58 8.728 24S15.579 39.273 24 39.273c8.42 0 15.272-6.853 15.272-15.273S32.421 8.727 24 8.727m-.274 8.084a1.556 1.556 0 100-3.112 1.556 1.556 0 000 3.112"}):r:o?i:n},color:o.kiwi900,hoverColor:o.kiwi900}),warn:e.createElement(n,{svgIcon:i,color:"black",hoverColor:"black"}),alert:e.createElement(n,{svgIcon:r,color:o.cherry500,hoverColor:o.cherry500}),alertLabel:e.createElement(n,{svgIcon:i,color:o.cherry500,hoverColor:o.cherry500}),crisis:e.createElement(n,{svgIcon:r,color:o.banana200,hoverColor:o.banana200})},p=e.forwardRef((function(o,n){var i,r,s=o.children,p=o.variant,f=void 0===p?"info":p,v=o.shadow,d=void 0!==v&&v,h=o.dismissable,b=void 0!==h&&h,_=o.onClick,u=o.label,E=o.fluid,C=void 0!==E&&E,w=o.size,j=o.className,g=o.testId;var k;return k=e.createElement("div",{ref:n,"data-testid":g,className:t(l["notification-panel"],l["notification-panel--"+w],l["notification-panel--"+f],(i={},a(i,l["notification-panel--shadow"],!C&&d),a(i,l["notification-panel--haslabel"],!!u&&!s),a(i,l["notification-panel--dismissable"],b),i),j||"")},e.createElement("span",{className:l["notification-panel__icon"]},m["alert"===f&&u&&!s?"alertLabel":f]),e.createElement("section",{"aria-label":function(){if(s){var a="";return e.Children.map(s,(function(e){"string"==typeof e&&(a+=e)})),a}return""}(),className:t(l["notification-panel__content"],(r={},a(r,l["notification-panel__content--crisis"],"crisis"===f),a(r,l["notification-panel__content--haslabel"],!!u&&!s),a(r,l["notification-panel__content--isred"],"alert"===f&&!!u&&!s),r))},u?e.createElement("h1",{className:l["notification-panel__label"],dangerouslySetInnerHTML:{__html:u}}):null,s),b?e.createElement("span",{className:l["notification-panel__action-column"]},e.createElement(c,{ariaLabel:o.ariaLabelCloseBtn,onClick:_})):null),C?e.createElement("div",{className:t(l["notification-panel__fluidwrapper"],l["notification-panel__fluidwrapper--"+f],a({},l["notification-panel__fluidwrapper--shadow"],d))},k):k}));export default p;export{s as variantToColorMap};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -112,25 +112,25 @@
|
|
|
112
112
|
"required": false,
|
|
113
113
|
"type": {
|
|
114
114
|
"name": "enum",
|
|
115
|
-
"raw": "\"
|
|
115
|
+
"raw": "\"onwhite\" | \"ongrey\" | \"onblueberry\" | \"ondark\" | \"oninvalid\" | undefined",
|
|
116
116
|
"value": [
|
|
117
117
|
{
|
|
118
118
|
"value": "undefined"
|
|
119
119
|
},
|
|
120
120
|
{
|
|
121
|
-
"value": "\"
|
|
121
|
+
"value": "\"onwhite\""
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
|
-
"value": "\"
|
|
124
|
+
"value": "\"ongrey\""
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
|
-
"value": "\"
|
|
127
|
+
"value": "\"onblueberry\""
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
|
-
"value": "\"
|
|
130
|
+
"value": "\"ondark\""
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
|
-
"value": "\"
|
|
133
|
+
"value": "\"oninvalid\""
|
|
134
134
|
}
|
|
135
135
|
]
|
|
136
136
|
}
|
|
@@ -190,16 +190,16 @@
|
|
|
190
190
|
"required": false,
|
|
191
191
|
"type": {
|
|
192
192
|
"name": "enum",
|
|
193
|
-
"raw": "\"
|
|
193
|
+
"raw": "\"normal\" | \"bigform\" | undefined",
|
|
194
194
|
"value": [
|
|
195
195
|
{
|
|
196
196
|
"value": "undefined"
|
|
197
197
|
},
|
|
198
198
|
{
|
|
199
|
-
"value": "\"
|
|
199
|
+
"value": "\"normal\""
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
|
-
"value": "\"
|
|
202
|
+
"value": "\"bigform\""
|
|
203
203
|
}
|
|
204
204
|
]
|
|
205
205
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{R as o}from"../../RadioButton-
|
|
1
|
+
import{R as o}from"../../RadioButton-d90884c9.js";export{R as RadioButton,R as default}from"../../RadioButton-d90884c9.js";import"../../_rollupPluginBabelHelpers-d0752906.js";import"react";import"../../index-9b84fabc.js";import"../../uuid-8870ab4b.js";import"./styles.module.scss";import"../../constants-42547490.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -25,6 +25,10 @@ interface TextareaProps extends HTMLTextareaProps {
|
|
|
25
25
|
grow?: boolean;
|
|
26
26
|
/** Error text to show above the component */
|
|
27
27
|
errorText?: string;
|
|
28
|
+
/** Component shown after label */
|
|
29
|
+
afterLabelChildren?: React.ReactNode;
|
|
30
|
+
/** Component shown under label */
|
|
31
|
+
belowLabelChildren?: React.ReactNode;
|
|
28
32
|
}
|
|
29
33
|
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
30
34
|
export default Textarea;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAI3D,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAG9D,UAAU,aAAc,SAAQ,iBAAiB;IAC/C,iCAAiC;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uCAAuC;IACvC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wDAAwD;IACxD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,kDAAkD;IAClD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,0CAA0C;IAC1C,IAAI,CAAC,EAAE,MAAM,OAAO,QAAQ,CAAC;IAC7B,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+BAA+B;IAC/B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAI3D,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAG9D,UAAU,aAAc,SAAQ,iBAAiB;IAC/C,iCAAiC;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uCAAuC;IACvC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wDAAwD;IACxD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,kDAAkD;IAClD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,0CAA0C;IAC1C,IAAI,CAAC,EAAE,MAAM,OAAO,QAAQ,CAAC;IAC7B,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+BAA+B;IAC/B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kCAAkC;IAClC,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,kCAAkC;IAClC,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACtC;AAED,QAAA,MAAM,QAAQ,2FA0HZ,CAAC;AAEH,eAAe,QAAQ,CAAC"}
|