@atlaskit/textfield 5.1.5 → 5.1.6

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,12 @@
1
1
  # @atlaskit/textfield
2
2
 
3
+ ## 5.1.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - The no-unsafe-design-token-usage eslint rule now respects the new token naming conventions when auto-fixing by correctly formatting token ids.
8
+ - Updated dependencies
9
+
3
10
  ## 5.1.5
4
11
 
5
12
  ### Patch Changes
@@ -13,33 +13,33 @@ var disabledBackgroundColor = {
13
13
  };
14
14
  exports.disabledBackgroundColor = disabledBackgroundColor;
15
15
  var defaultBackgroundColor = {
16
- light: "var(--ds-background-subtleBorderedNeutral-resting, ".concat(_colors.N10, ")"),
17
- dark: "var(--ds-background-subtleBorderedNeutral-resting, ".concat(_colors.DN10, ")")
16
+ light: "var(--ds-background-input, ".concat(_colors.N10, ")"),
17
+ dark: "var(--ds-background-input, ".concat(_colors.DN10, ")")
18
18
  };
19
19
  exports.defaultBackgroundColor = defaultBackgroundColor;
20
20
  var defaultBackgroundColorFocus = {
21
- light: "var(--ds-background-default, ".concat(_colors.N0, ")"),
22
- dark: "var(--ds-background-default, ".concat(_colors.DN10, ")")
21
+ light: "var(--ds-surface, ".concat(_colors.N0, ")"),
22
+ dark: "var(--ds-surface, ".concat(_colors.DN10, ")")
23
23
  };
24
24
  exports.defaultBackgroundColorFocus = defaultBackgroundColorFocus;
25
25
  var defaultBackgroundColorHover = {
26
- light: "var(--ds-background-default, ".concat(_colors.N30, ")"),
27
- dark: "var(--ds-background-default, ".concat(_colors.DN30, ")")
26
+ light: "var(--ds-surface, ".concat(_colors.N30, ")"),
27
+ dark: "var(--ds-surface, ".concat(_colors.DN30, ")")
28
28
  };
29
29
  exports.defaultBackgroundColorHover = defaultBackgroundColorHover;
30
30
  var subtleBackgroundColorHover = {
31
- light: "var(--ds-background-transparentNeutral-hover, ".concat(_colors.N30, ")"),
32
- dark: "var(--ds-background-transparentNeutral-hover, ".concat(_colors.DN30, ")")
31
+ light: "var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N30, ")"),
32
+ dark: "var(--ds-background-neutral-subtle-hovered, ".concat(_colors.DN30, ")")
33
33
  };
34
34
  exports.subtleBackgroundColorHover = subtleBackgroundColorHover;
35
35
  var defaultBorderColor = {
36
- light: "var(--ds-border-neutral, ".concat(_colors.N40, ")"),
37
- dark: "var(--ds-border-neutral, ".concat(_colors.DN40, ")")
36
+ light: "var(--ds-border, ".concat(_colors.N40, ")"),
37
+ dark: "var(--ds-border, ".concat(_colors.DN40, ")")
38
38
  };
39
39
  exports.defaultBorderColor = defaultBorderColor;
40
40
  var defaultBorderColorFocus = {
41
- light: "var(--ds-border-focus, ".concat(_colors.B100, ")"),
42
- dark: "var(--ds-border-focus, ".concat(_colors.B75, ")")
41
+ light: "var(--ds-border-focused, ".concat(_colors.B100, ")"),
42
+ dark: "var(--ds-border-focused, ".concat(_colors.B75, ")")
43
43
  };
44
44
  exports.defaultBorderColorFocus = defaultBorderColorFocus;
45
45
  var transparent = {
@@ -48,8 +48,8 @@ var transparent = {
48
48
  };
49
49
  exports.transparent = transparent;
50
50
  var textColor = {
51
- light: "var(--ds-text-highEmphasis, ".concat(_colors.N900, ")"),
52
- dark: "var(--ds-text-highEmphasis, ".concat(_colors.DN600, ")")
51
+ light: "var(--ds-text, ".concat(_colors.N900, ")"),
52
+ dark: "var(--ds-text, ".concat(_colors.DN600, ")")
53
53
  };
54
54
  exports.textColor = textColor;
55
55
  var disabledTextColor = {
@@ -58,7 +58,7 @@ var disabledTextColor = {
58
58
  };
59
59
  exports.disabledTextColor = disabledTextColor;
60
60
  var placeholderTextColor = {
61
- light: "var(--ds-text-lowEmphasis, ".concat(_colors.N100, ")"),
62
- dark: "var(--ds-text-lowEmphasis, ".concat(_colors.DN90, ")")
61
+ light: "var(--ds-text-subtlest, ".concat(_colors.N100, ")"),
62
+ dark: "var(--ds-text-subtlest, ".concat(_colors.DN90, ")")
63
63
  };
64
64
  exports.placeholderTextColor = placeholderTextColor;
@@ -48,7 +48,7 @@ var invalidRules = {
48
48
  backgroundColorHover: componentTokens.defaultBackgroundColorHover.light,
49
49
  // ^--- the above values aren't used directly they remain because its exposed by the `textFieldColors` export
50
50
  backgroundColorFocus: componentTokens.defaultBackgroundColorFocus.light,
51
- borderColor: "var(--ds-iconBorder-danger, ".concat(_colors.R400, ")"),
51
+ borderColor: "var(--ds-border-danger, ".concat(_colors.R400, ")"),
52
52
  borderColorFocus: componentTokens.defaultBorderColorFocus.light
53
53
  },
54
54
  dark: {
@@ -57,7 +57,7 @@ var invalidRules = {
57
57
  backgroundColorHover: componentTokens.defaultBackgroundColorHover.dark,
58
58
  // ^--- the above values aren't used directly they remain because its exposed by the `textFieldColors` export
59
59
  backgroundColorFocus: componentTokens.defaultBackgroundColorFocus.dark,
60
- borderColor: "var(--ds-iconBorder-danger, ".concat(_colors.R400, ")"),
60
+ borderColor: "var(--ds-border-danger, ".concat(_colors.R400, ")"),
61
61
  borderColorFocus: componentTokens.defaultBorderColorFocus.dark
62
62
  }
63
63
  };
@@ -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.5"
43
+ packageVersion: "5.1.6"
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.5",
3
+ "version": "5.1.6",
4
4
  "sideEffects": false
5
5
  }
@@ -4,42 +4,42 @@ export const disabledBackgroundColor = {
4
4
  dark: `var(--ds-background-disabled, ${DN10})`
5
5
  };
6
6
  export const defaultBackgroundColor = {
7
- light: `var(--ds-background-subtleBorderedNeutral-resting, ${N10})`,
8
- dark: `var(--ds-background-subtleBorderedNeutral-resting, ${DN10})`
7
+ light: `var(--ds-background-input, ${N10})`,
8
+ dark: `var(--ds-background-input, ${DN10})`
9
9
  };
10
10
  export const defaultBackgroundColorFocus = {
11
- light: `var(--ds-background-default, ${N0})`,
12
- dark: `var(--ds-background-default, ${DN10})`
11
+ light: `var(--ds-surface, ${N0})`,
12
+ dark: `var(--ds-surface, ${DN10})`
13
13
  };
14
14
  export const defaultBackgroundColorHover = {
15
- light: `var(--ds-background-default, ${N30})`,
16
- dark: `var(--ds-background-default, ${DN30})`
15
+ light: `var(--ds-surface, ${N30})`,
16
+ dark: `var(--ds-surface, ${DN30})`
17
17
  };
18
18
  export const subtleBackgroundColorHover = {
19
- light: `var(--ds-background-transparentNeutral-hover, ${N30})`,
20
- dark: `var(--ds-background-transparentNeutral-hover, ${DN30})`
19
+ light: `var(--ds-background-neutral-subtle-hovered, ${N30})`,
20
+ dark: `var(--ds-background-neutral-subtle-hovered, ${DN30})`
21
21
  };
22
22
  export const defaultBorderColor = {
23
- light: `var(--ds-border-neutral, ${N40})`,
24
- dark: `var(--ds-border-neutral, ${DN40})`
23
+ light: `var(--ds-border, ${N40})`,
24
+ dark: `var(--ds-border, ${DN40})`
25
25
  };
26
26
  export const defaultBorderColorFocus = {
27
- light: `var(--ds-border-focus, ${B100})`,
28
- dark: `var(--ds-border-focus, ${B75})`
27
+ light: `var(--ds-border-focused, ${B100})`,
28
+ dark: `var(--ds-border-focused, ${B75})`
29
29
  };
30
30
  export const transparent = {
31
31
  light: 'transparent',
32
32
  dark: 'transparent'
33
33
  };
34
34
  export const textColor = {
35
- light: `var(--ds-text-highEmphasis, ${N900})`,
36
- dark: `var(--ds-text-highEmphasis, ${DN600})`
35
+ light: `var(--ds-text, ${N900})`,
36
+ dark: `var(--ds-text, ${DN600})`
37
37
  };
38
38
  export const disabledTextColor = {
39
39
  light: `var(--ds-text-disabled, ${N70})`,
40
40
  dark: `var(--ds-text-disabled, ${DN90})`
41
41
  };
42
42
  export const placeholderTextColor = {
43
- light: `var(--ds-text-lowEmphasis, ${N100})`,
44
- dark: `var(--ds-text-lowEmphasis, ${DN90})`
43
+ light: `var(--ds-text-subtlest, ${N100})`,
44
+ dark: `var(--ds-text-subtlest, ${DN90})`
45
45
  };
@@ -24,7 +24,7 @@ const invalidRules = {
24
24
  backgroundColorHover: componentTokens.defaultBackgroundColorHover.light,
25
25
  // ^--- the above values aren't used directly they remain because its exposed by the `textFieldColors` export
26
26
  backgroundColorFocus: componentTokens.defaultBackgroundColorFocus.light,
27
- borderColor: `var(--ds-iconBorder-danger, ${R400})`,
27
+ borderColor: `var(--ds-border-danger, ${R400})`,
28
28
  borderColorFocus: componentTokens.defaultBorderColorFocus.light
29
29
  },
30
30
  dark: {
@@ -33,7 +33,7 @@ const invalidRules = {
33
33
  backgroundColorHover: componentTokens.defaultBackgroundColorHover.dark,
34
34
  // ^--- the above values aren't used directly they remain because its exposed by the `textFieldColors` export
35
35
  backgroundColorFocus: componentTokens.defaultBackgroundColorFocus.dark,
36
- borderColor: `var(--ds-iconBorder-danger, ${R400})`,
36
+ borderColor: `var(--ds-border-danger, ${R400})`,
37
37
  borderColorFocus: componentTokens.defaultBorderColorFocus.dark
38
38
  }
39
39
  };
@@ -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.5"
12
+ packageVersion: "5.1.6"
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.5",
3
+ "version": "5.1.6",
4
4
  "sideEffects": false
5
5
  }
@@ -4,42 +4,42 @@ export var disabledBackgroundColor = {
4
4
  dark: "var(--ds-background-disabled, ".concat(DN10, ")")
5
5
  };
6
6
  export var defaultBackgroundColor = {
7
- light: "var(--ds-background-subtleBorderedNeutral-resting, ".concat(N10, ")"),
8
- dark: "var(--ds-background-subtleBorderedNeutral-resting, ".concat(DN10, ")")
7
+ light: "var(--ds-background-input, ".concat(N10, ")"),
8
+ dark: "var(--ds-background-input, ".concat(DN10, ")")
9
9
  };
10
10
  export var defaultBackgroundColorFocus = {
11
- light: "var(--ds-background-default, ".concat(N0, ")"),
12
- dark: "var(--ds-background-default, ".concat(DN10, ")")
11
+ light: "var(--ds-surface, ".concat(N0, ")"),
12
+ dark: "var(--ds-surface, ".concat(DN10, ")")
13
13
  };
14
14
  export var defaultBackgroundColorHover = {
15
- light: "var(--ds-background-default, ".concat(N30, ")"),
16
- dark: "var(--ds-background-default, ".concat(DN30, ")")
15
+ light: "var(--ds-surface, ".concat(N30, ")"),
16
+ dark: "var(--ds-surface, ".concat(DN30, ")")
17
17
  };
18
18
  export var subtleBackgroundColorHover = {
19
- light: "var(--ds-background-transparentNeutral-hover, ".concat(N30, ")"),
20
- dark: "var(--ds-background-transparentNeutral-hover, ".concat(DN30, ")")
19
+ light: "var(--ds-background-neutral-subtle-hovered, ".concat(N30, ")"),
20
+ dark: "var(--ds-background-neutral-subtle-hovered, ".concat(DN30, ")")
21
21
  };
22
22
  export var defaultBorderColor = {
23
- light: "var(--ds-border-neutral, ".concat(N40, ")"),
24
- dark: "var(--ds-border-neutral, ".concat(DN40, ")")
23
+ light: "var(--ds-border, ".concat(N40, ")"),
24
+ dark: "var(--ds-border, ".concat(DN40, ")")
25
25
  };
26
26
  export var defaultBorderColorFocus = {
27
- light: "var(--ds-border-focus, ".concat(B100, ")"),
28
- dark: "var(--ds-border-focus, ".concat(B75, ")")
27
+ light: "var(--ds-border-focused, ".concat(B100, ")"),
28
+ dark: "var(--ds-border-focused, ".concat(B75, ")")
29
29
  };
30
30
  export var transparent = {
31
31
  light: 'transparent',
32
32
  dark: 'transparent'
33
33
  };
34
34
  export var textColor = {
35
- light: "var(--ds-text-highEmphasis, ".concat(N900, ")"),
36
- dark: "var(--ds-text-highEmphasis, ".concat(DN600, ")")
35
+ light: "var(--ds-text, ".concat(N900, ")"),
36
+ dark: "var(--ds-text, ".concat(DN600, ")")
37
37
  };
38
38
  export var disabledTextColor = {
39
39
  light: "var(--ds-text-disabled, ".concat(N70, ")"),
40
40
  dark: "var(--ds-text-disabled, ".concat(DN90, ")")
41
41
  };
42
42
  export var placeholderTextColor = {
43
- light: "var(--ds-text-lowEmphasis, ".concat(N100, ")"),
44
- dark: "var(--ds-text-lowEmphasis, ".concat(DN90, ")")
43
+ light: "var(--ds-text-subtlest, ".concat(N100, ")"),
44
+ dark: "var(--ds-text-subtlest, ".concat(DN90, ")")
45
45
  };
@@ -30,7 +30,7 @@ var invalidRules = {
30
30
  backgroundColorHover: componentTokens.defaultBackgroundColorHover.light,
31
31
  // ^--- the above values aren't used directly they remain because its exposed by the `textFieldColors` export
32
32
  backgroundColorFocus: componentTokens.defaultBackgroundColorFocus.light,
33
- borderColor: "var(--ds-iconBorder-danger, ".concat(R400, ")"),
33
+ borderColor: "var(--ds-border-danger, ".concat(R400, ")"),
34
34
  borderColorFocus: componentTokens.defaultBorderColorFocus.light
35
35
  },
36
36
  dark: {
@@ -39,7 +39,7 @@ var invalidRules = {
39
39
  backgroundColorHover: componentTokens.defaultBackgroundColorHover.dark,
40
40
  // ^--- the above values aren't used directly they remain because its exposed by the `textFieldColors` export
41
41
  backgroundColorFocus: componentTokens.defaultBackgroundColorFocus.dark,
42
- borderColor: "var(--ds-iconBorder-danger, ".concat(R400, ")"),
42
+ borderColor: "var(--ds-border-danger, ".concat(R400, ")"),
43
43
  borderColorFocus: componentTokens.defaultBorderColorFocus.dark
44
44
  }
45
45
  };
@@ -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.5"
20
+ packageVersion: "5.1.6"
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.5",
3
+ "version": "5.1.6",
4
4
  "sideEffects": false
5
5
  }
@@ -3,42 +3,42 @@ export declare const disabledBackgroundColor: {
3
3
  dark: "var(--ds-background-disabled)";
4
4
  };
5
5
  export declare const defaultBackgroundColor: {
6
- light: "var(--ds-background-subtleBorderedNeutral-resting)";
7
- dark: "var(--ds-background-subtleBorderedNeutral-resting)";
6
+ light: "var(--ds-background-input)";
7
+ dark: "var(--ds-background-input)";
8
8
  };
9
9
  export declare const defaultBackgroundColorFocus: {
10
- light: "var(--ds-background-default)";
11
- dark: "var(--ds-background-default)";
10
+ light: "var(--ds-surface)";
11
+ dark: "var(--ds-surface)";
12
12
  };
13
13
  export declare const defaultBackgroundColorHover: {
14
- light: "var(--ds-background-default)";
15
- dark: "var(--ds-background-default)";
14
+ light: "var(--ds-surface)";
15
+ dark: "var(--ds-surface)";
16
16
  };
17
17
  export declare const subtleBackgroundColorHover: {
18
- light: "var(--ds-background-transparentNeutral-hover)";
19
- dark: "var(--ds-background-transparentNeutral-hover)";
18
+ light: "var(--ds-background-neutral-subtle-hovered)";
19
+ dark: "var(--ds-background-neutral-subtle-hovered)";
20
20
  };
21
21
  export declare const defaultBorderColor: {
22
- light: "var(--ds-border-neutral)";
23
- dark: "var(--ds-border-neutral)";
22
+ light: "var(--ds-border)";
23
+ dark: "var(--ds-border)";
24
24
  };
25
25
  export declare const defaultBorderColorFocus: {
26
- light: "var(--ds-border-focus)";
27
- dark: "var(--ds-border-focus)";
26
+ light: "var(--ds-border-focused)";
27
+ dark: "var(--ds-border-focused)";
28
28
  };
29
29
  export declare const transparent: {
30
30
  light: string;
31
31
  dark: string;
32
32
  };
33
33
  export declare const textColor: {
34
- light: "var(--ds-text-highEmphasis)";
35
- dark: "var(--ds-text-highEmphasis)";
34
+ light: "var(--ds-text)";
35
+ dark: "var(--ds-text)";
36
36
  };
37
37
  export declare const disabledTextColor: {
38
38
  light: "var(--ds-text-disabled)";
39
39
  dark: "var(--ds-text-disabled)";
40
40
  };
41
41
  export declare const placeholderTextColor: {
42
- light: "var(--ds-text-lowEmphasis)";
43
- dark: "var(--ds-text-lowEmphasis)";
42
+ light: "var(--ds-text-subtlest)";
43
+ dark: "var(--ds-text-subtlest)";
44
44
  };
@@ -17,7 +17,7 @@ export declare const containerStyles: (appearance: Appearance, mode: ThemeModes,
17
17
  readonly pointerEvents: "auto";
18
18
  readonly backgroundColor: string;
19
19
  readonly borderColor: string;
20
- readonly color: "var(--ds-text-highEmphasis)";
20
+ readonly color: "var(--ds-text)";
21
21
  readonly cursor: string;
22
22
  readonly '&:hover': {
23
23
  backgroundColor: string;
@@ -33,11 +33,11 @@ export declare const containerStyles: (appearance: Appearance, mode: ThemeModes,
33
33
  cursor: string;
34
34
  };
35
35
  readonly '&[data-invalid]': {
36
- borderColor: "var(--ds-iconBorder-danger)";
36
+ borderColor: "var(--ds-border-danger)";
37
37
  };
38
38
  readonly '&[data-invalid]:focus-within': {
39
- backgroundColor: "var(--ds-background-default)";
40
- borderColor: "var(--ds-border-focus)";
39
+ backgroundColor: "var(--ds-surface)";
40
+ borderColor: "var(--ds-border-focused)";
41
41
  };
42
42
  readonly '@media screen and (-ms-high-contrast: active)': {
43
43
  '&[data-invalid]:focus-within': {
@@ -85,7 +85,7 @@ export declare const inputStyles: (mode: ThemeModes) => {
85
85
  readonly boxShadow: "none";
86
86
  };
87
87
  readonly '&::placeholder': {
88
- readonly color: "var(--ds-text-lowEmphasis)";
88
+ readonly color: "var(--ds-text-subtlest)";
89
89
  readonly '&:disabled': {
90
90
  readonly color: "var(--ds-text-disabled)";
91
91
  };
@@ -99,8 +99,8 @@ export declare const inputStyles: (mode: ThemeModes) => {
99
99
  export declare const textFieldColors: {
100
100
  backgroundColor: {
101
101
  standard: {
102
- light: "var(--ds-background-subtleBorderedNeutral-resting)";
103
- dark: "var(--ds-background-subtleBorderedNeutral-resting)";
102
+ light: "var(--ds-background-input)";
103
+ dark: "var(--ds-background-input)";
104
104
  };
105
105
  subtle: {
106
106
  light: string;
@@ -113,12 +113,12 @@ export declare const textFieldColors: {
113
113
  };
114
114
  backgroundColorFocus: {
115
115
  standard: {
116
- light: "var(--ds-background-default)";
117
- dark: "var(--ds-background-default)";
116
+ light: "var(--ds-surface)";
117
+ dark: "var(--ds-surface)";
118
118
  };
119
119
  subtle: {
120
- light: "var(--ds-background-default)";
121
- dark: "var(--ds-background-default)";
120
+ light: "var(--ds-surface)";
121
+ dark: "var(--ds-surface)";
122
122
  };
123
123
  none: {
124
124
  light: string;
@@ -127,12 +127,12 @@ export declare const textFieldColors: {
127
127
  };
128
128
  backgroundColorHover: {
129
129
  standard: {
130
- light: "var(--ds-background-default)";
131
- dark: "var(--ds-background-default)";
130
+ light: "var(--ds-surface)";
131
+ dark: "var(--ds-surface)";
132
132
  };
133
133
  subtle: {
134
- light: "var(--ds-background-transparentNeutral-hover)";
135
- dark: "var(--ds-background-transparentNeutral-hover)";
134
+ light: "var(--ds-background-neutral-subtle-hovered)";
135
+ dark: "var(--ds-background-neutral-subtle-hovered)";
136
136
  };
137
137
  none: {
138
138
  light: string;
@@ -141,8 +141,8 @@ export declare const textFieldColors: {
141
141
  };
142
142
  borderColor: {
143
143
  standard: {
144
- light: "var(--ds-border-neutral)";
145
- dark: "var(--ds-border-neutral)";
144
+ light: "var(--ds-border)";
145
+ dark: "var(--ds-border)";
146
146
  };
147
147
  subtle: {
148
148
  light: string;
@@ -155,12 +155,12 @@ export declare const textFieldColors: {
155
155
  };
156
156
  borderColorFocus: {
157
157
  standard: {
158
- light: "var(--ds-border-focus)";
159
- dark: "var(--ds-border-focus)";
158
+ light: "var(--ds-border-focused)";
159
+ dark: "var(--ds-border-focused)";
160
160
  };
161
161
  subtle: {
162
- light: "var(--ds-border-focus)";
163
- dark: "var(--ds-border-focus)";
162
+ light: "var(--ds-border-focused)";
163
+ dark: "var(--ds-border-focused)";
164
164
  };
165
165
  none: {
166
166
  light: string;
@@ -168,27 +168,27 @@ export declare const textFieldColors: {
168
168
  };
169
169
  };
170
170
  placeholderTextColor: {
171
- light: "var(--ds-text-lowEmphasis)";
172
- dark: "var(--ds-text-lowEmphasis)";
171
+ light: "var(--ds-text-subtlest)";
172
+ dark: "var(--ds-text-subtlest)";
173
173
  };
174
174
  textColor: {
175
- light: "var(--ds-text-highEmphasis)";
176
- dark: "var(--ds-text-highEmphasis)";
175
+ light: "var(--ds-text)";
176
+ dark: "var(--ds-text)";
177
177
  };
178
178
  invalidRules: {
179
179
  light: {
180
- backgroundColor: "var(--ds-background-subtleBorderedNeutral-resting)";
181
- backgroundColorHover: "var(--ds-background-default)";
182
- backgroundColorFocus: "var(--ds-background-default)";
183
- borderColor: "var(--ds-iconBorder-danger)";
184
- borderColorFocus: "var(--ds-border-focus)";
180
+ backgroundColor: "var(--ds-background-input)";
181
+ backgroundColorHover: "var(--ds-surface)";
182
+ backgroundColorFocus: "var(--ds-surface)";
183
+ borderColor: "var(--ds-border-danger)";
184
+ borderColorFocus: "var(--ds-border-focused)";
185
185
  };
186
186
  dark: {
187
- backgroundColor: "var(--ds-background-subtleBorderedNeutral-resting)";
188
- backgroundColorHover: "var(--ds-background-default)";
189
- backgroundColorFocus: "var(--ds-background-default)";
190
- borderColor: "var(--ds-iconBorder-danger)";
191
- borderColorFocus: "var(--ds-border-focus)";
187
+ backgroundColor: "var(--ds-background-input)";
188
+ backgroundColorHover: "var(--ds-surface)";
189
+ backgroundColorFocus: "var(--ds-surface)";
190
+ borderColor: "var(--ds-border-danger)";
191
+ borderColorFocus: "var(--ds-border-focused)";
192
192
  };
193
193
  };
194
194
  disabledRules: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/textfield",
3
- "version": "5.1.5",
3
+ "version": "5.1.6",
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/"
@@ -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.5.0",
30
+ "@atlaskit/tokens": "^0.6.0",
31
31
  "@babel/runtime": "^7.0.0",
32
32
  "@emotion/core": "^10.0.9"
33
33
  },