@atlaskit/textfield 5.3.2 → 5.3.4
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 +12 -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 +4 -4
- package/report.api.md +33 -12
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.3.
|
|
43
|
+
packageVersion: "5.3.4"
|
|
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.3.
|
|
12
|
+
packageVersion: "5.3.4"
|
|
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.3.
|
|
20
|
+
packageVersion: "5.3.4"
|
|
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.3.
|
|
3
|
+
"version": "5.3.4",
|
|
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/"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
31
31
|
"@atlaskit/theme": "^12.2.0",
|
|
32
|
-
"@atlaskit/tokens": "^0.
|
|
32
|
+
"@atlaskit/tokens": "^0.13.0",
|
|
33
33
|
"@babel/runtime": "^7.0.0",
|
|
34
34
|
"@emotion/react": "^11.7.1"
|
|
35
35
|
},
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@atlaskit/avatar": "^21.1.0",
|
|
41
|
-
"@atlaskit/button": "^16.
|
|
41
|
+
"@atlaskit/button": "^16.5.0",
|
|
42
42
|
"@atlaskit/docs": "*",
|
|
43
43
|
"@atlaskit/ds-lib": "^2.0.1",
|
|
44
|
-
"@atlaskit/form": "^8.
|
|
44
|
+
"@atlaskit/form": "^8.8.0",
|
|
45
45
|
"@atlaskit/icon": "^21.11.0",
|
|
46
46
|
"@atlaskit/section-message": "^6.3.0",
|
|
47
47
|
"@atlaskit/ssr": "*",
|
package/report.api.md
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
|
+
<!-- API Report Version: 2.2 -->
|
|
2
|
+
|
|
1
3
|
## API Report File for "@atlaskit/textfield"
|
|
2
4
|
|
|
3
|
-
> Do not edit this file.
|
|
5
|
+
> Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
|
|
6
|
+
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
|
+
|
|
8
|
+
### Table of contents
|
|
4
9
|
|
|
5
|
-
|
|
6
|
-
Generated API Report version: 2.0
|
|
7
|
-
-->
|
|
10
|
+
- [Main Entry Types](#main-entry-types)
|
|
8
11
|
|
|
9
|
-
|
|
12
|
+
### Main Entry Types
|
|
13
|
+
|
|
14
|
+
<!--SECTION START: Main Entry Types-->
|
|
10
15
|
|
|
11
16
|
```ts
|
|
12
17
|
import { AllHTMLAttributes } from 'react';
|
|
@@ -14,7 +19,7 @@ import { FormEventHandler } from 'react';
|
|
|
14
19
|
import { default as React_2 } from 'react';
|
|
15
20
|
|
|
16
21
|
// @public (undocumented)
|
|
17
|
-
export type Appearance = '
|
|
22
|
+
export type Appearance = 'none' | 'standard' | 'subtle';
|
|
18
23
|
|
|
19
24
|
// @public (undocumented)
|
|
20
25
|
const _default: React_2.NamedExoticComponent<
|
|
@@ -58,8 +63,8 @@ export const TextFieldColors: {
|
|
|
58
63
|
dark: 'var(--ds-background-input-hovered)';
|
|
59
64
|
};
|
|
60
65
|
subtle: {
|
|
61
|
-
light: 'var(--ds-background-
|
|
62
|
-
dark: 'var(--ds-background-
|
|
66
|
+
light: 'var(--ds-background-input-hovered)';
|
|
67
|
+
dark: 'var(--ds-background-input-hovered)';
|
|
63
68
|
};
|
|
64
69
|
none: {
|
|
65
70
|
light: string;
|
|
@@ -68,8 +73,8 @@ export const TextFieldColors: {
|
|
|
68
73
|
};
|
|
69
74
|
borderColor: {
|
|
70
75
|
standard: {
|
|
71
|
-
light: 'var(--ds-border)';
|
|
72
|
-
dark: 'var(--ds-border)';
|
|
76
|
+
light: 'var(--ds-border-input)';
|
|
77
|
+
dark: 'var(--ds-border-input)';
|
|
73
78
|
};
|
|
74
79
|
subtle: {
|
|
75
80
|
light: string;
|
|
@@ -94,6 +99,20 @@ export const TextFieldColors: {
|
|
|
94
99
|
dark: string;
|
|
95
100
|
};
|
|
96
101
|
};
|
|
102
|
+
borderColorHover: {
|
|
103
|
+
standard: {
|
|
104
|
+
light: 'var(--ds-border-input)';
|
|
105
|
+
dark: 'var(--ds-border-input)';
|
|
106
|
+
};
|
|
107
|
+
subtle: {
|
|
108
|
+
light: 'var(--ds-border-input)';
|
|
109
|
+
dark: 'var(--ds-border-input)';
|
|
110
|
+
};
|
|
111
|
+
none: {
|
|
112
|
+
light: string;
|
|
113
|
+
dark: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
97
116
|
placeholderTextColor: {
|
|
98
117
|
light: 'var(--ds-text-subtlest)';
|
|
99
118
|
dark: 'var(--ds-text-subtlest)';
|
|
@@ -136,7 +155,7 @@ export const TextFieldColors: {
|
|
|
136
155
|
|
|
137
156
|
// @public (undocumented)
|
|
138
157
|
export interface TextFieldProps extends AllHTMLAttributes<HTMLInputElement> {
|
|
139
|
-
appearance?:
|
|
158
|
+
appearance?: Appearance;
|
|
140
159
|
className?: string;
|
|
141
160
|
elemAfterInput?: React_2.ReactNode;
|
|
142
161
|
elemBeforeInput?: React_2.ReactNode;
|
|
@@ -151,8 +170,10 @@ export interface TextFieldProps extends AllHTMLAttributes<HTMLInputElement> {
|
|
|
151
170
|
onMouseDown?: React_2.MouseEventHandler<HTMLElement>;
|
|
152
171
|
placeholder?: string;
|
|
153
172
|
testId?: string;
|
|
154
|
-
width?:
|
|
173
|
+
width?: number | string;
|
|
155
174
|
}
|
|
156
175
|
|
|
157
176
|
// (No @packageDocumentation comment for this package)
|
|
158
177
|
```
|
|
178
|
+
|
|
179
|
+
<!--SECTION END: Main Entry Types-->
|