@atlaskit/textarea 4.3.10 → 4.3.11
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/component-tokens.js +5 -5
- package/dist/cjs/styles.js +4 -3
- package/dist/cjs/text-area.js +1 -1
- package/dist/cjs/theme.js +7 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/component-tokens.js +3 -3
- package/dist/es2019/styles.js +5 -3
- package/dist/es2019/text-area.js +1 -1
- package/dist/es2019/theme.js +7 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/component-tokens.js +3 -3
- package/dist/esm/styles.js +4 -3
- package/dist/esm/text-area.js +1 -1
- package/dist/esm/theme.js +7 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/component-tokens.d.ts +3 -3
- package/dist/types/theme.d.ts +1 -0
- package/dist/types-ts4.0/component-tokens.d.ts +3 -3
- package/dist/types-ts4.0/theme.d.ts +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/textarea
|
|
2
2
|
|
|
3
|
+
## 4.3.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`bedbdec0e82`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bedbdec0e82) - Update hover state appearance of subtle Textarea, Textfield and Select components to match the hover states of their default counterparts.
|
|
8
|
+
|
|
3
9
|
## 4.3.10
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.transparent = exports.textColor = exports.
|
|
6
|
+
exports.transparent = exports.textColor = exports.subtleBorderColorHover = exports.placeholderTextColor = exports.invalidBorderColor = exports.disabledTextColor = exports.disabledBorder = exports.disabledBackground = exports.defaultBorderColorFocus = exports.defaultBorderColor = exports.defaultBackgroundColorHover = exports.defaultBackgroundColorFocus = exports.defaultBackgroundColor = void 0;
|
|
7
7
|
|
|
8
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
9
|
|
|
@@ -47,11 +47,11 @@ var defaultBackgroundColorFocus = {
|
|
|
47
47
|
dark: "var(--ds-background-input-pressed, ".concat(_colors.DN10, ")")
|
|
48
48
|
};
|
|
49
49
|
exports.defaultBackgroundColorFocus = defaultBackgroundColorFocus;
|
|
50
|
-
var
|
|
51
|
-
light: "var(--ds-
|
|
52
|
-
dark: "var(--ds-
|
|
50
|
+
var subtleBorderColorHover = {
|
|
51
|
+
light: "var(--ds-border-input, transparent)",
|
|
52
|
+
dark: "var(--ds-border-input, transparent)"
|
|
53
53
|
};
|
|
54
|
-
exports.
|
|
54
|
+
exports.subtleBorderColorHover = subtleBorderColorHover;
|
|
55
55
|
var placeholderTextColor = {
|
|
56
56
|
light: "var(--ds-text-subtlest, ".concat(_colors.N100, ")"),
|
|
57
57
|
dark: "var(--ds-text-subtlest, ".concat(_colors.DN200, ")")
|
package/dist/cjs/styles.js
CHANGED
|
@@ -82,10 +82,11 @@ var placeholderStyle = function placeholderStyle(placeholderTextColor) {
|
|
|
82
82
|
};
|
|
83
83
|
};
|
|
84
84
|
|
|
85
|
-
var
|
|
85
|
+
var hoverBackgroundAndBorderStyles = function hoverBackgroundAndBorderStyles(props) {
|
|
86
86
|
return {
|
|
87
87
|
'&:hover:not(:read-only):not(:focus)': {
|
|
88
88
|
backgroundColor: props.backgroundColorHover,
|
|
89
|
+
borderColor: props.borderColorHover,
|
|
89
90
|
'&:disabled': {
|
|
90
91
|
backgroundColor: props.disabledRules.backgroundColorHover
|
|
91
92
|
},
|
|
@@ -150,7 +151,7 @@ var staticStyles = {
|
|
|
150
151
|
borderRadius: borderRadius,
|
|
151
152
|
boxSizing: 'border-box',
|
|
152
153
|
overflow: 'auto',
|
|
153
|
-
transition: "background-color ".concat(transitionDuration, " ease-in-out"),
|
|
154
|
+
transition: "background-color ".concat(transitionDuration, " ease-in-out,\n border-color ").concat(transitionDuration, " ease-in-out"),
|
|
154
155
|
wordWrap: 'break-word',
|
|
155
156
|
fontSize: fontSize,
|
|
156
157
|
borderWidth: borderWidth,
|
|
@@ -185,7 +186,7 @@ var getBaseStyles = function getBaseStyles(_ref) {
|
|
|
185
186
|
exports.getBaseStyles = getBaseStyles;
|
|
186
187
|
|
|
187
188
|
var themeStyles = function themeStyles(props) {
|
|
188
|
-
return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, bgAndBorderColorStyles(props)),
|
|
189
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, bgAndBorderColorStyles(props)), hoverBackgroundAndBorderStyles(props)), placeholderStyle(props.placeholderTextColor)), {}, {
|
|
189
190
|
color: props.textColor,
|
|
190
191
|
'&:disabled': {
|
|
191
192
|
color: props.disabledRules.textColor
|
package/dist/cjs/text-area.js
CHANGED
|
@@ -40,7 +40,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
40
40
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
41
41
|
|
|
42
42
|
var packageName = "@atlaskit/textarea";
|
|
43
|
-
var packageVersion = "4.3.
|
|
43
|
+
var packageVersion = "4.3.11";
|
|
44
44
|
var analyticsParams = {
|
|
45
45
|
componentName: 'textArea',
|
|
46
46
|
packageName: packageName,
|
package/dist/cjs/theme.js
CHANGED
|
@@ -61,7 +61,7 @@ var backgroundColorFocus = {
|
|
|
61
61
|
};
|
|
62
62
|
var backgroundColorHover = {
|
|
63
63
|
standard: componentTokens.defaultBackgroundColorHover,
|
|
64
|
-
subtle: componentTokens.
|
|
64
|
+
subtle: componentTokens.defaultBackgroundColorHover,
|
|
65
65
|
none: componentTokens.transparent
|
|
66
66
|
};
|
|
67
67
|
var borderColor = {
|
|
@@ -74,6 +74,11 @@ var borderColorFocus = {
|
|
|
74
74
|
subtle: componentTokens.defaultBorderColorFocus,
|
|
75
75
|
none: componentTokens.transparent
|
|
76
76
|
};
|
|
77
|
+
var borderColorHover = {
|
|
78
|
+
standard: componentTokens.defaultBorderColor,
|
|
79
|
+
subtle: componentTokens.subtleBorderColorHover,
|
|
80
|
+
none: componentTokens.transparent
|
|
81
|
+
};
|
|
77
82
|
|
|
78
83
|
/**
|
|
79
84
|
* @deprecated
|
|
@@ -104,6 +109,7 @@ var Theme = (0, _components.createTheme)(function (_ref) {
|
|
|
104
109
|
return {
|
|
105
110
|
borderColor: borderColor[appearance][mode],
|
|
106
111
|
borderColorFocus: borderColorFocus[appearance][mode],
|
|
112
|
+
borderColorHover: borderColorHover[appearance][mode],
|
|
107
113
|
backgroundColorHover: backgroundColorHover[appearance][mode],
|
|
108
114
|
backgroundColorFocus: backgroundColorFocus[appearance][mode],
|
|
109
115
|
backgroundColor: backgroundColor[appearance][mode],
|
package/dist/cjs/version.json
CHANGED
|
@@ -31,9 +31,9 @@ export const defaultBackgroundColorFocus = {
|
|
|
31
31
|
light: `var(--ds-background-input-pressed, ${N0})`,
|
|
32
32
|
dark: `var(--ds-background-input-pressed, ${DN10})`
|
|
33
33
|
};
|
|
34
|
-
export const
|
|
35
|
-
light:
|
|
36
|
-
dark:
|
|
34
|
+
export const subtleBorderColorHover = {
|
|
35
|
+
light: "var(--ds-border-input, transparent)",
|
|
36
|
+
dark: "var(--ds-border-input, transparent)"
|
|
37
37
|
};
|
|
38
38
|
export const placeholderTextColor = {
|
|
39
39
|
light: `var(--ds-text-subtlest, ${N100})`,
|
package/dist/es2019/styles.js
CHANGED
|
@@ -62,10 +62,11 @@ const placeholderStyle = placeholderTextColor => ({
|
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
64
|
|
|
65
|
-
const
|
|
65
|
+
const hoverBackgroundAndBorderStyles = props => {
|
|
66
66
|
return {
|
|
67
67
|
'&:hover:not(:read-only):not(:focus)': {
|
|
68
68
|
backgroundColor: props.backgroundColorHover,
|
|
69
|
+
borderColor: props.borderColorHover,
|
|
69
70
|
'&:disabled': {
|
|
70
71
|
backgroundColor: props.disabledRules.backgroundColorHover
|
|
71
72
|
},
|
|
@@ -125,7 +126,8 @@ const staticStyles = {
|
|
|
125
126
|
borderRadius: borderRadius,
|
|
126
127
|
boxSizing: 'border-box',
|
|
127
128
|
overflow: 'auto',
|
|
128
|
-
transition: `background-color ${transitionDuration} ease-in-out
|
|
129
|
+
transition: `background-color ${transitionDuration} ease-in-out,
|
|
130
|
+
border-color ${transitionDuration} ease-in-out`,
|
|
129
131
|
wordWrap: 'break-word',
|
|
130
132
|
fontSize,
|
|
131
133
|
borderWidth: borderWidth,
|
|
@@ -161,7 +163,7 @@ export const getBaseStyles = ({
|
|
|
161
163
|
});
|
|
162
164
|
export const themeStyles = props => {
|
|
163
165
|
return { ...bgAndBorderColorStyles(props),
|
|
164
|
-
...
|
|
166
|
+
...hoverBackgroundAndBorderStyles(props),
|
|
165
167
|
...placeholderStyle(props.placeholderTextColor),
|
|
166
168
|
color: props.textColor,
|
|
167
169
|
'&:disabled': {
|
package/dist/es2019/text-area.js
CHANGED
|
@@ -8,7 +8,7 @@ import GlobalTheme from '@atlaskit/theme/components';
|
|
|
8
8
|
import { borderWidth, getBaseStyles, themeStyles } from './styles';
|
|
9
9
|
import { Theme } from './theme';
|
|
10
10
|
const packageName = "@atlaskit/textarea";
|
|
11
|
-
const packageVersion = "4.3.
|
|
11
|
+
const packageVersion = "4.3.11";
|
|
12
12
|
const analyticsParams = {
|
|
13
13
|
componentName: 'textArea',
|
|
14
14
|
packageName,
|
package/dist/es2019/theme.js
CHANGED
|
@@ -46,7 +46,7 @@ const backgroundColorFocus = {
|
|
|
46
46
|
};
|
|
47
47
|
const backgroundColorHover = {
|
|
48
48
|
standard: componentTokens.defaultBackgroundColorHover,
|
|
49
|
-
subtle: componentTokens.
|
|
49
|
+
subtle: componentTokens.defaultBackgroundColorHover,
|
|
50
50
|
none: componentTokens.transparent
|
|
51
51
|
};
|
|
52
52
|
const borderColor = {
|
|
@@ -59,6 +59,11 @@ const borderColorFocus = {
|
|
|
59
59
|
subtle: componentTokens.defaultBorderColorFocus,
|
|
60
60
|
none: componentTokens.transparent
|
|
61
61
|
};
|
|
62
|
+
const borderColorHover = {
|
|
63
|
+
standard: componentTokens.defaultBorderColor,
|
|
64
|
+
subtle: componentTokens.subtleBorderColorHover,
|
|
65
|
+
none: componentTokens.transparent
|
|
66
|
+
};
|
|
62
67
|
|
|
63
68
|
/**
|
|
64
69
|
* @deprecated
|
|
@@ -88,6 +93,7 @@ export const Theme = createTheme(({
|
|
|
88
93
|
}) => ({
|
|
89
94
|
borderColor: borderColor[appearance][mode],
|
|
90
95
|
borderColorFocus: borderColorFocus[appearance][mode],
|
|
96
|
+
borderColorHover: borderColorHover[appearance][mode],
|
|
91
97
|
backgroundColorHover: backgroundColorHover[appearance][mode],
|
|
92
98
|
backgroundColorFocus: backgroundColorFocus[appearance][mode],
|
|
93
99
|
backgroundColor: backgroundColor[appearance][mode],
|
package/dist/es2019/version.json
CHANGED
|
@@ -31,9 +31,9 @@ export var defaultBackgroundColorFocus = {
|
|
|
31
31
|
light: "var(--ds-background-input-pressed, ".concat(N0, ")"),
|
|
32
32
|
dark: "var(--ds-background-input-pressed, ".concat(DN10, ")")
|
|
33
33
|
};
|
|
34
|
-
export var
|
|
35
|
-
light: "var(--ds-
|
|
36
|
-
dark: "var(--ds-
|
|
34
|
+
export var subtleBorderColorHover = {
|
|
35
|
+
light: "var(--ds-border-input, transparent)",
|
|
36
|
+
dark: "var(--ds-border-input, transparent)"
|
|
37
37
|
};
|
|
38
38
|
export var placeholderTextColor = {
|
|
39
39
|
light: "var(--ds-text-subtlest, ".concat(N100, ")"),
|
package/dist/esm/styles.js
CHANGED
|
@@ -72,10 +72,11 @@ var placeholderStyle = function placeholderStyle(placeholderTextColor) {
|
|
|
72
72
|
};
|
|
73
73
|
};
|
|
74
74
|
|
|
75
|
-
var
|
|
75
|
+
var hoverBackgroundAndBorderStyles = function hoverBackgroundAndBorderStyles(props) {
|
|
76
76
|
return {
|
|
77
77
|
'&:hover:not(:read-only):not(:focus)': {
|
|
78
78
|
backgroundColor: props.backgroundColorHover,
|
|
79
|
+
borderColor: props.borderColorHover,
|
|
79
80
|
'&:disabled': {
|
|
80
81
|
backgroundColor: props.disabledRules.backgroundColorHover
|
|
81
82
|
},
|
|
@@ -140,7 +141,7 @@ var staticStyles = {
|
|
|
140
141
|
borderRadius: borderRadius,
|
|
141
142
|
boxSizing: 'border-box',
|
|
142
143
|
overflow: 'auto',
|
|
143
|
-
transition: "background-color ".concat(transitionDuration, " ease-in-out"),
|
|
144
|
+
transition: "background-color ".concat(transitionDuration, " ease-in-out,\n border-color ").concat(transitionDuration, " ease-in-out"),
|
|
144
145
|
wordWrap: 'break-word',
|
|
145
146
|
fontSize: fontSize,
|
|
146
147
|
borderWidth: borderWidth,
|
|
@@ -171,7 +172,7 @@ export var getBaseStyles = function getBaseStyles(_ref) {
|
|
|
171
172
|
});
|
|
172
173
|
};
|
|
173
174
|
export var themeStyles = function themeStyles(props) {
|
|
174
|
-
return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, bgAndBorderColorStyles(props)),
|
|
175
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, bgAndBorderColorStyles(props)), hoverBackgroundAndBorderStyles(props)), placeholderStyle(props.placeholderTextColor)), {}, {
|
|
175
176
|
color: props.textColor,
|
|
176
177
|
'&:disabled': {
|
|
177
178
|
color: props.disabledRules.textColor
|
package/dist/esm/text-area.js
CHANGED
|
@@ -16,7 +16,7 @@ import GlobalTheme from '@atlaskit/theme/components';
|
|
|
16
16
|
import { borderWidth, getBaseStyles, themeStyles } from './styles';
|
|
17
17
|
import { Theme } from './theme';
|
|
18
18
|
var packageName = "@atlaskit/textarea";
|
|
19
|
-
var packageVersion = "4.3.
|
|
19
|
+
var packageVersion = "4.3.11";
|
|
20
20
|
var analyticsParams = {
|
|
21
21
|
componentName: 'textArea',
|
|
22
22
|
packageName: packageName,
|
package/dist/esm/theme.js
CHANGED
|
@@ -46,7 +46,7 @@ var backgroundColorFocus = {
|
|
|
46
46
|
};
|
|
47
47
|
var backgroundColorHover = {
|
|
48
48
|
standard: componentTokens.defaultBackgroundColorHover,
|
|
49
|
-
subtle: componentTokens.
|
|
49
|
+
subtle: componentTokens.defaultBackgroundColorHover,
|
|
50
50
|
none: componentTokens.transparent
|
|
51
51
|
};
|
|
52
52
|
var borderColor = {
|
|
@@ -59,6 +59,11 @@ var borderColorFocus = {
|
|
|
59
59
|
subtle: componentTokens.defaultBorderColorFocus,
|
|
60
60
|
none: componentTokens.transparent
|
|
61
61
|
};
|
|
62
|
+
var borderColorHover = {
|
|
63
|
+
standard: componentTokens.defaultBorderColor,
|
|
64
|
+
subtle: componentTokens.subtleBorderColorHover,
|
|
65
|
+
none: componentTokens.transparent
|
|
66
|
+
};
|
|
62
67
|
|
|
63
68
|
/**
|
|
64
69
|
* @deprecated
|
|
@@ -88,6 +93,7 @@ export var Theme = createTheme(function (_ref) {
|
|
|
88
93
|
return {
|
|
89
94
|
borderColor: borderColor[appearance][mode],
|
|
90
95
|
borderColorFocus: borderColorFocus[appearance][mode],
|
|
96
|
+
borderColorHover: borderColorHover[appearance][mode],
|
|
91
97
|
backgroundColorHover: backgroundColorHover[appearance][mode],
|
|
92
98
|
backgroundColorFocus: backgroundColorFocus[appearance][mode],
|
|
93
99
|
backgroundColor: backgroundColor[appearance][mode],
|
package/dist/esm/version.json
CHANGED
|
@@ -30,9 +30,9 @@ export declare const defaultBackgroundColorFocus: {
|
|
|
30
30
|
light: "var(--ds-background-input-pressed)";
|
|
31
31
|
dark: "var(--ds-background-input-pressed)";
|
|
32
32
|
};
|
|
33
|
-
export declare const
|
|
34
|
-
light: "var(--ds-
|
|
35
|
-
dark: "var(--ds-
|
|
33
|
+
export declare const subtleBorderColorHover: {
|
|
34
|
+
light: "var(--ds-border-input)";
|
|
35
|
+
dark: "var(--ds-border-input)";
|
|
36
36
|
};
|
|
37
37
|
export declare const placeholderTextColor: {
|
|
38
38
|
light: "var(--ds-text-subtlest)";
|
package/dist/types/theme.d.ts
CHANGED
|
@@ -30,9 +30,9 @@ export declare const defaultBackgroundColorFocus: {
|
|
|
30
30
|
light: "var(--ds-background-input-pressed)";
|
|
31
31
|
dark: "var(--ds-background-input-pressed)";
|
|
32
32
|
};
|
|
33
|
-
export declare const
|
|
34
|
-
light: "var(--ds-
|
|
35
|
-
dark: "var(--ds-
|
|
33
|
+
export declare const subtleBorderColorHover: {
|
|
34
|
+
light: "var(--ds-border-input)";
|
|
35
|
+
dark: "var(--ds-border-input)";
|
|
36
36
|
};
|
|
37
37
|
export declare const placeholderTextColor: {
|
|
38
38
|
light: "var(--ds-text-subtlest)";
|
package/package.json
CHANGED