@atlaskit/textfield 5.1.9 → 5.1.12

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 CHANGED
@@ -1,5 +1,23 @@
1
1
  # @atlaskit/textfield
2
2
 
3
+ ## 5.1.12
4
+
5
+ ### Patch Changes
6
+
7
+ - [`7c14ea36248`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7c14ea36248) - [ux] Updated input tokens within `@atlaskit/textfield`.
8
+
9
+ ## 5.1.11
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 5.1.10
16
+
17
+ ### Patch Changes
18
+
19
+ - [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
20
+
3
21
  ## 5.1.9
4
22
 
5
23
  ### Patch Changes
@@ -18,8 +18,8 @@ var defaultBackgroundColor = {
18
18
  };
19
19
  exports.defaultBackgroundColor = defaultBackgroundColor;
20
20
  var defaultBackgroundColorFocus = {
21
- light: "var(--ds-surface, ".concat(_colors.N0, ")"),
22
- dark: "var(--ds-surface, ".concat(_colors.DN10, ")")
21
+ light: "var(--ds-background-input-pressed, ".concat(_colors.N0, ")"),
22
+ dark: "var(--ds-background-input-pressed, ".concat(_colors.DN10, ")")
23
23
  };
24
24
  exports.defaultBackgroundColorFocus = defaultBackgroundColorFocus;
25
25
  var defaultBackgroundColorHover = {
@@ -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.9"
43
+ packageVersion: "5.1.12"
44
44
  };
45
45
  var Textfield = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
46
46
  var _props$appearance = props.appearance,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/textfield",
3
- "version": "5.1.9",
3
+ "version": "5.1.12",
4
4
  "sideEffects": false
5
5
  }
@@ -8,8 +8,8 @@ export const defaultBackgroundColor = {
8
8
  dark: `var(--ds-background-input, ${DN10})`
9
9
  };
10
10
  export const defaultBackgroundColorFocus = {
11
- light: `var(--ds-surface, ${N0})`,
12
- dark: `var(--ds-surface, ${DN10})`
11
+ light: `var(--ds-background-input-pressed, ${N0})`,
12
+ dark: `var(--ds-background-input-pressed, ${DN10})`
13
13
  };
14
14
  export const defaultBackgroundColorHover = {
15
15
  light: `var(--ds-background-input-hovered, ${N30})`,
@@ -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.9"
12
+ packageVersion: "5.1.12"
13
13
  };
14
14
  const Textfield = /*#__PURE__*/forwardRef((props, ref) => {
15
15
  const {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/textfield",
3
- "version": "5.1.9",
3
+ "version": "5.1.12",
4
4
  "sideEffects": false
5
5
  }
@@ -8,8 +8,8 @@ export var defaultBackgroundColor = {
8
8
  dark: "var(--ds-background-input, ".concat(DN10, ")")
9
9
  };
10
10
  export var defaultBackgroundColorFocus = {
11
- light: "var(--ds-surface, ".concat(N0, ")"),
12
- dark: "var(--ds-surface, ".concat(DN10, ")")
11
+ light: "var(--ds-background-input-pressed, ".concat(N0, ")"),
12
+ dark: "var(--ds-background-input-pressed, ".concat(DN10, ")")
13
13
  };
14
14
  export var defaultBackgroundColorHover = {
15
15
  light: "var(--ds-background-input-hovered, ".concat(N30, ")"),
@@ -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.9"
20
+ packageVersion: "5.1.12"
21
21
  };
22
22
  var Textfield = /*#__PURE__*/forwardRef(function (props, ref) {
23
23
  var _props$appearance = props.appearance,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/textfield",
3
- "version": "5.1.9",
3
+ "version": "5.1.12",
4
4
  "sideEffects": false
5
5
  }
@@ -7,8 +7,8 @@ export declare const defaultBackgroundColor: {
7
7
  dark: "var(--ds-background-input)";
8
8
  };
9
9
  export declare const defaultBackgroundColorFocus: {
10
- light: "var(--ds-surface)";
11
- dark: "var(--ds-surface)";
10
+ light: "var(--ds-background-input-pressed)";
11
+ dark: "var(--ds-background-input-pressed)";
12
12
  };
13
13
  export declare const defaultBackgroundColorHover: {
14
14
  light: "var(--ds-background-input-hovered)";
@@ -36,7 +36,7 @@ export declare const containerStyles: (appearance: Appearance, mode: ThemeModes,
36
36
  borderColor: "var(--ds-border-danger)";
37
37
  };
38
38
  readonly '&[data-invalid]:focus-within': {
39
- backgroundColor: "var(--ds-surface)";
39
+ backgroundColor: "var(--ds-background-input-pressed)";
40
40
  borderColor: "var(--ds-border-focused)";
41
41
  };
42
42
  readonly '@media screen and (-ms-high-contrast: active)': {
@@ -68,12 +68,12 @@ export declare const inputStyles: (mode: ThemeModes) => {
68
68
  readonly fontFamily: string;
69
69
  };
70
70
  readonly '&[data-compact]': {
71
- readonly padding: string;
72
- readonly height: string;
71
+ readonly padding: `${number}px ${number}px`;
72
+ readonly height: `${string}em`;
73
73
  };
74
74
  readonly '&:not([data-compact])': {
75
- readonly padding: string;
76
- readonly height: string;
75
+ readonly padding: `${number}px ${number}px`;
76
+ readonly height: `${string}em`;
77
77
  };
78
78
  readonly '&[disabled]': {
79
79
  readonly WebkitTextFillColor: "var(--ds-text-disabled)";
@@ -113,12 +113,12 @@ export declare const textFieldColors: {
113
113
  };
114
114
  backgroundColorFocus: {
115
115
  standard: {
116
- light: "var(--ds-surface)";
117
- dark: "var(--ds-surface)";
116
+ light: "var(--ds-background-input-pressed)";
117
+ dark: "var(--ds-background-input-pressed)";
118
118
  };
119
119
  subtle: {
120
- light: "var(--ds-surface)";
121
- dark: "var(--ds-surface)";
120
+ light: "var(--ds-background-input-pressed)";
121
+ dark: "var(--ds-background-input-pressed)";
122
122
  };
123
123
  none: {
124
124
  light: string;
@@ -179,14 +179,14 @@ export declare const textFieldColors: {
179
179
  light: {
180
180
  backgroundColor: "var(--ds-background-input)";
181
181
  backgroundColorHover: "var(--ds-background-input-hovered)";
182
- backgroundColorFocus: "var(--ds-surface)";
182
+ backgroundColorFocus: "var(--ds-background-input-pressed)";
183
183
  borderColor: "var(--ds-border-danger)";
184
184
  borderColorFocus: "var(--ds-border-focused)";
185
185
  };
186
186
  dark: {
187
187
  backgroundColor: "var(--ds-background-input)";
188
188
  backgroundColorHover: "var(--ds-background-input-hovered)";
189
- backgroundColorFocus: "var(--ds-surface)";
189
+ backgroundColorFocus: "var(--ds-background-input-pressed)";
190
190
  borderColor: "var(--ds-border-danger)";
191
191
  borderColorFocus: "var(--ds-border-focused)";
192
192
  };
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@atlaskit/textfield",
3
- "version": "5.1.9",
3
+ "version": "5.1.12",
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/"
7
7
  },
8
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend",
8
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
9
9
  "author": "Atlassian Pty Ltd",
10
10
  "license": "Apache-2.0",
11
11
  "main": "dist/cjs/index.js",
@@ -27,7 +27,7 @@
27
27
  "dependencies": {
28
28
  "@atlaskit/analytics-next": "^8.2.0",
29
29
  "@atlaskit/theme": "^12.1.0",
30
- "@atlaskit/tokens": "^0.9.0",
30
+ "@atlaskit/tokens": "^0.10.0",
31
31
  "@babel/runtime": "^7.0.0",
32
32
  "@emotion/core": "^10.0.9"
33
33
  },
@@ -35,8 +35,8 @@
35
35
  "react": "^16.8.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@atlaskit/avatar": "^20.5.0",
39
- "@atlaskit/button": "^16.2.0",
38
+ "@atlaskit/avatar": "^21.0.0",
39
+ "@atlaskit/button": "^16.3.0",
40
40
  "@atlaskit/docs": "*",
41
41
  "@atlaskit/form": "^8.5.0",
42
42
  "@atlaskit/icon": "^21.10.0",
@@ -51,7 +51,7 @@
51
51
  "jscodeshift": "^0.13.0",
52
52
  "react-dom": "^16.8.0",
53
53
  "storybook-addon-performance": "^0.16.0",
54
- "typescript": "3.9.10",
54
+ "typescript": "4.2.4",
55
55
  "wait-for-expect": "^1.2.0"
56
56
  },
57
57
  "keywords": [