@helsenorge/designsystem-react 1.0.0-beta87 → 1.0.0-beta91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/Button-2be46c88.js +2 -0
  2. package/Button-2be46c88.js.map +1 -0
  3. package/Checkbox-0ba01292.js +2 -0
  4. package/Checkbox-0ba01292.js.map +1 -0
  5. package/Close-80751ae6.js +2 -0
  6. package/Close-80751ae6.js.map +1 -0
  7. package/FormGroup-9555dd73.js +2 -0
  8. package/FormGroup-9555dd73.js.map +1 -0
  9. package/Icon-9b4a8a2d.js +2 -0
  10. package/Icon-9b4a8a2d.js.map +1 -0
  11. package/Loader-3589bdb1.js +2 -0
  12. package/Loader-3589bdb1.js.map +1 -0
  13. package/Modal-e7d8aac4.js +2 -0
  14. package/Modal-e7d8aac4.js.map +1 -0
  15. package/RadioButton-84ca988e.js +2 -0
  16. package/RadioButton-84ca988e.js.map +1 -0
  17. package/Textarea-9c91191a.js +2 -0
  18. package/Textarea-9c91191a.js.map +1 -0
  19. package/Validation-1236e8ef.js +2 -0
  20. package/Validation-1236e8ef.js.map +1 -0
  21. package/components/AnchorLink/AnchorLink.d.ts.map +1 -1
  22. package/components/AnchorLink/index.js +1 -1
  23. package/components/Avatar/index.js +1 -1
  24. package/components/Button/Button.d.ts.map +1 -1
  25. package/components/Button/index.js +1 -1
  26. package/components/ButtonWithModal/componentdata.json +61 -1
  27. package/components/ButtonWithModal/index.js +1 -1
  28. package/components/Checkbox/Checkbox.d.ts +3 -3
  29. package/components/Checkbox/Checkbox.d.ts.map +1 -1
  30. package/components/Checkbox/componentdata.json +13 -7
  31. package/components/Checkbox/index.js +1 -1
  32. package/components/Close/index.js +1 -1
  33. package/components/ExpanderList/index.js +1 -1
  34. package/components/FormExample/FormExample.d.ts +7 -5
  35. package/components/FormExample/FormExample.d.ts.map +1 -1
  36. package/components/FormExample/componentdata.json +9 -3
  37. package/components/FormExample/index.js +1 -1
  38. package/components/FormExample/index.js.map +1 -1
  39. package/components/FormGroup/FormGroup.d.ts +5 -6
  40. package/components/FormGroup/FormGroup.d.ts.map +1 -1
  41. package/components/FormGroup/componentdata.json +32 -7
  42. package/components/FormGroup/index.js +1 -1
  43. package/components/FormGroup/styles.module.scss +12 -3
  44. package/components/Icons/AcupunctureBack.js +1 -1
  45. package/components/Icons/Icon.js +1 -1
  46. package/components/Icons/NoEye.js +1 -1
  47. package/components/Icons/SectionSign.js +1 -1
  48. package/components/Icons/SpeechBubble.js +1 -1
  49. package/components/Icons/SupportingPerson.js +1 -1
  50. package/components/Icons/Syringe.js +1 -1
  51. package/components/Icons/index.js +1 -1
  52. package/components/LinkList/LinkList.d.ts +2 -0
  53. package/components/LinkList/LinkList.d.ts.map +1 -1
  54. package/components/LinkList/index.js +1 -1
  55. package/components/Loader/Loader.d.ts +7 -1
  56. package/components/Loader/Loader.d.ts.map +1 -1
  57. package/components/Loader/componentdata.json +32 -1
  58. package/components/Loader/index.js +1 -1
  59. package/components/Loader/styles.module.scss +19 -4
  60. package/components/Modal/Modal.d.ts +9 -0
  61. package/components/Modal/Modal.d.ts.map +1 -1
  62. package/components/Modal/componentdata.json +63 -1
  63. package/components/Modal/index.js +1 -1
  64. package/components/Modal/styles.module.scss +14 -3
  65. package/components/Modal/styles.module.scss.d.ts +3 -0
  66. package/components/NotificationPanel/NotificationPanel.d.ts.map +1 -1
  67. package/components/NotificationPanel/index.js +1 -1
  68. package/components/NotificationPanel/styles.module.scss +0 -51
  69. package/components/NotificationPanel/styles.module.scss.d.ts +0 -2
  70. package/components/RadioButton/RadioButton.d.ts +31 -0
  71. package/components/RadioButton/RadioButton.d.ts.map +1 -0
  72. package/components/RadioButton/componentdata.json +265 -0
  73. package/components/RadioButton/index.d.ts +3 -0
  74. package/components/RadioButton/index.d.ts.map +1 -0
  75. package/components/RadioButton/index.js +2 -0
  76. package/components/RadioButton/index.js.map +1 -0
  77. package/components/RadioButton/styles.module.scss +236 -0
  78. package/components/RadioButton/styles.module.scss.d.ts +23 -0
  79. package/components/Textarea/Textarea.d.ts +31 -0
  80. package/components/Textarea/Textarea.d.ts.map +1 -0
  81. package/components/Textarea/componentdata.json +527 -0
  82. package/components/Textarea/index.d.ts +3 -0
  83. package/components/Textarea/index.d.ts.map +1 -0
  84. package/components/Textarea/index.js +2 -0
  85. package/components/Textarea/index.js.map +1 -0
  86. package/components/Textarea/styles.module.scss +154 -0
  87. package/components/Textarea/styles.module.scss.d.ts +21 -0
  88. package/components/Tile/Tile.d.ts.map +1 -1
  89. package/components/Tile/index.js +1 -1
  90. package/components/Validation/Validation.d.ts +2 -2
  91. package/components/Validation/Validation.d.ts.map +1 -1
  92. package/components/Validation/componentdata.json +3 -3
  93. package/components/Validation/index.js +1 -1
  94. package/constants-a4b0b501.js +2 -0
  95. package/constants-a4b0b501.js.map +1 -0
  96. package/constants.d.ts +29 -0
  97. package/constants.d.ts.map +1 -1
  98. package/package.json +1 -1
  99. package/Button-55952154.js +0 -2
  100. package/Button-55952154.js.map +0 -1
  101. package/Checkbox-46666e69.js +0 -2
  102. package/Checkbox-46666e69.js.map +0 -1
  103. package/Close-a6cbd165.js +0 -2
  104. package/Close-a6cbd165.js.map +0 -1
  105. package/FormGroup-56d60079.js +0 -2
  106. package/FormGroup-56d60079.js.map +0 -1
  107. package/Loader-6ff0d481.js +0 -2
  108. package/Loader-6ff0d481.js.map +0 -1
  109. package/Modal-ac3a4757.js +0 -2
  110. package/Modal-ac3a4757.js.map +0 -1
  111. package/Validation-372a97b9.js +0 -2
  112. package/Validation-372a97b9.js.map +0 -1
  113. package/X-8d8ff918.js +0 -2
  114. package/X-8d8ff918.js.map +0 -1
  115. package/constants-d919236e.js +0 -2
  116. package/constants-d919236e.js.map +0 -1
@@ -0,0 +1,527 @@
1
+ {
2
+ "props": {
3
+ "defaultValue": {
4
+ "defaultValue": null,
5
+ "description": "initial value for textarea",
6
+ "name": "defaultValue",
7
+ "parent": {
8
+ "fileName": "src/components/Textarea/Textarea.tsx",
9
+ "name": "TextareaProps"
10
+ },
11
+ "declarations": [
12
+ {
13
+ "fileName": "src/components/Textarea/Textarea.tsx",
14
+ "name": "TextareaProps"
15
+ }
16
+ ],
17
+ "required": false,
18
+ "type": {
19
+ "name": "string"
20
+ }
21
+ },
22
+ "maxCharacters": {
23
+ "defaultValue": null,
24
+ "description": "max character limit in textarea",
25
+ "name": "maxCharacters",
26
+ "parent": {
27
+ "fileName": "src/components/Textarea/Textarea.tsx",
28
+ "name": "TextareaProps"
29
+ },
30
+ "declarations": [
31
+ {
32
+ "fileName": "src/components/Textarea/Textarea.tsx",
33
+ "name": "TextareaProps"
34
+ }
35
+ ],
36
+ "required": false,
37
+ "type": {
38
+ "name": "number"
39
+ }
40
+ },
41
+ "maxText": {
42
+ "defaultValue": null,
43
+ "description": "The text is displayed in the end of the text-counter",
44
+ "name": "maxText",
45
+ "parent": {
46
+ "fileName": "src/components/Textarea/Textarea.tsx",
47
+ "name": "TextareaProps"
48
+ },
49
+ "declarations": [
50
+ {
51
+ "fileName": "src/components/Textarea/Textarea.tsx",
52
+ "name": "TextareaProps"
53
+ }
54
+ ],
55
+ "required": false,
56
+ "type": {
57
+ "name": "string"
58
+ }
59
+ },
60
+ "testId": {
61
+ "defaultValue": null,
62
+ "description": "Sets the data-testid attribute.",
63
+ "name": "testId",
64
+ "parent": {
65
+ "fileName": "src/components/Textarea/Textarea.tsx",
66
+ "name": "TextareaProps"
67
+ },
68
+ "declarations": [
69
+ {
70
+ "fileName": "src/components/Textarea/Textarea.tsx",
71
+ "name": "TextareaProps"
72
+ }
73
+ ],
74
+ "required": false,
75
+ "type": {
76
+ "name": "string"
77
+ }
78
+ },
79
+ "marginBottom": {
80
+ "defaultValue": null,
81
+ "description": "If true, the component will have a bottom margin.",
82
+ "name": "marginBottom",
83
+ "parent": {
84
+ "fileName": "src/components/Textarea/Textarea.tsx",
85
+ "name": "TextareaProps"
86
+ },
87
+ "declarations": [
88
+ {
89
+ "fileName": "src/components/Textarea/Textarea.tsx",
90
+ "name": "TextareaProps"
91
+ }
92
+ ],
93
+ "required": false,
94
+ "type": {
95
+ "name": "boolean"
96
+ }
97
+ },
98
+ "transparent": {
99
+ "defaultValue": null,
100
+ "description": "If true, the component will be transparent.",
101
+ "name": "transparent",
102
+ "parent": {
103
+ "fileName": "src/components/Textarea/Textarea.tsx",
104
+ "name": "TextareaProps"
105
+ },
106
+ "declarations": [
107
+ {
108
+ "fileName": "src/components/Textarea/Textarea.tsx",
109
+ "name": "TextareaProps"
110
+ }
111
+ ],
112
+ "required": false,
113
+ "type": {
114
+ "name": "boolean"
115
+ }
116
+ },
117
+ "mode": {
118
+ "defaultValue": null,
119
+ "description": "Changes the visuals of the textarea",
120
+ "name": "mode",
121
+ "parent": {
122
+ "fileName": "src/components/Textarea/Textarea.tsx",
123
+ "name": "TextareaProps"
124
+ },
125
+ "declarations": [
126
+ {
127
+ "fileName": "src/components/Textarea/Textarea.tsx",
128
+ "name": "TextareaProps"
129
+ }
130
+ ],
131
+ "required": false,
132
+ "type": {
133
+ "name": "enum",
134
+ "raw": "\"OnWhite\" | \"OnGrey\" | \"OnBlueberry\" | \"OnDark\" | \"OnError\" | undefined",
135
+ "value": [
136
+ {
137
+ "value": "undefined"
138
+ },
139
+ {
140
+ "value": "\"OnWhite\""
141
+ },
142
+ {
143
+ "value": "\"OnGrey\""
144
+ },
145
+ {
146
+ "value": "\"OnBlueberry\""
147
+ },
148
+ {
149
+ "value": "\"OnDark\""
150
+ },
151
+ {
152
+ "value": "\"OnError\""
153
+ }
154
+ ]
155
+ }
156
+ },
157
+ "label": {
158
+ "defaultValue": null,
159
+ "description": "Label of the input",
160
+ "name": "label",
161
+ "parent": {
162
+ "fileName": "src/components/Textarea/Textarea.tsx",
163
+ "name": "TextareaProps"
164
+ },
165
+ "declarations": [
166
+ {
167
+ "fileName": "src/components/Textarea/Textarea.tsx",
168
+ "name": "TextareaProps"
169
+ }
170
+ ],
171
+ "required": false,
172
+ "type": {
173
+ "name": "string"
174
+ }
175
+ },
176
+ "maxRows": {
177
+ "defaultValue": null,
178
+ "description": "max rows",
179
+ "name": "maxRows",
180
+ "parent": {
181
+ "fileName": "src/components/Textarea/Textarea.tsx",
182
+ "name": "TextareaProps"
183
+ },
184
+ "declarations": [
185
+ {
186
+ "fileName": "src/components/Textarea/Textarea.tsx",
187
+ "name": "TextareaProps"
188
+ }
189
+ ],
190
+ "required": false,
191
+ "type": {
192
+ "name": "number"
193
+ }
194
+ },
195
+ "minRows": {
196
+ "defaultValue": null,
197
+ "description": "min rows",
198
+ "name": "minRows",
199
+ "parent": {
200
+ "fileName": "src/components/Textarea/Textarea.tsx",
201
+ "name": "TextareaProps"
202
+ },
203
+ "declarations": [
204
+ {
205
+ "fileName": "src/components/Textarea/Textarea.tsx",
206
+ "name": "TextareaProps"
207
+ }
208
+ ],
209
+ "required": false,
210
+ "type": {
211
+ "name": "number"
212
+ }
213
+ },
214
+ "grow": {
215
+ "defaultValue": null,
216
+ "description": "auto-grows until maxRows",
217
+ "name": "grow",
218
+ "parent": {
219
+ "fileName": "src/components/Textarea/Textarea.tsx",
220
+ "name": "TextareaProps"
221
+ },
222
+ "declarations": [
223
+ {
224
+ "fileName": "src/components/Textarea/Textarea.tsx",
225
+ "name": "TextareaProps"
226
+ }
227
+ ],
228
+ "required": false,
229
+ "type": {
230
+ "name": "boolean"
231
+ }
232
+ },
233
+ "errorText": {
234
+ "defaultValue": null,
235
+ "description": "Error text to show above the component",
236
+ "name": "errorText",
237
+ "parent": {
238
+ "fileName": "src/components/Textarea/Textarea.tsx",
239
+ "name": "TextareaProps"
240
+ },
241
+ "declarations": [
242
+ {
243
+ "fileName": "src/components/Textarea/Textarea.tsx",
244
+ "name": "TextareaProps"
245
+ }
246
+ ],
247
+ "required": false,
248
+ "type": {
249
+ "name": "string"
250
+ }
251
+ },
252
+ "autoFocus": {
253
+ "defaultValue": null,
254
+ "description": "",
255
+ "name": "autoFocus",
256
+ "parent": {
257
+ "fileName": "designsystem/src/constants.ts",
258
+ "name": "HTMLTextareaProps"
259
+ },
260
+ "declarations": [
261
+ {
262
+ "fileName": "designsystem/src/constants.ts",
263
+ "name": "HTMLTextareaProps"
264
+ }
265
+ ],
266
+ "required": false,
267
+ "type": {
268
+ "name": "boolean"
269
+ }
270
+ },
271
+ "disabled": {
272
+ "defaultValue": null,
273
+ "description": "",
274
+ "name": "disabled",
275
+ "parent": {
276
+ "fileName": "designsystem/src/constants.ts",
277
+ "name": "HTMLTextareaProps"
278
+ },
279
+ "declarations": [
280
+ {
281
+ "fileName": "designsystem/src/constants.ts",
282
+ "name": "HTMLTextareaProps"
283
+ }
284
+ ],
285
+ "required": false,
286
+ "type": {
287
+ "name": "boolean"
288
+ }
289
+ },
290
+ "form": {
291
+ "defaultValue": null,
292
+ "description": "",
293
+ "name": "form",
294
+ "parent": {
295
+ "fileName": "designsystem/src/constants.ts",
296
+ "name": "HTMLTextareaProps"
297
+ },
298
+ "declarations": [
299
+ {
300
+ "fileName": "designsystem/src/constants.ts",
301
+ "name": "HTMLTextareaProps"
302
+ }
303
+ ],
304
+ "required": false,
305
+ "type": {
306
+ "name": "string"
307
+ }
308
+ },
309
+ "formNoValidate": {
310
+ "defaultValue": null,
311
+ "description": "",
312
+ "name": "formNoValidate",
313
+ "parent": {
314
+ "fileName": "designsystem/src/constants.ts",
315
+ "name": "HTMLTextareaProps"
316
+ },
317
+ "declarations": [
318
+ {
319
+ "fileName": "designsystem/src/constants.ts",
320
+ "name": "HTMLTextareaProps"
321
+ }
322
+ ],
323
+ "required": false,
324
+ "type": {
325
+ "name": "boolean"
326
+ }
327
+ },
328
+ "formTarget": {
329
+ "defaultValue": null,
330
+ "description": "",
331
+ "name": "formTarget",
332
+ "parent": {
333
+ "fileName": "designsystem/src/constants.ts",
334
+ "name": "HTMLTextareaProps"
335
+ },
336
+ "declarations": [
337
+ {
338
+ "fileName": "designsystem/src/constants.ts",
339
+ "name": "HTMLTextareaProps"
340
+ }
341
+ ],
342
+ "required": false,
343
+ "type": {
344
+ "name": "string"
345
+ }
346
+ },
347
+ "name": {
348
+ "defaultValue": null,
349
+ "description": "",
350
+ "name": "name",
351
+ "parent": {
352
+ "fileName": "designsystem/src/constants.ts",
353
+ "name": "HTMLTextareaProps"
354
+ },
355
+ "declarations": [
356
+ {
357
+ "fileName": "designsystem/src/constants.ts",
358
+ "name": "HTMLTextareaProps"
359
+ }
360
+ ],
361
+ "required": false,
362
+ "type": {
363
+ "name": "string"
364
+ }
365
+ },
366
+ "id": {
367
+ "defaultValue": null,
368
+ "description": "",
369
+ "name": "id",
370
+ "parent": {
371
+ "fileName": "designsystem/src/constants.ts",
372
+ "name": "HTMLTextareaProps"
373
+ },
374
+ "declarations": [
375
+ {
376
+ "fileName": "designsystem/src/constants.ts",
377
+ "name": "HTMLTextareaProps"
378
+ }
379
+ ],
380
+ "required": false,
381
+ "type": {
382
+ "name": "string"
383
+ }
384
+ },
385
+ "autocomplete": {
386
+ "defaultValue": null,
387
+ "description": "",
388
+ "name": "autocomplete",
389
+ "parent": {
390
+ "fileName": "designsystem/src/constants.ts",
391
+ "name": "HTMLTextareaProps"
392
+ },
393
+ "declarations": [
394
+ {
395
+ "fileName": "designsystem/src/constants.ts",
396
+ "name": "HTMLTextareaProps"
397
+ }
398
+ ],
399
+ "required": false,
400
+ "type": {
401
+ "name": "enum",
402
+ "raw": "\"off\" | \"on\" | undefined",
403
+ "value": [
404
+ {
405
+ "value": "undefined"
406
+ },
407
+ {
408
+ "value": "\"off\""
409
+ },
410
+ {
411
+ "value": "\"on\""
412
+ }
413
+ ]
414
+ }
415
+ },
416
+ "placeholder": {
417
+ "defaultValue": null,
418
+ "description": "",
419
+ "name": "placeholder",
420
+ "parent": {
421
+ "fileName": "designsystem/src/constants.ts",
422
+ "name": "HTMLTextareaProps"
423
+ },
424
+ "declarations": [
425
+ {
426
+ "fileName": "designsystem/src/constants.ts",
427
+ "name": "HTMLTextareaProps"
428
+ }
429
+ ],
430
+ "required": false,
431
+ "type": {
432
+ "name": "string"
433
+ }
434
+ },
435
+ "readonly": {
436
+ "defaultValue": null,
437
+ "description": "",
438
+ "name": "readonly",
439
+ "parent": {
440
+ "fileName": "designsystem/src/constants.ts",
441
+ "name": "HTMLTextareaProps"
442
+ },
443
+ "declarations": [
444
+ {
445
+ "fileName": "designsystem/src/constants.ts",
446
+ "name": "HTMLTextareaProps"
447
+ }
448
+ ],
449
+ "required": false,
450
+ "type": {
451
+ "name": "boolean"
452
+ }
453
+ },
454
+ "required": {
455
+ "defaultValue": null,
456
+ "description": "",
457
+ "name": "required",
458
+ "parent": {
459
+ "fileName": "designsystem/src/constants.ts",
460
+ "name": "HTMLTextareaProps"
461
+ },
462
+ "declarations": [
463
+ {
464
+ "fileName": "designsystem/src/constants.ts",
465
+ "name": "HTMLTextareaProps"
466
+ }
467
+ ],
468
+ "required": false,
469
+ "type": {
470
+ "name": "boolean"
471
+ }
472
+ },
473
+ "spellcheck": {
474
+ "defaultValue": null,
475
+ "description": "",
476
+ "name": "spellcheck",
477
+ "parent": {
478
+ "fileName": "designsystem/src/constants.ts",
479
+ "name": "HTMLTextareaProps"
480
+ },
481
+ "declarations": [
482
+ {
483
+ "fileName": "designsystem/src/constants.ts",
484
+ "name": "HTMLTextareaProps"
485
+ }
486
+ ],
487
+ "required": false,
488
+ "type": {
489
+ "name": "enum",
490
+ "raw": "\"true\" | \"default\" | \"false\" | undefined",
491
+ "value": [
492
+ {
493
+ "value": "undefined"
494
+ },
495
+ {
496
+ "value": "\"true\""
497
+ },
498
+ {
499
+ "value": "\"default\""
500
+ },
501
+ {
502
+ "value": "\"false\""
503
+ }
504
+ ]
505
+ }
506
+ },
507
+ "aria-invalid": {
508
+ "defaultValue": null,
509
+ "description": "",
510
+ "name": "aria-invalid",
511
+ "parent": {
512
+ "fileName": "designsystem/src/constants.ts",
513
+ "name": "HTMLTextareaProps"
514
+ },
515
+ "declarations": [
516
+ {
517
+ "fileName": "designsystem/src/constants.ts",
518
+ "name": "HTMLTextareaProps"
519
+ }
520
+ ],
521
+ "required": false,
522
+ "type": {
523
+ "name": "boolean"
524
+ }
525
+ }
526
+ }
527
+ }
@@ -0,0 +1,3 @@
1
+ import Textarea from './Textarea';
2
+ export default Textarea;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/index.tsx"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,2 @@
1
+ import{T as s}from"../../Textarea-9c91191a.js";export{T as default}from"../../Textarea-9c91191a.js";import"../../_rollupPluginBabelHelpers-d0752906.js";import"../../_tslib-51c8a283.js";import"react";import"../../index-9b84fabc.js";import"./styles.module.scss";import"../../constants-a4b0b501.js";import"../../uuid-8870ab4b.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,154 @@
1
+ @import '../../scss/_spacers.scss';
2
+ @import '../../scss/_breakpoints.scss';
3
+ @import '../../scss/_palette.scss';
4
+ @import '../../scss/_font-settings.scss';
5
+
6
+ .textarea {
7
+ width: 100%;
8
+ line-height: 0;
9
+
10
+ &__error-text {
11
+ font-size: $font-size-sm;
12
+ line-height: $font-size-sm;
13
+ font-weight: 600;
14
+ color: $cherry500;
15
+ margin-top: 0;
16
+ }
17
+
18
+ &--gutterBottom {
19
+ margin-bottom: getSpacer(s);
20
+ }
21
+
22
+ &__label {
23
+ line-height: getSpacer(m);
24
+ font-size: $font-size-sm;
25
+ font-weight: 600;
26
+ padding-bottom: getSpacer(2xs);
27
+
28
+ @media (min-width: map-get($grid-breakpoints, md)) {
29
+ line-height: getSpacer(l);
30
+ font-size: $font-size-md;
31
+ }
32
+
33
+ &--OnDark {
34
+ color: $white;
35
+ }
36
+ }
37
+
38
+ &__input {
39
+ line-height: 26px;
40
+ font-size: $font-size-sm;
41
+ width: 100%;
42
+ padding: 16px;
43
+ resize: none;
44
+ border: $neutral700 2px solid;
45
+ outline: none;
46
+
47
+ @media (min-width: map-get($grid-breakpoints, md)) {
48
+ line-height: 28px;
49
+ font-size: $font-size-md;
50
+ }
51
+
52
+ &:hover {
53
+ background: $neutral50;
54
+ border-color: $neutral700;
55
+ box-shadow: 0px 0px 0px 1px $neutral700;
56
+ }
57
+ &:focus {
58
+ background: $white;
59
+ border-radius: 0;
60
+ border-color: $neutral900;
61
+ box-shadow: 0px 0px 0px 2px $neutral900;
62
+ }
63
+
64
+ &:disabled {
65
+ cursor: not-allowed;
66
+ background: $neutral50;
67
+ border-color: $neutral500;
68
+ color: $neutral500;
69
+ }
70
+ &::placeholder {
71
+ color: $neutral500;
72
+ }
73
+
74
+ &--OnBlueberry {
75
+ border-color: $blueberry500;
76
+
77
+ &:hover {
78
+ background: $blueberry50;
79
+ box-shadow: 0px 0px 0px 1px $blueberry500;
80
+ border-color: $blueberry500;
81
+ }
82
+
83
+ &:focus {
84
+ background: $white;
85
+ border-color: $neutral900;
86
+ box-shadow: 0px 0px 0px 2px $neutral900;
87
+ }
88
+ &:disabled {
89
+ background: $neutral50;
90
+ border-color: $neutral500;
91
+ color: $neutral500;
92
+ }
93
+ }
94
+ &--OnDark {
95
+ border-color: $blueberry900;
96
+ &:hover {
97
+ background: $blueberry50;
98
+ border-color: $blueberry900;
99
+ box-shadow: 0px 0px 0px 1px $blueberry900;
100
+ }
101
+ &:focus {
102
+ background: $white;
103
+ border-color: $neutral900;
104
+ box-shadow: 0px 0px 0px 2px $neutral900;
105
+ }
106
+ &:disabled {
107
+ background: $neutral50;
108
+ }
109
+ }
110
+ &--invalid {
111
+ border-color: $cherry500;
112
+ &:focus {
113
+ border-color: $cherry500;
114
+ box-shadow: 0px 0px 0px 2px $cherry500;
115
+ }
116
+ }
117
+
118
+ &--transparent {
119
+ background: transparent;
120
+ &:hover {
121
+ background: transparent;
122
+ }
123
+ &:focus {
124
+ background: $white;
125
+ }
126
+ }
127
+ }
128
+
129
+ &__counter-wrapper {
130
+ display: flex;
131
+ justify-content: end;
132
+ padding-top: getSpacer(xs);
133
+ padding-right: 2px;
134
+ font-size: $font-size-sm;
135
+ line-height: 28px;
136
+
137
+ @media (min-width: map-get($grid-breakpoints, md)) {
138
+ line-height: 30px;
139
+ font-size: $font-size-md;
140
+ }
141
+
142
+ p {
143
+ margin: 0;
144
+ }
145
+
146
+ &--OnDark {
147
+ color: $white;
148
+ }
149
+ &--invalid {
150
+ color: $cherry500;
151
+ font-weight: 600;
152
+ }
153
+ }
154
+ }