@atlaskit/textfield 5.1.2 → 5.1.3

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,11 @@
1
1
  # @atlaskit/textfield
2
2
 
3
+ ## 5.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 5.1.2
4
10
 
5
11
  ### Patch Changes
@@ -38,7 +38,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
38
38
  var analyticsParams = {
39
39
  componentName: 'textField',
40
40
  packageName: "@atlaskit/textfield",
41
- packageVersion: "5.1.2"
41
+ packageVersion: "5.1.3"
42
42
  };
43
43
  var Textfield = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
44
44
  var _props$appearance = props.appearance,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/textfield",
3
- "version": "5.1.2",
3
+ "version": "5.1.3",
4
4
  "sideEffects": false
5
5
  }
@@ -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.2"
12
+ packageVersion: "5.1.3"
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.2",
3
+ "version": "5.1.3",
4
4
  "sideEffects": false
5
5
  }
@@ -16,7 +16,7 @@ import { containerStyles as getContainerStyles, inputStyles as getInputStyles }
16
16
  var analyticsParams = {
17
17
  componentName: 'textField',
18
18
  packageName: "@atlaskit/textfield",
19
- packageVersion: "5.1.2"
19
+ packageVersion: "5.1.3"
20
20
  };
21
21
  var Textfield = /*#__PURE__*/forwardRef(function (props, ref) {
22
22
  var _props$appearance = props.appearance,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/textfield",
3
- "version": "5.1.2",
3
+ "version": "5.1.3",
4
4
  "sideEffects": false
5
5
  }
@@ -1,44 +1,44 @@
1
1
  export declare const disabledBackgroundColor: {
2
- light: "var(--background-disabled)";
3
- dark: "var(--background-disabled)";
2
+ light: "var(--ds-background-disabled)";
3
+ dark: "var(--ds-background-disabled)";
4
4
  };
5
5
  export declare const defaultBackgroundColor: {
6
- light: "var(--background-subtleBorderedNeutral-resting)";
7
- dark: "var(--background-subtleBorderedNeutral-resting)";
6
+ light: "var(--ds-background-subtleBorderedNeutral-resting)";
7
+ dark: "var(--ds-background-subtleBorderedNeutral-resting)";
8
8
  };
9
9
  export declare const defaultBackgroundColorFocus: {
10
- light: "var(--background-default)";
11
- dark: "var(--background-default)";
10
+ light: "var(--ds-background-default)";
11
+ dark: "var(--ds-background-default)";
12
12
  };
13
13
  export declare const defaultBackgroundColorHover: {
14
- light: "var(--background-default)";
15
- dark: "var(--background-default)";
14
+ light: "var(--ds-background-default)";
15
+ dark: "var(--ds-background-default)";
16
16
  };
17
17
  export declare const subtleBackgroundColorHover: {
18
- light: "var(--background-transparentNeutral-hover)";
19
- dark: "var(--background-transparentNeutral-hover)";
18
+ light: "var(--ds-background-transparentNeutral-hover)";
19
+ dark: "var(--ds-background-transparentNeutral-hover)";
20
20
  };
21
21
  export declare const defaultBorderColor: {
22
- light: "var(--border-neutral)";
23
- dark: "var(--border-neutral)";
22
+ light: "var(--ds-border-neutral)";
23
+ dark: "var(--ds-border-neutral)";
24
24
  };
25
25
  export declare const defaultBorderColorFocus: {
26
- light: "var(--border-focus)";
27
- dark: "var(--border-focus)";
26
+ light: "var(--ds-border-focus)";
27
+ dark: "var(--ds-border-focus)";
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(--text-highEmphasis)";
35
- dark: "var(--text-highEmphasis)";
34
+ light: "var(--ds-text-highEmphasis)";
35
+ dark: "var(--ds-text-highEmphasis)";
36
36
  };
37
37
  export declare const disabledTextColor: {
38
- light: "var(--text-disabled)";
39
- dark: "var(--text-disabled)";
38
+ light: "var(--ds-text-disabled)";
39
+ dark: "var(--ds-text-disabled)";
40
40
  };
41
41
  export declare const placeholderTextColor: {
42
- light: "var(--text-lowEmphasis)";
43
- dark: "var(--text-lowEmphasis)";
42
+ light: "var(--ds-text-lowEmphasis)";
43
+ dark: "var(--ds-text-lowEmphasis)";
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(--text-highEmphasis)";
20
+ readonly color: "var(--ds-text-highEmphasis)";
21
21
  readonly cursor: string;
22
22
  readonly '&:hover': {
23
23
  backgroundColor: string;
@@ -27,17 +27,17 @@ export declare const containerStyles: (appearance: Appearance, mode: ThemeModes,
27
27
  borderColor: string;
28
28
  };
29
29
  readonly '&[data-disabled]': {
30
- backgroundColor: "var(--background-disabled)";
31
- borderColor: "var(--background-disabled)";
32
- color: "var(--text-disabled)";
30
+ backgroundColor: "var(--ds-background-disabled)";
31
+ borderColor: "var(--ds-background-disabled)";
32
+ color: "var(--ds-text-disabled)";
33
33
  cursor: string;
34
34
  };
35
35
  readonly '&[data-invalid]': {
36
- borderColor: "var(--iconBorder-danger)";
36
+ borderColor: "var(--ds-iconBorder-danger)";
37
37
  };
38
38
  readonly '&[data-invalid]:focus-within': {
39
- backgroundColor: "var(--background-default)";
40
- borderColor: "var(--border-focus)";
39
+ backgroundColor: "var(--ds-background-default)";
40
+ borderColor: "var(--ds-border-focus)";
41
41
  };
42
42
  readonly '@media screen and (-ms-high-contrast: active)': {
43
43
  '&[data-invalid]:focus-within': {
@@ -76,7 +76,7 @@ export declare const inputStyles: (mode: ThemeModes) => {
76
76
  readonly height: string;
77
77
  };
78
78
  readonly '&[disabled]': {
79
- readonly WebkitTextFillColor: "var(--text-disabled)";
79
+ readonly WebkitTextFillColor: "var(--ds-text-disabled)";
80
80
  };
81
81
  readonly '&::-ms-clear': {
82
82
  readonly display: "none";
@@ -85,9 +85,9 @@ export declare const inputStyles: (mode: ThemeModes) => {
85
85
  readonly boxShadow: "none";
86
86
  };
87
87
  readonly '&::placeholder': {
88
- readonly color: "var(--text-lowEmphasis)";
88
+ readonly color: "var(--ds-text-lowEmphasis)";
89
89
  readonly '&:disabled': {
90
- readonly color: "var(--text-disabled)";
90
+ readonly color: "var(--ds-text-disabled)";
91
91
  };
92
92
  };
93
93
  readonly '@media screen and (-ms-high-contrast: active)': {
@@ -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(--background-subtleBorderedNeutral-resting)";
103
- dark: "var(--background-subtleBorderedNeutral-resting)";
102
+ light: "var(--ds-background-subtleBorderedNeutral-resting)";
103
+ dark: "var(--ds-background-subtleBorderedNeutral-resting)";
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(--background-default)";
117
- dark: "var(--background-default)";
116
+ light: "var(--ds-background-default)";
117
+ dark: "var(--ds-background-default)";
118
118
  };
119
119
  subtle: {
120
- light: "var(--background-default)";
121
- dark: "var(--background-default)";
120
+ light: "var(--ds-background-default)";
121
+ dark: "var(--ds-background-default)";
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(--background-default)";
131
- dark: "var(--background-default)";
130
+ light: "var(--ds-background-default)";
131
+ dark: "var(--ds-background-default)";
132
132
  };
133
133
  subtle: {
134
- light: "var(--background-transparentNeutral-hover)";
135
- dark: "var(--background-transparentNeutral-hover)";
134
+ light: "var(--ds-background-transparentNeutral-hover)";
135
+ dark: "var(--ds-background-transparentNeutral-hover)";
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(--border-neutral)";
145
- dark: "var(--border-neutral)";
144
+ light: "var(--ds-border-neutral)";
145
+ dark: "var(--ds-border-neutral)";
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(--border-focus)";
159
- dark: "var(--border-focus)";
158
+ light: "var(--ds-border-focus)";
159
+ dark: "var(--ds-border-focus)";
160
160
  };
161
161
  subtle: {
162
- light: "var(--border-focus)";
163
- dark: "var(--border-focus)";
162
+ light: "var(--ds-border-focus)";
163
+ dark: "var(--ds-border-focus)";
164
164
  };
165
165
  none: {
166
166
  light: string;
@@ -168,41 +168,41 @@ export declare const textFieldColors: {
168
168
  };
169
169
  };
170
170
  placeholderTextColor: {
171
- light: "var(--text-lowEmphasis)";
172
- dark: "var(--text-lowEmphasis)";
171
+ light: "var(--ds-text-lowEmphasis)";
172
+ dark: "var(--ds-text-lowEmphasis)";
173
173
  };
174
174
  textColor: {
175
- light: "var(--text-highEmphasis)";
176
- dark: "var(--text-highEmphasis)";
175
+ light: "var(--ds-text-highEmphasis)";
176
+ dark: "var(--ds-text-highEmphasis)";
177
177
  };
178
178
  invalidRules: {
179
179
  light: {
180
- backgroundColor: "var(--background-subtleBorderedNeutral-resting)";
181
- backgroundColorHover: "var(--background-default)";
182
- backgroundColorFocus: "var(--background-default)";
183
- borderColor: "var(--iconBorder-danger)";
184
- borderColorFocus: "var(--border-focus)";
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)";
185
185
  };
186
186
  dark: {
187
- backgroundColor: "var(--background-subtleBorderedNeutral-resting)";
188
- backgroundColorHover: "var(--background-default)";
189
- backgroundColorFocus: "var(--background-default)";
190
- borderColor: "var(--iconBorder-danger)";
191
- borderColorFocus: "var(--border-focus)";
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)";
192
192
  };
193
193
  };
194
194
  disabledRules: {
195
195
  light: {
196
- backgroundColor: "var(--background-disabled)";
197
- backgroundColorHover: "var(--background-disabled)";
198
- borderColor: "var(--background-disabled)";
199
- textColor: "var(--text-disabled)";
196
+ backgroundColor: "var(--ds-background-disabled)";
197
+ backgroundColorHover: "var(--ds-background-disabled)";
198
+ borderColor: "var(--ds-background-disabled)";
199
+ textColor: "var(--ds-text-disabled)";
200
200
  };
201
201
  dark: {
202
- backgroundColor: "var(--background-disabled)";
203
- backgroundColorHover: "var(--background-disabled)";
204
- borderColor: "var(--background-disabled)";
205
- textColor: "var(--text-disabled)";
202
+ backgroundColor: "var(--ds-background-disabled)";
203
+ backgroundColorHover: "var(--ds-background-disabled)";
204
+ borderColor: "var(--ds-background-disabled)";
205
+ textColor: "var(--ds-text-disabled)";
206
206
  };
207
207
  };
208
208
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/textfield",
3
- "version": "5.1.2",
3
+ "version": "5.1.3",
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/"
@@ -28,7 +28,7 @@
28
28
  "dependencies": {
29
29
  "@atlaskit/analytics-next": "^8.2.0",
30
30
  "@atlaskit/theme": "^12.0.0",
31
- "@atlaskit/tokens": "^0.2.0",
31
+ "@atlaskit/tokens": "^0.3.0",
32
32
  "@babel/runtime": "^7.0.0",
33
33
  "@emotion/core": "^10.0.9"
34
34
  },