@atlaskit/textarea 4.5.1 → 4.5.2
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 +6 -0
- package/codemods/utils.tsx +103 -103
- package/dist/cjs/text-area.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/text-area.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/text-area.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +4 -12
- package/report.api.md +317 -399
- package/dist/types-ts4.0/component-tokens.d.ts +0 -52
- package/dist/types-ts4.0/index.d.ts +0 -4
- package/dist/types-ts4.0/styles.d.ts +0 -12
- package/dist/types-ts4.0/text-area.d.ts +0 -14
- package/dist/types-ts4.0/theme.d.ts +0 -174
- package/dist/types-ts4.0/types.d.ts +0 -96
package/report.api.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/textarea"
|
|
1
|
+
## API Report File for "@atlaskit/textarea"
|
|
2
2
|
|
|
3
|
-
> Do not edit this file.
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
<!--
|
|
6
|
+
Generated API Report version: 2.0
|
|
7
|
+
-->
|
|
4
8
|
|
|
5
9
|
[Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
6
10
|
|
|
@@ -13,396 +17,324 @@ import { ReactNode } from 'react';
|
|
|
13
17
|
import { ThemeProp } from '@atlaskit/theme/components';
|
|
14
18
|
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
15
19
|
|
|
16
|
-
|
|
20
|
+
// @public (undocumented)
|
|
21
|
+
type Combine<First, Second> = Omit<First, keyof Second> & Second;
|
|
17
22
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
* controls the appearance of the field.
|
|
21
|
-
* subtle shows styling on hover.
|
|
22
|
-
* none prevents all field styling.
|
|
23
|
-
*/
|
|
23
|
+
// @public (undocumented)
|
|
24
|
+
interface OwnProps extends WithAnalyticsEventsProps {
|
|
24
25
|
appearance?: 'standard' | 'subtle' | 'none';
|
|
25
|
-
|
|
26
|
-
* Set whether the fields should expand to fill available horizontal space.
|
|
27
|
-
*/
|
|
26
|
+
defaultValue?: string;
|
|
28
27
|
isCompact?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Sets the field as uneditable, with a changed hover state.
|
|
31
|
-
*/
|
|
32
28
|
isDisabled?: boolean;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
*/
|
|
29
|
+
isInvalid?: boolean;
|
|
30
|
+
isMonospaced?: boolean;
|
|
36
31
|
isReadOnly?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Set required for form that the field is part of.
|
|
39
|
-
*/
|
|
40
32
|
isRequired?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Sets styling to indicate that the input is invalid.
|
|
43
|
-
*/
|
|
44
|
-
isInvalid?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* The minimum number of rows of text to display
|
|
47
|
-
*/
|
|
48
|
-
minimumRows?: number;
|
|
49
|
-
/**
|
|
50
|
-
* The maxheight of the textarea
|
|
51
|
-
*/
|
|
52
33
|
maxHeight?: string;
|
|
53
|
-
|
|
54
|
-
* The value of the text-area.
|
|
55
|
-
*/
|
|
56
|
-
value?: string;
|
|
57
|
-
/**
|
|
58
|
-
* The default value of the textarea
|
|
59
|
-
*/
|
|
60
|
-
defaultValue?: string;
|
|
61
|
-
/**
|
|
62
|
-
* Name of the input form control
|
|
63
|
-
*/
|
|
34
|
+
minimumRows?: number;
|
|
64
35
|
name?: string;
|
|
65
|
-
/**
|
|
66
|
-
* The placeholder within the textarea
|
|
67
|
-
*/
|
|
68
|
-
placeholder?: string;
|
|
69
|
-
/**
|
|
70
|
-
* Handler to be called when the input is blurred
|
|
71
|
-
*/
|
|
72
36
|
onBlur?: React_2.FocusEventHandler<HTMLTextAreaElement>;
|
|
73
|
-
/**
|
|
74
|
-
* Handler to be called when the input changes.
|
|
75
|
-
*/
|
|
76
37
|
onChange?: React_2.ChangeEventHandler<HTMLTextAreaElement>;
|
|
77
|
-
/**
|
|
78
|
-
* Handler to be called when the input is focused
|
|
79
|
-
*/
|
|
80
38
|
onFocus?: React_2.FocusEventHandler<HTMLTextAreaElement>;
|
|
81
|
-
|
|
82
|
-
* Sets content text value to monospace
|
|
83
|
-
*/
|
|
84
|
-
isMonospaced?: boolean;
|
|
85
|
-
/**
|
|
86
|
-
* Enables the resizing of the textarea:
|
|
87
|
-
* auto: both directions.
|
|
88
|
-
* horizontal: only along the x axis.
|
|
89
|
-
* vertical: only along the y axis.
|
|
90
|
-
* smart (default): vertically grows and shrinks the textarea automatically to wrap your input text.
|
|
91
|
-
* none: explicitly disallow resizing on the textarea.
|
|
92
|
-
*/
|
|
39
|
+
placeholder?: string;
|
|
93
40
|
resize?: 'auto' | 'vertical' | 'horizontal' | 'smart' | 'none';
|
|
94
|
-
/**
|
|
95
|
-
* Enables native spell check on the `textarea` element.
|
|
96
|
-
*/
|
|
97
41
|
spellCheck?: boolean;
|
|
98
|
-
/**
|
|
99
|
-
* The theme function TextArea consumes to derive theming constants for use in styling its components
|
|
100
|
-
*/
|
|
101
|
-
theme?: any;
|
|
102
|
-
/**
|
|
103
|
-
* A `testId` prop is provided for specified elements, which is a unique
|
|
104
|
-
* string that appears as a data attribute `data-testid` in the rendered code,
|
|
105
|
-
* serving as a hook for automated tests
|
|
106
|
-
*/
|
|
107
42
|
testId?: string;
|
|
43
|
+
theme?: any;
|
|
44
|
+
value?: string;
|
|
108
45
|
}
|
|
109
46
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
| 'theme'
|
|
398
|
-
| 'testId'
|
|
399
|
-
| 'createAnalyticsEvent'
|
|
400
|
-
> &
|
|
401
|
-
React_2.RefAttributes<HTMLTextAreaElement>
|
|
402
|
-
>>;
|
|
47
|
+
// @public
|
|
48
|
+
const TextArea: React_2.MemoExoticComponent<
|
|
49
|
+
React_2.ForwardRefExoticComponent<
|
|
50
|
+
Pick<
|
|
51
|
+
TextAreaProps,
|
|
52
|
+
| 'appearance'
|
|
53
|
+
| 'color'
|
|
54
|
+
| 'maxHeight'
|
|
55
|
+
| 'resize'
|
|
56
|
+
| 'hidden'
|
|
57
|
+
| 'style'
|
|
58
|
+
| 'wrap'
|
|
59
|
+
| 'minimumRows'
|
|
60
|
+
| 'isMonospaced'
|
|
61
|
+
| 'autoComplete'
|
|
62
|
+
| 'autoFocus'
|
|
63
|
+
| 'cols'
|
|
64
|
+
| 'dirName'
|
|
65
|
+
| 'form'
|
|
66
|
+
| 'maxLength'
|
|
67
|
+
| 'minLength'
|
|
68
|
+
| 'name'
|
|
69
|
+
| 'placeholder'
|
|
70
|
+
| 'readOnly'
|
|
71
|
+
| 'rows'
|
|
72
|
+
| 'value'
|
|
73
|
+
| 'onChange'
|
|
74
|
+
| 'defaultChecked'
|
|
75
|
+
| 'defaultValue'
|
|
76
|
+
| 'suppressContentEditableWarning'
|
|
77
|
+
| 'suppressHydrationWarning'
|
|
78
|
+
| 'accessKey'
|
|
79
|
+
| 'className'
|
|
80
|
+
| 'contentEditable'
|
|
81
|
+
| 'contextMenu'
|
|
82
|
+
| 'dir'
|
|
83
|
+
| 'draggable'
|
|
84
|
+
| 'id'
|
|
85
|
+
| 'lang'
|
|
86
|
+
| 'slot'
|
|
87
|
+
| 'spellCheck'
|
|
88
|
+
| 'tabIndex'
|
|
89
|
+
| 'title'
|
|
90
|
+
| 'inputMode'
|
|
91
|
+
| 'is'
|
|
92
|
+
| 'radioGroup'
|
|
93
|
+
| 'role'
|
|
94
|
+
| 'about'
|
|
95
|
+
| 'datatype'
|
|
96
|
+
| 'inlist'
|
|
97
|
+
| 'prefix'
|
|
98
|
+
| 'property'
|
|
99
|
+
| 'resource'
|
|
100
|
+
| 'typeof'
|
|
101
|
+
| 'vocab'
|
|
102
|
+
| 'autoCapitalize'
|
|
103
|
+
| 'autoCorrect'
|
|
104
|
+
| 'autoSave'
|
|
105
|
+
| 'itemProp'
|
|
106
|
+
| 'itemScope'
|
|
107
|
+
| 'itemType'
|
|
108
|
+
| 'itemID'
|
|
109
|
+
| 'itemRef'
|
|
110
|
+
| 'results'
|
|
111
|
+
| 'security'
|
|
112
|
+
| 'unselectable'
|
|
113
|
+
| 'aria-activedescendant'
|
|
114
|
+
| 'aria-atomic'
|
|
115
|
+
| 'aria-autocomplete'
|
|
116
|
+
| 'aria-busy'
|
|
117
|
+
| 'aria-checked'
|
|
118
|
+
| 'aria-colcount'
|
|
119
|
+
| 'aria-colindex'
|
|
120
|
+
| 'aria-colspan'
|
|
121
|
+
| 'aria-controls'
|
|
122
|
+
| 'aria-current'
|
|
123
|
+
| 'aria-describedby'
|
|
124
|
+
| 'aria-details'
|
|
125
|
+
| 'aria-disabled'
|
|
126
|
+
| 'aria-dropeffect'
|
|
127
|
+
| 'aria-errormessage'
|
|
128
|
+
| 'aria-expanded'
|
|
129
|
+
| 'aria-flowto'
|
|
130
|
+
| 'aria-grabbed'
|
|
131
|
+
| 'aria-haspopup'
|
|
132
|
+
| 'aria-hidden'
|
|
133
|
+
| 'aria-invalid'
|
|
134
|
+
| 'aria-keyshortcuts'
|
|
135
|
+
| 'aria-label'
|
|
136
|
+
| 'aria-labelledby'
|
|
137
|
+
| 'aria-level'
|
|
138
|
+
| 'aria-live'
|
|
139
|
+
| 'aria-modal'
|
|
140
|
+
| 'aria-multiline'
|
|
141
|
+
| 'aria-multiselectable'
|
|
142
|
+
| 'aria-orientation'
|
|
143
|
+
| 'aria-owns'
|
|
144
|
+
| 'aria-placeholder'
|
|
145
|
+
| 'aria-posinset'
|
|
146
|
+
| 'aria-pressed'
|
|
147
|
+
| 'aria-readonly'
|
|
148
|
+
| 'aria-relevant'
|
|
149
|
+
| 'aria-required'
|
|
150
|
+
| 'aria-roledescription'
|
|
151
|
+
| 'aria-rowcount'
|
|
152
|
+
| 'aria-rowindex'
|
|
153
|
+
| 'aria-rowspan'
|
|
154
|
+
| 'aria-selected'
|
|
155
|
+
| 'aria-setsize'
|
|
156
|
+
| 'aria-sort'
|
|
157
|
+
| 'aria-valuemax'
|
|
158
|
+
| 'aria-valuemin'
|
|
159
|
+
| 'aria-valuenow'
|
|
160
|
+
| 'aria-valuetext'
|
|
161
|
+
| 'children'
|
|
162
|
+
| 'dangerouslySetInnerHTML'
|
|
163
|
+
| 'onCopy'
|
|
164
|
+
| 'onCopyCapture'
|
|
165
|
+
| 'onCut'
|
|
166
|
+
| 'onCutCapture'
|
|
167
|
+
| 'onPaste'
|
|
168
|
+
| 'onPasteCapture'
|
|
169
|
+
| 'onCompositionEnd'
|
|
170
|
+
| 'onCompositionEndCapture'
|
|
171
|
+
| 'onCompositionStart'
|
|
172
|
+
| 'onCompositionStartCapture'
|
|
173
|
+
| 'onCompositionUpdate'
|
|
174
|
+
| 'onCompositionUpdateCapture'
|
|
175
|
+
| 'onFocus'
|
|
176
|
+
| 'onFocusCapture'
|
|
177
|
+
| 'onBlur'
|
|
178
|
+
| 'onBlurCapture'
|
|
179
|
+
| 'onChangeCapture'
|
|
180
|
+
| 'onBeforeInput'
|
|
181
|
+
| 'onBeforeInputCapture'
|
|
182
|
+
| 'onInput'
|
|
183
|
+
| 'onInputCapture'
|
|
184
|
+
| 'onReset'
|
|
185
|
+
| 'onResetCapture'
|
|
186
|
+
| 'onSubmit'
|
|
187
|
+
| 'onSubmitCapture'
|
|
188
|
+
| 'onInvalid'
|
|
189
|
+
| 'onInvalidCapture'
|
|
190
|
+
| 'onLoad'
|
|
191
|
+
| 'onLoadCapture'
|
|
192
|
+
| 'onError'
|
|
193
|
+
| 'onErrorCapture'
|
|
194
|
+
| 'onKeyDown'
|
|
195
|
+
| 'onKeyDownCapture'
|
|
196
|
+
| 'onKeyPress'
|
|
197
|
+
| 'onKeyPressCapture'
|
|
198
|
+
| 'onKeyUp'
|
|
199
|
+
| 'onKeyUpCapture'
|
|
200
|
+
| 'onAbort'
|
|
201
|
+
| 'onAbortCapture'
|
|
202
|
+
| 'onCanPlay'
|
|
203
|
+
| 'onCanPlayCapture'
|
|
204
|
+
| 'onCanPlayThrough'
|
|
205
|
+
| 'onCanPlayThroughCapture'
|
|
206
|
+
| 'onDurationChange'
|
|
207
|
+
| 'onDurationChangeCapture'
|
|
208
|
+
| 'onEmptied'
|
|
209
|
+
| 'onEmptiedCapture'
|
|
210
|
+
| 'onEncrypted'
|
|
211
|
+
| 'onEncryptedCapture'
|
|
212
|
+
| 'onEnded'
|
|
213
|
+
| 'onEndedCapture'
|
|
214
|
+
| 'onLoadedData'
|
|
215
|
+
| 'onLoadedDataCapture'
|
|
216
|
+
| 'onLoadedMetadata'
|
|
217
|
+
| 'onLoadedMetadataCapture'
|
|
218
|
+
| 'onLoadStart'
|
|
219
|
+
| 'onLoadStartCapture'
|
|
220
|
+
| 'onPause'
|
|
221
|
+
| 'onPauseCapture'
|
|
222
|
+
| 'onPlay'
|
|
223
|
+
| 'onPlayCapture'
|
|
224
|
+
| 'onPlaying'
|
|
225
|
+
| 'onPlayingCapture'
|
|
226
|
+
| 'onProgress'
|
|
227
|
+
| 'onProgressCapture'
|
|
228
|
+
| 'onRateChange'
|
|
229
|
+
| 'onRateChangeCapture'
|
|
230
|
+
| 'onSeeked'
|
|
231
|
+
| 'onSeekedCapture'
|
|
232
|
+
| 'onSeeking'
|
|
233
|
+
| 'onSeekingCapture'
|
|
234
|
+
| 'onStalled'
|
|
235
|
+
| 'onStalledCapture'
|
|
236
|
+
| 'onSuspend'
|
|
237
|
+
| 'onSuspendCapture'
|
|
238
|
+
| 'onTimeUpdate'
|
|
239
|
+
| 'onTimeUpdateCapture'
|
|
240
|
+
| 'onVolumeChange'
|
|
241
|
+
| 'onVolumeChangeCapture'
|
|
242
|
+
| 'onWaiting'
|
|
243
|
+
| 'onWaitingCapture'
|
|
244
|
+
| 'onAuxClick'
|
|
245
|
+
| 'onAuxClickCapture'
|
|
246
|
+
| 'onClick'
|
|
247
|
+
| 'onClickCapture'
|
|
248
|
+
| 'onContextMenu'
|
|
249
|
+
| 'onContextMenuCapture'
|
|
250
|
+
| 'onDoubleClick'
|
|
251
|
+
| 'onDoubleClickCapture'
|
|
252
|
+
| 'onDrag'
|
|
253
|
+
| 'onDragCapture'
|
|
254
|
+
| 'onDragEnd'
|
|
255
|
+
| 'onDragEndCapture'
|
|
256
|
+
| 'onDragEnter'
|
|
257
|
+
| 'onDragEnterCapture'
|
|
258
|
+
| 'onDragExit'
|
|
259
|
+
| 'onDragExitCapture'
|
|
260
|
+
| 'onDragLeave'
|
|
261
|
+
| 'onDragLeaveCapture'
|
|
262
|
+
| 'onDragOver'
|
|
263
|
+
| 'onDragOverCapture'
|
|
264
|
+
| 'onDragStart'
|
|
265
|
+
| 'onDragStartCapture'
|
|
266
|
+
| 'onDrop'
|
|
267
|
+
| 'onDropCapture'
|
|
268
|
+
| 'onMouseDown'
|
|
269
|
+
| 'onMouseDownCapture'
|
|
270
|
+
| 'onMouseEnter'
|
|
271
|
+
| 'onMouseLeave'
|
|
272
|
+
| 'onMouseMove'
|
|
273
|
+
| 'onMouseMoveCapture'
|
|
274
|
+
| 'onMouseOut'
|
|
275
|
+
| 'onMouseOutCapture'
|
|
276
|
+
| 'onMouseOver'
|
|
277
|
+
| 'onMouseOverCapture'
|
|
278
|
+
| 'onMouseUp'
|
|
279
|
+
| 'onMouseUpCapture'
|
|
280
|
+
| 'onSelect'
|
|
281
|
+
| 'onSelectCapture'
|
|
282
|
+
| 'onTouchCancel'
|
|
283
|
+
| 'onTouchCancelCapture'
|
|
284
|
+
| 'onTouchEnd'
|
|
285
|
+
| 'onTouchEndCapture'
|
|
286
|
+
| 'onTouchMove'
|
|
287
|
+
| 'onTouchMoveCapture'
|
|
288
|
+
| 'onTouchStart'
|
|
289
|
+
| 'onTouchStartCapture'
|
|
290
|
+
| 'onPointerDown'
|
|
291
|
+
| 'onPointerDownCapture'
|
|
292
|
+
| 'onPointerMove'
|
|
293
|
+
| 'onPointerMoveCapture'
|
|
294
|
+
| 'onPointerUp'
|
|
295
|
+
| 'onPointerUpCapture'
|
|
296
|
+
| 'onPointerCancel'
|
|
297
|
+
| 'onPointerCancelCapture'
|
|
298
|
+
| 'onPointerEnter'
|
|
299
|
+
| 'onPointerEnterCapture'
|
|
300
|
+
| 'onPointerLeave'
|
|
301
|
+
| 'onPointerLeaveCapture'
|
|
302
|
+
| 'onPointerOver'
|
|
303
|
+
| 'onPointerOverCapture'
|
|
304
|
+
| 'onPointerOut'
|
|
305
|
+
| 'onPointerOutCapture'
|
|
306
|
+
| 'onGotPointerCapture'
|
|
307
|
+
| 'onGotPointerCaptureCapture'
|
|
308
|
+
| 'onLostPointerCapture'
|
|
309
|
+
| 'onLostPointerCaptureCapture'
|
|
310
|
+
| 'onScroll'
|
|
311
|
+
| 'onScrollCapture'
|
|
312
|
+
| 'onWheel'
|
|
313
|
+
| 'onWheelCapture'
|
|
314
|
+
| 'onAnimationStart'
|
|
315
|
+
| 'onAnimationStartCapture'
|
|
316
|
+
| 'onAnimationEnd'
|
|
317
|
+
| 'onAnimationEndCapture'
|
|
318
|
+
| 'onAnimationIteration'
|
|
319
|
+
| 'onAnimationIterationCapture'
|
|
320
|
+
| 'onTransitionEnd'
|
|
321
|
+
| 'onTransitionEndCapture'
|
|
322
|
+
| 'isCompact'
|
|
323
|
+
| 'isDisabled'
|
|
324
|
+
| 'isReadOnly'
|
|
325
|
+
| 'isRequired'
|
|
326
|
+
| 'isInvalid'
|
|
327
|
+
| 'theme'
|
|
328
|
+
| 'testId'
|
|
329
|
+
| 'createAnalyticsEvent'
|
|
330
|
+
> &
|
|
331
|
+
React_2.RefAttributes<HTMLTextAreaElement>
|
|
332
|
+
>
|
|
333
|
+
>;
|
|
403
334
|
export default TextArea;
|
|
404
335
|
|
|
405
|
-
|
|
336
|
+
// @public (undocumented)
|
|
337
|
+
type TextAreaProps = Combine<
|
|
406
338
|
Omit<
|
|
407
339
|
React_2.TextareaHTMLAttributes<HTMLTextAreaElement>,
|
|
408
340
|
'disabled' | 'required' | 'readonly'
|
|
@@ -410,12 +342,8 @@ declare type TextAreaProps = Combine<
|
|
|
410
342
|
OwnProps
|
|
411
343
|
>;
|
|
412
344
|
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
* Component-level theming is deprecated in the design system.
|
|
416
|
-
* Components should respect the global theme.
|
|
417
|
-
*/
|
|
418
|
-
export declare const Theme: {
|
|
345
|
+
// @public @deprecated (undocumented)
|
|
346
|
+
export const Theme: {
|
|
419
347
|
Consumer: ComponentType<
|
|
420
348
|
{
|
|
421
349
|
children: (tokens: ThemeTokens) => ReactNode;
|
|
@@ -428,23 +356,17 @@ export declare const Theme: {
|
|
|
428
356
|
useTheme: (props: ThemeProps) => ThemeTokens;
|
|
429
357
|
};
|
|
430
358
|
|
|
431
|
-
|
|
359
|
+
// @public (undocumented)
|
|
360
|
+
export type ThemeAppearance = 'standard' | 'subtle' | 'none';
|
|
432
361
|
|
|
433
|
-
|
|
362
|
+
// @public (undocumented)
|
|
363
|
+
export type ThemeProps = {
|
|
434
364
|
appearance: ThemeAppearance;
|
|
435
|
-
/**
|
|
436
|
-
* @deprecated
|
|
437
|
-
* Mode is deprecated and will be deleted in the future.
|
|
438
|
-
*/
|
|
439
365
|
mode: 'dark' | 'light';
|
|
440
366
|
};
|
|
441
367
|
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
* Component-level theming is deprecated in the design system.
|
|
445
|
-
* Components should respect the global theme.
|
|
446
|
-
*/
|
|
447
|
-
export declare type ThemeTokens = {
|
|
368
|
+
// @public @deprecated (undocumented)
|
|
369
|
+
export type ThemeTokens = {
|
|
448
370
|
borderColor: string;
|
|
449
371
|
borderColorFocus: string;
|
|
450
372
|
backgroundColor: string;
|
|
@@ -469,12 +391,8 @@ export declare type ThemeTokens = {
|
|
|
469
391
|
placeholderTextColor: string;
|
|
470
392
|
};
|
|
471
393
|
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
* Component-level theming is deprecated in the design system.
|
|
475
|
-
* Components should respect the global theme.
|
|
476
|
-
*/
|
|
477
|
-
export declare const themeTokens: {
|
|
394
|
+
// @public @deprecated (undocumented)
|
|
395
|
+
export const themeTokens: {
|
|
478
396
|
borderColor: {
|
|
479
397
|
standard: {
|
|
480
398
|
light: 'var(--ds-border-input)';
|
|
@@ -589,5 +507,5 @@ export declare const themeTokens: {
|
|
|
589
507
|
};
|
|
590
508
|
};
|
|
591
509
|
|
|
592
|
-
|
|
510
|
+
// (No @packageDocumentation comment for this package)
|
|
593
511
|
```
|