@atlaskit/textarea 4.7.7 → 5.0.1
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 +53 -41
- package/dist/cjs/component-tokens.js +13 -65
- package/dist/cjs/index.js +1 -14
- package/dist/cjs/styles.js +86 -40
- package/dist/cjs/text-area.js +10 -28
- package/dist/es2019/component-tokens.js +14 -53
- package/dist/es2019/index.js +1 -2
- package/dist/es2019/styles.js +75 -29
- package/dist/es2019/text-area.js +6 -22
- package/dist/esm/component-tokens.js +14 -53
- package/dist/esm/index.js +1 -2
- package/dist/esm/styles.js +79 -33
- package/dist/esm/text-area.js +10 -27
- package/dist/types/component-tokens.d.ts +13 -52
- package/dist/types/index.d.ts +0 -2
- package/dist/types/styles.d.ts +1 -2
- package/dist/types/types.d.ts +22 -22
- package/dist/types-ts4.5/component-tokens.d.ts +13 -52
- package/dist/types-ts4.5/index.d.ts +0 -2
- package/dist/types-ts4.5/styles.d.ts +1 -2
- package/dist/types-ts4.5/types.d.ts +22 -22
- package/package.json +10 -7
- package/report.api.md +0 -169
- package/dist/cjs/theme.js +0 -122
- package/dist/es2019/theme.js +0 -110
- package/dist/esm/theme.js +0 -111
- package/dist/types/theme.d.ts +0 -174
- package/dist/types-ts4.5/theme.d.ts +0 -174
- package/theme/package.json +0 -15
- package/tmp/api-report-tmp.d.ts +0 -215
package/dist/types/theme.d.ts
DELETED
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export type ThemeAppearance = 'standard' | 'subtle' | 'none';
|
|
3
|
-
export type ThemeProps = {
|
|
4
|
-
appearance: ThemeAppearance;
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated
|
|
7
|
-
* Mode is deprecated and will be deleted in the future.
|
|
8
|
-
*/
|
|
9
|
-
mode: 'dark' | 'light';
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated
|
|
13
|
-
* Component-level theming is deprecated in the design system.
|
|
14
|
-
* Components should respect the global theme.
|
|
15
|
-
*/
|
|
16
|
-
export type ThemeTokens = {
|
|
17
|
-
borderColor: string;
|
|
18
|
-
borderColorFocus: string;
|
|
19
|
-
borderColorHover: string;
|
|
20
|
-
backgroundColor: string;
|
|
21
|
-
backgroundColorFocus: string;
|
|
22
|
-
backgroundColorHover: string;
|
|
23
|
-
disabledRules: {
|
|
24
|
-
backgroundColor: string;
|
|
25
|
-
backgroundColorFocus: string;
|
|
26
|
-
backgroundColorHover: string;
|
|
27
|
-
borderColor: string;
|
|
28
|
-
borderColorFocus: string;
|
|
29
|
-
textColor: string;
|
|
30
|
-
};
|
|
31
|
-
invalidRules: {
|
|
32
|
-
borderColor: string;
|
|
33
|
-
borderColorFocus: string;
|
|
34
|
-
backgroundColor: string;
|
|
35
|
-
backgroundColorFocus: string;
|
|
36
|
-
backgroundColorHover: string;
|
|
37
|
-
};
|
|
38
|
-
textColor: string;
|
|
39
|
-
placeholderTextColor: string;
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* @deprecated
|
|
43
|
-
* Component-level theming is deprecated in the design system.
|
|
44
|
-
* Components should respect the global theme.
|
|
45
|
-
*/
|
|
46
|
-
export declare const themeTokens: {
|
|
47
|
-
borderColor: {
|
|
48
|
-
standard: {
|
|
49
|
-
light: "var(--ds-border-input)";
|
|
50
|
-
dark: "var(--ds-border-input)";
|
|
51
|
-
};
|
|
52
|
-
subtle: {
|
|
53
|
-
light: string;
|
|
54
|
-
dark: string;
|
|
55
|
-
};
|
|
56
|
-
none: {
|
|
57
|
-
light: string;
|
|
58
|
-
dark: string;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
borderColorFocus: {
|
|
62
|
-
standard: {
|
|
63
|
-
light: "var(--ds-border-focused)";
|
|
64
|
-
dark: "var(--ds-border-focused)";
|
|
65
|
-
};
|
|
66
|
-
subtle: {
|
|
67
|
-
light: "var(--ds-border-focused)";
|
|
68
|
-
dark: "var(--ds-border-focused)";
|
|
69
|
-
};
|
|
70
|
-
none: {
|
|
71
|
-
light: string;
|
|
72
|
-
dark: string;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
backgroundColor: {
|
|
76
|
-
standard: {
|
|
77
|
-
light: "var(--ds-background-input)";
|
|
78
|
-
dark: "var(--ds-background-input)";
|
|
79
|
-
};
|
|
80
|
-
subtle: {
|
|
81
|
-
light: string;
|
|
82
|
-
dark: string;
|
|
83
|
-
};
|
|
84
|
-
none: {
|
|
85
|
-
light: string;
|
|
86
|
-
dark: string;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
backgroundColorFocus: {
|
|
90
|
-
standard: {
|
|
91
|
-
light: "var(--ds-background-input-pressed)";
|
|
92
|
-
dark: "var(--ds-background-input-pressed)";
|
|
93
|
-
};
|
|
94
|
-
subtle: {
|
|
95
|
-
light: "var(--ds-background-input-pressed)";
|
|
96
|
-
dark: "var(--ds-background-input-pressed)";
|
|
97
|
-
};
|
|
98
|
-
none: {
|
|
99
|
-
light: string;
|
|
100
|
-
dark: string;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
backgroundColorHover: {
|
|
104
|
-
standard: {
|
|
105
|
-
light: "var(--ds-background-input-hovered)";
|
|
106
|
-
dark: "var(--ds-background-input-hovered)";
|
|
107
|
-
};
|
|
108
|
-
subtle: {
|
|
109
|
-
light: "var(--ds-background-input-hovered)";
|
|
110
|
-
dark: "var(--ds-background-input-hovered)";
|
|
111
|
-
};
|
|
112
|
-
none: {
|
|
113
|
-
light: string;
|
|
114
|
-
dark: string;
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
disabledRules: {
|
|
118
|
-
light: {
|
|
119
|
-
backgroundColor: "var(--ds-background-disabled)";
|
|
120
|
-
backgroundColorFocus: "var(--ds-background-disabled)";
|
|
121
|
-
backgroundColorHover: "var(--ds-background-disabled)";
|
|
122
|
-
borderColor: "var(--ds-border-disabled)";
|
|
123
|
-
borderColorFocus: "var(--ds-border-focused)";
|
|
124
|
-
textColor: "var(--ds-text-disabled)";
|
|
125
|
-
};
|
|
126
|
-
dark: {
|
|
127
|
-
backgroundColor: "var(--ds-background-disabled)";
|
|
128
|
-
backgroundColorFocus: "var(--ds-background-disabled)";
|
|
129
|
-
backgroundColorHover: "var(--ds-background-disabled)";
|
|
130
|
-
borderColor: "var(--ds-border-disabled)";
|
|
131
|
-
borderColorFocus: "var(--ds-border-focused)";
|
|
132
|
-
textColor: "var(--ds-text-disabled)";
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
invalidRules: {
|
|
136
|
-
light: {
|
|
137
|
-
borderColor: "var(--ds-border-danger)";
|
|
138
|
-
borderColorFocus: "var(--ds-border-focused)";
|
|
139
|
-
backgroundColor: "var(--ds-background-input)";
|
|
140
|
-
backgroundColorFocus: "var(--ds-background-input-pressed)";
|
|
141
|
-
backgroundColorHover: "var(--ds-background-input-hovered)";
|
|
142
|
-
};
|
|
143
|
-
dark: {
|
|
144
|
-
borderColor: "var(--ds-border-danger)";
|
|
145
|
-
borderColorFocus: "var(--ds-border-focused)";
|
|
146
|
-
backgroundColor: "var(--ds-background-input)";
|
|
147
|
-
backgroundColorFocus: "var(--ds-background-input-pressed)";
|
|
148
|
-
backgroundColorHover: "var(--ds-background-input-hovered)";
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
textColor: {
|
|
152
|
-
light: "var(--ds-text)";
|
|
153
|
-
dark: "var(--ds-text)";
|
|
154
|
-
};
|
|
155
|
-
placeholderTextColor: {
|
|
156
|
-
light: "var(--ds-text-subtlest)";
|
|
157
|
-
dark: "var(--ds-text-subtlest)";
|
|
158
|
-
};
|
|
159
|
-
};
|
|
160
|
-
/**
|
|
161
|
-
* @deprecated
|
|
162
|
-
* Component-level theming is deprecated in the design system.
|
|
163
|
-
* Components should respect the global theme.
|
|
164
|
-
*/
|
|
165
|
-
export declare const Theme: {
|
|
166
|
-
Consumer: import("react").ComponentType<{
|
|
167
|
-
children: (tokens: ThemeTokens) => import("react").ReactNode;
|
|
168
|
-
} & ThemeProps>;
|
|
169
|
-
Provider: import("react").ComponentType<{
|
|
170
|
-
children?: import("react").ReactNode;
|
|
171
|
-
value?: import("@atlaskit/theme/components").ThemeProp<ThemeTokens, ThemeProps> | undefined;
|
|
172
|
-
}>;
|
|
173
|
-
useTheme: (props: ThemeProps) => ThemeTokens;
|
|
174
|
-
};
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export type ThemeAppearance = 'standard' | 'subtle' | 'none';
|
|
3
|
-
export type ThemeProps = {
|
|
4
|
-
appearance: ThemeAppearance;
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated
|
|
7
|
-
* Mode is deprecated and will be deleted in the future.
|
|
8
|
-
*/
|
|
9
|
-
mode: 'dark' | 'light';
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated
|
|
13
|
-
* Component-level theming is deprecated in the design system.
|
|
14
|
-
* Components should respect the global theme.
|
|
15
|
-
*/
|
|
16
|
-
export type ThemeTokens = {
|
|
17
|
-
borderColor: string;
|
|
18
|
-
borderColorFocus: string;
|
|
19
|
-
borderColorHover: string;
|
|
20
|
-
backgroundColor: string;
|
|
21
|
-
backgroundColorFocus: string;
|
|
22
|
-
backgroundColorHover: string;
|
|
23
|
-
disabledRules: {
|
|
24
|
-
backgroundColor: string;
|
|
25
|
-
backgroundColorFocus: string;
|
|
26
|
-
backgroundColorHover: string;
|
|
27
|
-
borderColor: string;
|
|
28
|
-
borderColorFocus: string;
|
|
29
|
-
textColor: string;
|
|
30
|
-
};
|
|
31
|
-
invalidRules: {
|
|
32
|
-
borderColor: string;
|
|
33
|
-
borderColorFocus: string;
|
|
34
|
-
backgroundColor: string;
|
|
35
|
-
backgroundColorFocus: string;
|
|
36
|
-
backgroundColorHover: string;
|
|
37
|
-
};
|
|
38
|
-
textColor: string;
|
|
39
|
-
placeholderTextColor: string;
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* @deprecated
|
|
43
|
-
* Component-level theming is deprecated in the design system.
|
|
44
|
-
* Components should respect the global theme.
|
|
45
|
-
*/
|
|
46
|
-
export declare const themeTokens: {
|
|
47
|
-
borderColor: {
|
|
48
|
-
standard: {
|
|
49
|
-
light: "var(--ds-border-input)";
|
|
50
|
-
dark: "var(--ds-border-input)";
|
|
51
|
-
};
|
|
52
|
-
subtle: {
|
|
53
|
-
light: string;
|
|
54
|
-
dark: string;
|
|
55
|
-
};
|
|
56
|
-
none: {
|
|
57
|
-
light: string;
|
|
58
|
-
dark: string;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
borderColorFocus: {
|
|
62
|
-
standard: {
|
|
63
|
-
light: "var(--ds-border-focused)";
|
|
64
|
-
dark: "var(--ds-border-focused)";
|
|
65
|
-
};
|
|
66
|
-
subtle: {
|
|
67
|
-
light: "var(--ds-border-focused)";
|
|
68
|
-
dark: "var(--ds-border-focused)";
|
|
69
|
-
};
|
|
70
|
-
none: {
|
|
71
|
-
light: string;
|
|
72
|
-
dark: string;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
backgroundColor: {
|
|
76
|
-
standard: {
|
|
77
|
-
light: "var(--ds-background-input)";
|
|
78
|
-
dark: "var(--ds-background-input)";
|
|
79
|
-
};
|
|
80
|
-
subtle: {
|
|
81
|
-
light: string;
|
|
82
|
-
dark: string;
|
|
83
|
-
};
|
|
84
|
-
none: {
|
|
85
|
-
light: string;
|
|
86
|
-
dark: string;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
backgroundColorFocus: {
|
|
90
|
-
standard: {
|
|
91
|
-
light: "var(--ds-background-input-pressed)";
|
|
92
|
-
dark: "var(--ds-background-input-pressed)";
|
|
93
|
-
};
|
|
94
|
-
subtle: {
|
|
95
|
-
light: "var(--ds-background-input-pressed)";
|
|
96
|
-
dark: "var(--ds-background-input-pressed)";
|
|
97
|
-
};
|
|
98
|
-
none: {
|
|
99
|
-
light: string;
|
|
100
|
-
dark: string;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
backgroundColorHover: {
|
|
104
|
-
standard: {
|
|
105
|
-
light: "var(--ds-background-input-hovered)";
|
|
106
|
-
dark: "var(--ds-background-input-hovered)";
|
|
107
|
-
};
|
|
108
|
-
subtle: {
|
|
109
|
-
light: "var(--ds-background-input-hovered)";
|
|
110
|
-
dark: "var(--ds-background-input-hovered)";
|
|
111
|
-
};
|
|
112
|
-
none: {
|
|
113
|
-
light: string;
|
|
114
|
-
dark: string;
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
disabledRules: {
|
|
118
|
-
light: {
|
|
119
|
-
backgroundColor: "var(--ds-background-disabled)";
|
|
120
|
-
backgroundColorFocus: "var(--ds-background-disabled)";
|
|
121
|
-
backgroundColorHover: "var(--ds-background-disabled)";
|
|
122
|
-
borderColor: "var(--ds-border-disabled)";
|
|
123
|
-
borderColorFocus: "var(--ds-border-focused)";
|
|
124
|
-
textColor: "var(--ds-text-disabled)";
|
|
125
|
-
};
|
|
126
|
-
dark: {
|
|
127
|
-
backgroundColor: "var(--ds-background-disabled)";
|
|
128
|
-
backgroundColorFocus: "var(--ds-background-disabled)";
|
|
129
|
-
backgroundColorHover: "var(--ds-background-disabled)";
|
|
130
|
-
borderColor: "var(--ds-border-disabled)";
|
|
131
|
-
borderColorFocus: "var(--ds-border-focused)";
|
|
132
|
-
textColor: "var(--ds-text-disabled)";
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
invalidRules: {
|
|
136
|
-
light: {
|
|
137
|
-
borderColor: "var(--ds-border-danger)";
|
|
138
|
-
borderColorFocus: "var(--ds-border-focused)";
|
|
139
|
-
backgroundColor: "var(--ds-background-input)";
|
|
140
|
-
backgroundColorFocus: "var(--ds-background-input-pressed)";
|
|
141
|
-
backgroundColorHover: "var(--ds-background-input-hovered)";
|
|
142
|
-
};
|
|
143
|
-
dark: {
|
|
144
|
-
borderColor: "var(--ds-border-danger)";
|
|
145
|
-
borderColorFocus: "var(--ds-border-focused)";
|
|
146
|
-
backgroundColor: "var(--ds-background-input)";
|
|
147
|
-
backgroundColorFocus: "var(--ds-background-input-pressed)";
|
|
148
|
-
backgroundColorHover: "var(--ds-background-input-hovered)";
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
textColor: {
|
|
152
|
-
light: "var(--ds-text)";
|
|
153
|
-
dark: "var(--ds-text)";
|
|
154
|
-
};
|
|
155
|
-
placeholderTextColor: {
|
|
156
|
-
light: "var(--ds-text-subtlest)";
|
|
157
|
-
dark: "var(--ds-text-subtlest)";
|
|
158
|
-
};
|
|
159
|
-
};
|
|
160
|
-
/**
|
|
161
|
-
* @deprecated
|
|
162
|
-
* Component-level theming is deprecated in the design system.
|
|
163
|
-
* Components should respect the global theme.
|
|
164
|
-
*/
|
|
165
|
-
export declare const Theme: {
|
|
166
|
-
Consumer: import("react").ComponentType<{
|
|
167
|
-
children: (tokens: ThemeTokens) => import("react").ReactNode;
|
|
168
|
-
} & ThemeProps>;
|
|
169
|
-
Provider: import("react").ComponentType<{
|
|
170
|
-
children?: import("react").ReactNode;
|
|
171
|
-
value?: import("@atlaskit/theme/components").ThemeProp<ThemeTokens, ThemeProps> | undefined;
|
|
172
|
-
}>;
|
|
173
|
-
useTheme: (props: ThemeProps) => ThemeTokens;
|
|
174
|
-
};
|
package/theme/package.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@atlaskit/textarea/theme",
|
|
3
|
-
"main": "../dist/cjs/theme.js",
|
|
4
|
-
"module": "../dist/esm/theme.js",
|
|
5
|
-
"module:es2019": "../dist/es2019/theme.js",
|
|
6
|
-
"sideEffects": false,
|
|
7
|
-
"types": "../dist/types/theme.d.ts",
|
|
8
|
-
"typesVersions": {
|
|
9
|
-
">=4.5 <4.9": {
|
|
10
|
-
"*": [
|
|
11
|
-
"../dist/types-ts4.5/theme.d.ts"
|
|
12
|
-
]
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,215 +0,0 @@
|
|
|
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
|
-
|
|
7
|
-
/// <reference types="react" />
|
|
8
|
-
|
|
9
|
-
import { ComponentType } from 'react';
|
|
10
|
-
import { default as React_2 } from 'react';
|
|
11
|
-
import { ReactNode } from 'react';
|
|
12
|
-
import { ThemeProp } from '@atlaskit/theme/components';
|
|
13
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
14
|
-
|
|
15
|
-
// @public (undocumented)
|
|
16
|
-
type Combine<First, Second> = Omit<First, keyof Second> & Second;
|
|
17
|
-
|
|
18
|
-
// @public (undocumented)
|
|
19
|
-
interface OwnProps extends WithAnalyticsEventsProps {
|
|
20
|
-
appearance?: 'none' | 'standard' | 'subtle';
|
|
21
|
-
defaultValue?: string;
|
|
22
|
-
isCompact?: boolean;
|
|
23
|
-
isDisabled?: boolean;
|
|
24
|
-
isInvalid?: boolean;
|
|
25
|
-
isMonospaced?: boolean;
|
|
26
|
-
isReadOnly?: boolean;
|
|
27
|
-
isRequired?: boolean;
|
|
28
|
-
maxHeight?: string;
|
|
29
|
-
minimumRows?: number;
|
|
30
|
-
name?: string;
|
|
31
|
-
onBlur?: React.FocusEventHandler<HTMLTextAreaElement>;
|
|
32
|
-
onChange?: React.ChangeEventHandler<HTMLTextAreaElement>;
|
|
33
|
-
onFocus?: React.FocusEventHandler<HTMLTextAreaElement>;
|
|
34
|
-
placeholder?: string;
|
|
35
|
-
resize?: 'auto' | 'horizontal' | 'none' | 'smart' | 'vertical';
|
|
36
|
-
spellCheck?: boolean;
|
|
37
|
-
testId?: string;
|
|
38
|
-
theme?: any;
|
|
39
|
-
value?: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// @public
|
|
43
|
-
const TextArea: React_2.MemoExoticComponent<React_2.ForwardRefExoticComponent<Pick<TextAreaProps, "about" | "accessKey" | "appearance" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "autoCapitalize" | "autoComplete" | "autoCorrect" | "autoFocus" | "autoSave" | "children" | "className" | "color" | "cols" | "contentEditable" | "contextMenu" | "createAnalyticsEvent" | "dangerouslySetInnerHTML" | "datatype" | "defaultChecked" | "defaultValue" | "dir" | "dirName" | "draggable" | "form" | "hidden" | "id" | "inlist" | "inputMode" | "is" | "isCompact" | "isDisabled" | "isInvalid" | "isMonospaced" | "isReadOnly" | "isRequired" | "itemID" | "itemProp" | "itemRef" | "itemScope" | "itemType" | "lang" | "maxHeight" | "maxLength" | "minLength" | "minimumRows" | "name" | "onAbort" | "onAbortCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAuxClick" | "onAuxClickCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onBlur" | "onBlurCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onChange" | "onChangeCapture" | "onClick" | "onClickCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onContextMenu" | "onContextMenuCapture" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onError" | "onErrorCapture" | "onFocus" | "onFocusCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onInput" | "onInputCapture" | "onInvalid" | "onInvalidCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onLoad" | "onLoadCapture" | "onLoadStart" | "onLoadStartCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onPaste" | "onPasteCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerOut" | "onPointerOutCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerUp" | "onPointerUpCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onReset" | "onResetCapture" | "onScroll" | "onScrollCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onSelect" | "onSelectCapture" | "onStalled" | "onStalledCapture" | "onSubmit" | "onSubmitCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onWheel" | "onWheelCapture" | "placeholder" | "prefix" | "property" | "radioGroup" | "readOnly" | "resize" | "resource" | "results" | "role" | "rows" | "security" | "slot" | "spellCheck" | "style" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "tabIndex" | "testId" | "theme" | "title" | "translate" | "typeof" | "unselectable" | "value" | "vocab" | "wrap"> & React_2.RefAttributes<HTMLTextAreaElement>>>;
|
|
44
|
-
export default TextArea;
|
|
45
|
-
|
|
46
|
-
// @public (undocumented)
|
|
47
|
-
export type TextAreaProps = Combine<Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'disabled' | 'readonly' | 'required'>, OwnProps>;
|
|
48
|
-
|
|
49
|
-
// @public @deprecated (undocumented)
|
|
50
|
-
export const Theme: {
|
|
51
|
-
Consumer: ComponentType< {
|
|
52
|
-
children: (tokens: ThemeTokens) => ReactNode;
|
|
53
|
-
} & ThemeProps>;
|
|
54
|
-
Provider: ComponentType< {
|
|
55
|
-
children?: ReactNode;
|
|
56
|
-
value?: ThemeProp<ThemeTokens, ThemeProps> | undefined;
|
|
57
|
-
}>;
|
|
58
|
-
useTheme: (props: ThemeProps) => ThemeTokens;
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
// @public (undocumented)
|
|
62
|
-
export type ThemeAppearance = 'none' | 'standard' | 'subtle';
|
|
63
|
-
|
|
64
|
-
// @public (undocumented)
|
|
65
|
-
export type ThemeProps = {
|
|
66
|
-
appearance: ThemeAppearance;
|
|
67
|
-
mode: 'dark' | 'light';
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
// @public @deprecated (undocumented)
|
|
71
|
-
export type ThemeTokens = {
|
|
72
|
-
borderColor: string;
|
|
73
|
-
borderColorFocus: string;
|
|
74
|
-
borderColorHover: string;
|
|
75
|
-
backgroundColor: string;
|
|
76
|
-
backgroundColorFocus: string;
|
|
77
|
-
backgroundColorHover: string;
|
|
78
|
-
disabledRules: {
|
|
79
|
-
backgroundColor: string;
|
|
80
|
-
backgroundColorFocus: string;
|
|
81
|
-
backgroundColorHover: string;
|
|
82
|
-
borderColor: string;
|
|
83
|
-
borderColorFocus: string;
|
|
84
|
-
textColor: string;
|
|
85
|
-
};
|
|
86
|
-
invalidRules: {
|
|
87
|
-
borderColor: string;
|
|
88
|
-
borderColorFocus: string;
|
|
89
|
-
backgroundColor: string;
|
|
90
|
-
backgroundColorFocus: string;
|
|
91
|
-
backgroundColorHover: string;
|
|
92
|
-
};
|
|
93
|
-
textColor: string;
|
|
94
|
-
placeholderTextColor: string;
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
// @public @deprecated (undocumented)
|
|
98
|
-
export const themeTokens: {
|
|
99
|
-
borderColor: {
|
|
100
|
-
standard: {
|
|
101
|
-
light: "var(--ds-border-input)";
|
|
102
|
-
dark: "var(--ds-border-input)";
|
|
103
|
-
};
|
|
104
|
-
subtle: {
|
|
105
|
-
light: string;
|
|
106
|
-
dark: string;
|
|
107
|
-
};
|
|
108
|
-
none: {
|
|
109
|
-
light: string;
|
|
110
|
-
dark: string;
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
borderColorFocus: {
|
|
114
|
-
standard: {
|
|
115
|
-
light: "var(--ds-border-focused)";
|
|
116
|
-
dark: "var(--ds-border-focused)";
|
|
117
|
-
};
|
|
118
|
-
subtle: {
|
|
119
|
-
light: "var(--ds-border-focused)";
|
|
120
|
-
dark: "var(--ds-border-focused)";
|
|
121
|
-
};
|
|
122
|
-
none: {
|
|
123
|
-
light: string;
|
|
124
|
-
dark: string;
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
backgroundColor: {
|
|
128
|
-
standard: {
|
|
129
|
-
light: "var(--ds-background-input)";
|
|
130
|
-
dark: "var(--ds-background-input)";
|
|
131
|
-
};
|
|
132
|
-
subtle: {
|
|
133
|
-
light: string;
|
|
134
|
-
dark: string;
|
|
135
|
-
};
|
|
136
|
-
none: {
|
|
137
|
-
light: string;
|
|
138
|
-
dark: string;
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
|
-
backgroundColorFocus: {
|
|
142
|
-
standard: {
|
|
143
|
-
light: "var(--ds-background-input-pressed)";
|
|
144
|
-
dark: "var(--ds-background-input-pressed)";
|
|
145
|
-
};
|
|
146
|
-
subtle: {
|
|
147
|
-
light: "var(--ds-background-input-pressed)";
|
|
148
|
-
dark: "var(--ds-background-input-pressed)";
|
|
149
|
-
};
|
|
150
|
-
none: {
|
|
151
|
-
light: string;
|
|
152
|
-
dark: string;
|
|
153
|
-
};
|
|
154
|
-
};
|
|
155
|
-
backgroundColorHover: {
|
|
156
|
-
standard: {
|
|
157
|
-
light: "var(--ds-background-input-hovered)";
|
|
158
|
-
dark: "var(--ds-background-input-hovered)";
|
|
159
|
-
};
|
|
160
|
-
subtle: {
|
|
161
|
-
light: "var(--ds-background-input-hovered)";
|
|
162
|
-
dark: "var(--ds-background-input-hovered)";
|
|
163
|
-
};
|
|
164
|
-
none: {
|
|
165
|
-
light: string;
|
|
166
|
-
dark: string;
|
|
167
|
-
};
|
|
168
|
-
};
|
|
169
|
-
disabledRules: {
|
|
170
|
-
light: {
|
|
171
|
-
backgroundColor: "var(--ds-background-disabled)";
|
|
172
|
-
backgroundColorFocus: "var(--ds-background-disabled)";
|
|
173
|
-
backgroundColorHover: "var(--ds-background-disabled)";
|
|
174
|
-
borderColor: "var(--ds-border-disabled)";
|
|
175
|
-
borderColorFocus: "var(--ds-border-focused)";
|
|
176
|
-
textColor: "var(--ds-text-disabled)";
|
|
177
|
-
};
|
|
178
|
-
dark: {
|
|
179
|
-
backgroundColor: "var(--ds-background-disabled)";
|
|
180
|
-
backgroundColorFocus: "var(--ds-background-disabled)";
|
|
181
|
-
backgroundColorHover: "var(--ds-background-disabled)";
|
|
182
|
-
borderColor: "var(--ds-border-disabled)";
|
|
183
|
-
borderColorFocus: "var(--ds-border-focused)";
|
|
184
|
-
textColor: "var(--ds-text-disabled)";
|
|
185
|
-
};
|
|
186
|
-
};
|
|
187
|
-
invalidRules: {
|
|
188
|
-
light: {
|
|
189
|
-
borderColor: "var(--ds-border-danger)";
|
|
190
|
-
borderColorFocus: "var(--ds-border-focused)";
|
|
191
|
-
backgroundColor: "var(--ds-background-input)";
|
|
192
|
-
backgroundColorFocus: "var(--ds-background-input-pressed)";
|
|
193
|
-
backgroundColorHover: "var(--ds-background-input-hovered)";
|
|
194
|
-
};
|
|
195
|
-
dark: {
|
|
196
|
-
borderColor: "var(--ds-border-danger)";
|
|
197
|
-
borderColorFocus: "var(--ds-border-focused)";
|
|
198
|
-
backgroundColor: "var(--ds-background-input)";
|
|
199
|
-
backgroundColorFocus: "var(--ds-background-input-pressed)";
|
|
200
|
-
backgroundColorHover: "var(--ds-background-input-hovered)";
|
|
201
|
-
};
|
|
202
|
-
};
|
|
203
|
-
textColor: {
|
|
204
|
-
light: "var(--ds-text)";
|
|
205
|
-
dark: "var(--ds-text)";
|
|
206
|
-
};
|
|
207
|
-
placeholderTextColor: {
|
|
208
|
-
light: "var(--ds-text-subtlest)";
|
|
209
|
-
dark: "var(--ds-text-subtlest)";
|
|
210
|
-
};
|
|
211
|
-
};
|
|
212
|
-
|
|
213
|
-
// (No @packageDocumentation comment for this package)
|
|
214
|
-
|
|
215
|
-
```
|