@atlaskit/textfield 5.1.12 → 5.1.13
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-field.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/text-field.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/text-field.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +5 -3
- package/report.api.md +200 -0
package/CHANGELOG.md
CHANGED
package/dist/cjs/text-field.js
CHANGED
|
@@ -40,7 +40,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
40
40
|
var analyticsParams = {
|
|
41
41
|
componentName: 'textField',
|
|
42
42
|
packageName: "@atlaskit/textfield",
|
|
43
|
-
packageVersion: "5.1.
|
|
43
|
+
packageVersion: "5.1.13"
|
|
44
44
|
};
|
|
45
45
|
var Textfield = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
46
46
|
var _props$appearance = props.appearance,
|
package/dist/cjs/version.json
CHANGED
|
@@ -9,7 +9,7 @@ import { containerStyles as getContainerStyles, inputStyles as getInputStyles }
|
|
|
9
9
|
const analyticsParams = {
|
|
10
10
|
componentName: 'textField',
|
|
11
11
|
packageName: "@atlaskit/textfield",
|
|
12
|
-
packageVersion: "5.1.
|
|
12
|
+
packageVersion: "5.1.13"
|
|
13
13
|
};
|
|
14
14
|
const Textfield = /*#__PURE__*/forwardRef((props, ref) => {
|
|
15
15
|
const {
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/text-field.js
CHANGED
|
@@ -17,7 +17,7 @@ import { containerStyles as getContainerStyles, inputStyles as getInputStyles }
|
|
|
17
17
|
var analyticsParams = {
|
|
18
18
|
componentName: 'textField',
|
|
19
19
|
packageName: "@atlaskit/textfield",
|
|
20
|
-
packageVersion: "5.1.
|
|
20
|
+
packageVersion: "5.1.13"
|
|
21
21
|
};
|
|
22
22
|
var Textfield = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
23
23
|
var _props$appearance = props.appearance,
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/textfield",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.13",
|
|
4
4
|
"description": "A text field is an input that allows a user to write or edit text.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
"team": "Design System Team",
|
|
19
19
|
"releaseModel": "scheduled",
|
|
20
20
|
"website": {
|
|
21
|
-
"name": "Text field"
|
|
21
|
+
"name": "Text field",
|
|
22
|
+
"category": "Components"
|
|
22
23
|
}
|
|
23
24
|
},
|
|
24
25
|
"af:exports": {
|
|
@@ -51,7 +52,7 @@
|
|
|
51
52
|
"jscodeshift": "^0.13.0",
|
|
52
53
|
"react-dom": "^16.8.0",
|
|
53
54
|
"storybook-addon-performance": "^0.16.0",
|
|
54
|
-
"typescript": "4.
|
|
55
|
+
"typescript": "4.3.5",
|
|
55
56
|
"wait-for-expect": "^1.2.0"
|
|
56
57
|
},
|
|
57
58
|
"keywords": [
|
|
@@ -64,6 +65,7 @@
|
|
|
64
65
|
"import-structure": "atlassian-conventions"
|
|
65
66
|
},
|
|
66
67
|
"@repo/internal": {
|
|
68
|
+
"dom-events": "use-bind-event-listener",
|
|
67
69
|
"ui-components": "lite-mode",
|
|
68
70
|
"styling": [
|
|
69
71
|
"static",
|
package/report.api.md
ADDED
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
## API Report File for "@atlaskit/textfield"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
import { AllHTMLAttributes } from 'react';
|
|
7
|
+
import { FormEventHandler } from 'react';
|
|
8
|
+
import { default as React_2 } from 'react';
|
|
9
|
+
|
|
10
|
+
export declare type Appearance = 'subtle' | 'standard' | 'none';
|
|
11
|
+
|
|
12
|
+
declare const _default: React_2.NamedExoticComponent<
|
|
13
|
+
TextFieldProps & React_2.RefAttributes<unknown>
|
|
14
|
+
>;
|
|
15
|
+
export default _default;
|
|
16
|
+
|
|
17
|
+
export declare const TextFieldColors: {
|
|
18
|
+
backgroundColor: {
|
|
19
|
+
standard: {
|
|
20
|
+
light: 'var(--ds-background-input)';
|
|
21
|
+
dark: 'var(--ds-background-input)';
|
|
22
|
+
};
|
|
23
|
+
subtle: {
|
|
24
|
+
light: string;
|
|
25
|
+
dark: string;
|
|
26
|
+
};
|
|
27
|
+
none: {
|
|
28
|
+
light: string;
|
|
29
|
+
dark: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
backgroundColorFocus: {
|
|
33
|
+
standard: {
|
|
34
|
+
light: 'var(--ds-background-input-pressed)';
|
|
35
|
+
dark: 'var(--ds-background-input-pressed)';
|
|
36
|
+
};
|
|
37
|
+
subtle: {
|
|
38
|
+
light: 'var(--ds-background-input-pressed)';
|
|
39
|
+
dark: 'var(--ds-background-input-pressed)';
|
|
40
|
+
};
|
|
41
|
+
none: {
|
|
42
|
+
light: string;
|
|
43
|
+
dark: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
backgroundColorHover: {
|
|
47
|
+
standard: {
|
|
48
|
+
light: 'var(--ds-background-input-hovered)';
|
|
49
|
+
dark: 'var(--ds-background-input-hovered)';
|
|
50
|
+
};
|
|
51
|
+
subtle: {
|
|
52
|
+
light: 'var(--ds-background-neutral-subtle-hovered)';
|
|
53
|
+
dark: 'var(--ds-background-neutral-subtle-hovered)';
|
|
54
|
+
};
|
|
55
|
+
none: {
|
|
56
|
+
light: string;
|
|
57
|
+
dark: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
borderColor: {
|
|
61
|
+
standard: {
|
|
62
|
+
light: 'var(--ds-border)';
|
|
63
|
+
dark: 'var(--ds-border)';
|
|
64
|
+
};
|
|
65
|
+
subtle: {
|
|
66
|
+
light: string;
|
|
67
|
+
dark: string;
|
|
68
|
+
};
|
|
69
|
+
none: {
|
|
70
|
+
light: string;
|
|
71
|
+
dark: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
borderColorFocus: {
|
|
75
|
+
standard: {
|
|
76
|
+
light: 'var(--ds-border-focused)';
|
|
77
|
+
dark: 'var(--ds-border-focused)';
|
|
78
|
+
};
|
|
79
|
+
subtle: {
|
|
80
|
+
light: 'var(--ds-border-focused)';
|
|
81
|
+
dark: 'var(--ds-border-focused)';
|
|
82
|
+
};
|
|
83
|
+
none: {
|
|
84
|
+
light: string;
|
|
85
|
+
dark: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
placeholderTextColor: {
|
|
89
|
+
light: 'var(--ds-text-subtlest)';
|
|
90
|
+
dark: 'var(--ds-text-subtlest)';
|
|
91
|
+
};
|
|
92
|
+
textColor: {
|
|
93
|
+
light: 'var(--ds-text)';
|
|
94
|
+
dark: 'var(--ds-text)';
|
|
95
|
+
};
|
|
96
|
+
invalidRules: {
|
|
97
|
+
light: {
|
|
98
|
+
backgroundColor: 'var(--ds-background-input)';
|
|
99
|
+
backgroundColorHover: 'var(--ds-background-input-hovered)';
|
|
100
|
+
backgroundColorFocus: 'var(--ds-background-input-pressed)';
|
|
101
|
+
borderColor: 'var(--ds-border-danger)';
|
|
102
|
+
borderColorFocus: 'var(--ds-border-focused)';
|
|
103
|
+
};
|
|
104
|
+
dark: {
|
|
105
|
+
backgroundColor: 'var(--ds-background-input)';
|
|
106
|
+
backgroundColorHover: 'var(--ds-background-input-hovered)';
|
|
107
|
+
backgroundColorFocus: 'var(--ds-background-input-pressed)';
|
|
108
|
+
borderColor: 'var(--ds-border-danger)';
|
|
109
|
+
borderColorFocus: 'var(--ds-border-focused)';
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
disabledRules: {
|
|
113
|
+
light: {
|
|
114
|
+
backgroundColor: 'var(--ds-background-disabled)';
|
|
115
|
+
backgroundColorHover: 'var(--ds-background-disabled)';
|
|
116
|
+
borderColor: 'var(--ds-background-disabled)';
|
|
117
|
+
textColor: 'var(--ds-text-disabled)';
|
|
118
|
+
};
|
|
119
|
+
dark: {
|
|
120
|
+
backgroundColor: 'var(--ds-background-disabled)';
|
|
121
|
+
backgroundColorHover: 'var(--ds-background-disabled)';
|
|
122
|
+
borderColor: 'var(--ds-background-disabled)';
|
|
123
|
+
textColor: 'var(--ds-text-disabled)';
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
export declare interface TextFieldProps
|
|
129
|
+
extends AllHTMLAttributes<HTMLInputElement> {
|
|
130
|
+
/**
|
|
131
|
+
* Affects the visual style of the text field.
|
|
132
|
+
*/
|
|
133
|
+
appearance?: 'standard' | 'none' | 'subtle';
|
|
134
|
+
/**
|
|
135
|
+
* Applies compact styling, making the field smaller.
|
|
136
|
+
*/
|
|
137
|
+
isCompact?: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Sets the field as to appear disabled,
|
|
140
|
+
* users will not be able to interact with the text field.
|
|
141
|
+
*/
|
|
142
|
+
isDisabled?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* Changes the text field to have a border indicating that its value is invalid.
|
|
145
|
+
*/
|
|
146
|
+
isInvalid?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Sets content text value to appear monospaced.
|
|
149
|
+
*/
|
|
150
|
+
isMonospaced?: boolean;
|
|
151
|
+
/**
|
|
152
|
+
* If true, prevents the value of the input from being edited.
|
|
153
|
+
*/
|
|
154
|
+
isReadOnly?: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* Set required for form that the field is part of.
|
|
157
|
+
*/
|
|
158
|
+
isRequired?: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* Element after input in text field.
|
|
161
|
+
*/
|
|
162
|
+
elemAfterInput?: React_2.ReactNode;
|
|
163
|
+
/**
|
|
164
|
+
* Element before input in text field.
|
|
165
|
+
*/
|
|
166
|
+
elemBeforeInput?: React_2.ReactNode;
|
|
167
|
+
/**
|
|
168
|
+
* Sets maximum width of input.
|
|
169
|
+
*/
|
|
170
|
+
width?: string | number;
|
|
171
|
+
/**
|
|
172
|
+
* Handler called when the mouse down event is triggered on the input element.
|
|
173
|
+
*/
|
|
174
|
+
onMouseDown?: React_2.MouseEventHandler<HTMLElement>;
|
|
175
|
+
/**
|
|
176
|
+
* A `testId` prop is provided for specified elements, which is a unique
|
|
177
|
+
* string that appears as a data attribute `data-testid` in the rendered code,
|
|
178
|
+
* serving as a hook for automated tests.
|
|
179
|
+
*/
|
|
180
|
+
testId?: string;
|
|
181
|
+
/**
|
|
182
|
+
* Name of the input element.
|
|
183
|
+
*/
|
|
184
|
+
name?: string;
|
|
185
|
+
/**
|
|
186
|
+
* Class name to apply to the input element.
|
|
187
|
+
*/
|
|
188
|
+
className?: string;
|
|
189
|
+
/**
|
|
190
|
+
* Placeholder text to display in the text field whenever it is empty.
|
|
191
|
+
*/
|
|
192
|
+
placeholder?: string;
|
|
193
|
+
/**
|
|
194
|
+
* Handler called when the inputs value changes.
|
|
195
|
+
*/
|
|
196
|
+
onChange?: FormEventHandler<HTMLInputElement>;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export {};
|
|
200
|
+
```
|