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