@atlaskit/textarea 4.6.2 → 4.7.0

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,17 @@
1
1
  # @atlaskit/textarea
2
2
 
3
+ ## 4.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`5f37caad726`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f37caad726) - [ux] reduce border width to 1px and update fallback color of border
8
+
9
+ ## 4.6.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [`49b08bfdf5f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/49b08bfdf5f) - Migrated use of `gridSize` to space tokens where possible. There is no expected visual or behaviour change.
14
+
3
15
  ## 4.6.2
4
16
 
5
17
  ### Patch Changes
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
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
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
7
8
  var _colors = require("@atlaskit/theme/colors");
8
9
  var disabledBackground = {
9
10
  light: "var(--ds-background-disabled, ".concat(_colors.N20, ")"),
@@ -21,8 +22,8 @@ var invalidBorderColor = {
21
22
  };
22
23
  exports.invalidBorderColor = invalidBorderColor;
23
24
  var defaultBorderColor = {
24
- light: "var(--ds-border-input, ".concat(_colors.N40, ")"),
25
- dark: "var(--ds-border-input, ".concat(_colors.DN40, ")")
25
+ light: "var(--ds-border-input, ".concat((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-border-input_ff9l1') ? _colors.N100 : _colors.N40, ")"),
26
+ dark: "var(--ds-border-input, ".concat((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-border-input_ff9l1') ? _colors.DN200 : _colors.DN40, ")")
26
27
  };
27
28
  exports.defaultBorderColor = defaultBorderColor;
28
29
  var defaultBorderColorFocus = {
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.themeStyles = exports.getBaseStyles = exports.borderWidth = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _react = require("@emotion/react");
10
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
10
11
  var _constants = require("@atlaskit/theme/constants");
11
12
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
12
13
  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; } /** @jsx jsx */
@@ -42,7 +43,8 @@ var bgAndBorderColorStyles = function bgAndBorderColorStyles(props, appearance)
42
43
  return (0, _react.css)(_objectSpread({
43
44
  '&:focus': {
44
45
  backgroundColor: props.backgroundColorFocus,
45
- borderColor: props.borderColorFocus
46
+ borderColor: props.borderColorFocus,
47
+ boxShadow: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-border-input_ff9l1') ? "inset 0 0 0 1px ".concat(props.borderColorFocus) : undefined
46
48
  },
47
49
  '&:not(:focus)': {
48
50
  backgroundColor: props.backgroundColor,
@@ -51,12 +53,14 @@ var bgAndBorderColorStyles = function bgAndBorderColorStyles(props, appearance)
51
53
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
52
54
  '&[data-invalid]:focus': {
53
55
  backgroundColor: props.invalidRules.backgroundColorFocus,
54
- borderColor: props.invalidRules.borderColorFocus
56
+ borderColor: props.invalidRules.borderColorFocus,
57
+ boxShadow: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-border-input_ff9l1') ? "inset 0 0 0 1px ".concat(props.invalidRules.borderColorFocus) : undefined
55
58
  },
56
59
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
57
60
  '&[data-invalid]:not(:focus)': {
58
61
  backgroundColor: props.invalidRules.backgroundColor,
59
- borderColor: props.invalidRules.borderColor
62
+ borderColor: props.invalidRules.borderColor,
63
+ boxShadow: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-border-input_ff9l1') ? "inset 0 0 0 1px ".concat(props.invalidRules.borderColor) : undefined
60
64
  }
61
65
  }, appearance === 'standard' ? {
62
66
  '&:disabled:focus': {
@@ -86,7 +90,9 @@ var hoverBackgroundAndBorderStyles = function hoverBackgroundAndBorderStyles(pro
86
90
  },
87
91
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
88
92
  '&[data-invalid]': {
89
- backgroundColor: props.invalidRules.backgroundColorHover
93
+ backgroundColor: props.invalidRules.backgroundColorHover,
94
+ borderColor: props.invalidRules.borderColor,
95
+ boxShadow: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-border-input_ff9l1') ? "inset 0 0 0 1px ".concat(props.invalidRules.borderColor) : undefined
90
96
  }
91
97
  }
92
98
  });
@@ -118,6 +124,8 @@ var fontFamilyStyle = function fontFamilyStyle(isMonospaced) {
118
124
  };
119
125
  var borderPaddingAndHeightStyles = function borderPaddingAndHeightStyles() {
120
126
  var minimumRows = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
127
+ var appearance = arguments.length > 1 ? arguments[1] : undefined;
128
+ var borderWidth = (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-border-input_ff9l1') && appearance !== 'none' ? 1 : 2;
121
129
  var horizontalPaddingWithoutBorderWidth = horizontalPadding - borderWidth;
122
130
  var borderHeight = borderWidth;
123
131
  return (0, _react.css)({
@@ -144,11 +152,11 @@ var staticStyles = (0, _react.css)({
144
152
  position: 'relative',
145
153
  flex: '1 1 100%',
146
154
  borderRadius: borderRadius,
147
- borderWidth: borderWidth,
155
+ borderWidth: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-border-input_ff9l1') ? 1 : borderWidth,
148
156
  fontSize: fontSize,
149
157
  outline: 'none',
150
158
  overflow: 'auto',
151
- transition: "background-color ".concat(transitionDuration, " ease-in-out, \n border-color ").concat(transitionDuration, " ease-in-out"),
159
+ transition: "background-color ".concat(transitionDuration, " ease-in-out,\n border-color ").concat(transitionDuration, " ease-in-out"),
152
160
  wordWrap: 'break-word',
153
161
  '&:disabled': _objectSpread({
154
162
  cursor: 'not-allowed'
@@ -168,7 +176,7 @@ var getBaseStyles = function getBaseStyles(_ref) {
168
176
  maxHeight = _ref.maxHeight;
169
177
  return (
170
178
  // eslint-disable-next-line @repo/internal/styles/no-exported-styles
171
- (0, _react.css)([staticStyles, borderPaddingAndHeightStyles(minimumRows), resizeStyle(resize), borderStyle(appearance), fontFamilyStyle(isMonospaced), {
179
+ (0, _react.css)([staticStyles, borderPaddingAndHeightStyles(minimumRows, appearance), resizeStyle(resize), borderStyle(appearance), fontFamilyStyle(isMonospaced), {
172
180
  maxHeight: maxHeight
173
181
  }])
174
182
  );
@@ -23,7 +23,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
23
23
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
24
24
  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; }
25
25
  var packageName = "@atlaskit/textarea";
26
- var packageVersion = "4.6.2";
26
+ var packageVersion = "4.7.0";
27
27
  var analyticsParams = {
28
28
  componentName: 'textArea',
29
29
  packageName: packageName,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/textarea",
3
- "version": "4.6.2",
3
+ "version": "4.7.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1,4 +1,5 @@
1
- import { B100, B75, DN10, DN20, DN200, DN30, DN40, DN600, DN90, N0, N10, N20, N200, N30, N40, N70, N900, R400 } from '@atlaskit/theme/colors';
1
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
2
+ import { B100, B75, DN10, DN20, DN200, DN30, DN40, DN600, DN90, N0, N10, N100, N20, N200, N30, N40, N70, N900, R400 } from '@atlaskit/theme/colors';
2
3
  export const disabledBackground = {
3
4
  light: `var(--ds-background-disabled, ${N20})`,
4
5
  dark: `var(--ds-background-disabled, ${DN20})`
@@ -12,8 +13,8 @@ export const invalidBorderColor = {
12
13
  dark: `var(--ds-border-danger, ${R400})`
13
14
  };
14
15
  export const defaultBorderColor = {
15
- light: `var(--ds-border-input, ${N40})`,
16
- dark: `var(--ds-border-input, ${DN40})`
16
+ light: `var(--ds-border-input, ${getBooleanFF('platform.design-system-team.update-border-input_ff9l1') ? N100 : N40})`,
17
+ dark: `var(--ds-border-input, ${getBooleanFF('platform.design-system-team.update-border-input_ff9l1') ? DN200 : DN40})`
17
18
  };
18
19
  export const defaultBorderColorFocus = {
19
20
  light: `var(--ds-border-focused, ${B100})`,
@@ -1,6 +1,9 @@
1
1
  /** @jsx jsx */
2
2
  import { css } from '@emotion/react';
3
- import { codeFontFamily as getCodeFontFamily, fontFamily as getFontFamily, fontSize as getFontSize, gridSize } from '@atlaskit/theme/constants';
3
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
4
+ import { codeFontFamily as getCodeFontFamily, fontFamily as getFontFamily, fontSize as getFontSize,
5
+ // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
6
+ gridSize } from '@atlaskit/theme/constants';
4
7
  const grid = gridSize();
5
8
  const borderRadius = 3;
6
9
  const lineHeightBase = grid * 2.5;
@@ -31,7 +34,8 @@ const borderBoxMinHeightCompact = (minimumRows, borderHeight) => {
31
34
  const bgAndBorderColorStyles = (props, appearance) => css({
32
35
  '&:focus': {
33
36
  backgroundColor: props.backgroundColorFocus,
34
- borderColor: props.borderColorFocus
37
+ borderColor: props.borderColorFocus,
38
+ boxShadow: getBooleanFF('platform.design-system-team.update-border-input_ff9l1') ? `inset 0 0 0 1px ${props.borderColorFocus}` : undefined
35
39
  },
36
40
  '&:not(:focus)': {
37
41
  backgroundColor: props.backgroundColor,
@@ -40,12 +44,14 @@ const bgAndBorderColorStyles = (props, appearance) => css({
40
44
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
41
45
  '&[data-invalid]:focus': {
42
46
  backgroundColor: props.invalidRules.backgroundColorFocus,
43
- borderColor: props.invalidRules.borderColorFocus
47
+ borderColor: props.invalidRules.borderColorFocus,
48
+ boxShadow: getBooleanFF('platform.design-system-team.update-border-input_ff9l1') ? `inset 0 0 0 1px ${props.invalidRules.borderColorFocus}` : undefined
44
49
  },
45
50
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
46
51
  '&[data-invalid]:not(:focus)': {
47
52
  backgroundColor: props.invalidRules.backgroundColor,
48
- borderColor: props.invalidRules.borderColor
53
+ borderColor: props.invalidRules.borderColor,
54
+ boxShadow: getBooleanFF('platform.design-system-team.update-border-input_ff9l1') ? `inset 0 0 0 1px ${props.invalidRules.borderColor}` : undefined
49
55
  },
50
56
  // Disabled background and border styles should not be applied to components that
51
57
  // have either no background or transparent background to begin with
@@ -74,7 +80,9 @@ const hoverBackgroundAndBorderStyles = props => css({
74
80
  },
75
81
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
76
82
  '&[data-invalid]': {
77
- backgroundColor: props.invalidRules.backgroundColorHover
83
+ backgroundColor: props.invalidRules.backgroundColorHover,
84
+ borderColor: props.invalidRules.borderColor,
85
+ boxShadow: getBooleanFF('platform.design-system-team.update-border-input_ff9l1') ? `inset 0 0 0 1px ${props.invalidRules.borderColor}` : undefined
78
86
  }
79
87
  }
80
88
  });
@@ -99,7 +107,8 @@ const borderStyle = appearance => css({
99
107
  const fontFamilyStyle = isMonospaced => css({
100
108
  fontFamily: isMonospaced ? codeFontFamily : fontFamily
101
109
  });
102
- const borderPaddingAndHeightStyles = (minimumRows = 1) => {
110
+ const borderPaddingAndHeightStyles = (minimumRows = 1, appearance) => {
111
+ const borderWidth = getBooleanFF('platform.design-system-team.update-border-input_ff9l1') && appearance !== 'none' ? 1 : 2;
103
112
  const horizontalPaddingWithoutBorderWidth = horizontalPadding - borderWidth;
104
113
  const borderHeight = borderWidth;
105
114
  return css({
@@ -126,11 +135,11 @@ const staticStyles = css({
126
135
  position: 'relative',
127
136
  flex: '1 1 100%',
128
137
  borderRadius: borderRadius,
129
- borderWidth: borderWidth,
138
+ borderWidth: getBooleanFF('platform.design-system-team.update-border-input_ff9l1') ? 1 : borderWidth,
130
139
  fontSize: fontSize,
131
140
  outline: 'none',
132
141
  overflow: 'auto',
133
- transition: `background-color ${transitionDuration} ease-in-out,
142
+ transition: `background-color ${transitionDuration} ease-in-out,
134
143
  border-color ${transitionDuration} ease-in-out`,
135
144
  wordWrap: 'break-word',
136
145
  '&:disabled': {
@@ -152,7 +161,7 @@ export const getBaseStyles = ({
152
161
  maxHeight
153
162
  }) =>
154
163
  // eslint-disable-next-line @repo/internal/styles/no-exported-styles
155
- css([staticStyles, borderPaddingAndHeightStyles(minimumRows), resizeStyle(resize), borderStyle(appearance), fontFamilyStyle(isMonospaced), {
164
+ css([staticStyles, borderPaddingAndHeightStyles(minimumRows, appearance), resizeStyle(resize), borderStyle(appearance), fontFamilyStyle(isMonospaced), {
156
165
  maxHeight
157
166
  }]);
158
167
  export const themeStyles = (props, appearance) =>
@@ -7,7 +7,7 @@ import { useGlobalTheme } from '@atlaskit/theme/components';
7
7
  import { borderWidth, getBaseStyles, themeStyles } from './styles';
8
8
  import { Theme } from './theme';
9
9
  const packageName = "@atlaskit/textarea";
10
- const packageVersion = "4.6.2";
10
+ const packageVersion = "4.7.0";
11
11
  const analyticsParams = {
12
12
  componentName: 'textArea',
13
13
  packageName,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/textarea",
3
- "version": "4.6.2",
3
+ "version": "4.7.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1,4 +1,5 @@
1
- import { B100, B75, DN10, DN20, DN200, DN30, DN40, DN600, DN90, N0, N10, N20, N200, N30, N40, N70, N900, R400 } from '@atlaskit/theme/colors';
1
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
2
+ import { B100, B75, DN10, DN20, DN200, DN30, DN40, DN600, DN90, N0, N10, N100, N20, N200, N30, N40, N70, N900, R400 } from '@atlaskit/theme/colors';
2
3
  export var disabledBackground = {
3
4
  light: "var(--ds-background-disabled, ".concat(N20, ")"),
4
5
  dark: "var(--ds-background-disabled, ".concat(DN20, ")")
@@ -12,8 +13,8 @@ export var invalidBorderColor = {
12
13
  dark: "var(--ds-border-danger, ".concat(R400, ")")
13
14
  };
14
15
  export var defaultBorderColor = {
15
- light: "var(--ds-border-input, ".concat(N40, ")"),
16
- dark: "var(--ds-border-input, ".concat(DN40, ")")
16
+ light: "var(--ds-border-input, ".concat(getBooleanFF('platform.design-system-team.update-border-input_ff9l1') ? N100 : N40, ")"),
17
+ dark: "var(--ds-border-input, ".concat(getBooleanFF('platform.design-system-team.update-border-input_ff9l1') ? DN200 : DN40, ")")
17
18
  };
18
19
  export var defaultBorderColorFocus = {
19
20
  light: "var(--ds-border-focused, ".concat(B100, ")"),
@@ -3,7 +3,10 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
3
3
  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) { _defineProperty(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; }
4
4
  /** @jsx jsx */
5
5
  import { css } from '@emotion/react';
6
- import { codeFontFamily as getCodeFontFamily, fontFamily as getFontFamily, fontSize as getFontSize, gridSize } from '@atlaskit/theme/constants';
6
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
7
+ import { codeFontFamily as getCodeFontFamily, fontFamily as getFontFamily, fontSize as getFontSize,
8
+ // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
9
+ gridSize } from '@atlaskit/theme/constants';
7
10
  var grid = gridSize();
8
11
  var borderRadius = 3;
9
12
  var lineHeightBase = grid * 2.5;
@@ -35,7 +38,8 @@ var bgAndBorderColorStyles = function bgAndBorderColorStyles(props, appearance)
35
38
  return css(_objectSpread({
36
39
  '&:focus': {
37
40
  backgroundColor: props.backgroundColorFocus,
38
- borderColor: props.borderColorFocus
41
+ borderColor: props.borderColorFocus,
42
+ boxShadow: getBooleanFF('platform.design-system-team.update-border-input_ff9l1') ? "inset 0 0 0 1px ".concat(props.borderColorFocus) : undefined
39
43
  },
40
44
  '&:not(:focus)': {
41
45
  backgroundColor: props.backgroundColor,
@@ -44,12 +48,14 @@ var bgAndBorderColorStyles = function bgAndBorderColorStyles(props, appearance)
44
48
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
45
49
  '&[data-invalid]:focus': {
46
50
  backgroundColor: props.invalidRules.backgroundColorFocus,
47
- borderColor: props.invalidRules.borderColorFocus
51
+ borderColor: props.invalidRules.borderColorFocus,
52
+ boxShadow: getBooleanFF('platform.design-system-team.update-border-input_ff9l1') ? "inset 0 0 0 1px ".concat(props.invalidRules.borderColorFocus) : undefined
48
53
  },
49
54
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
50
55
  '&[data-invalid]:not(:focus)': {
51
56
  backgroundColor: props.invalidRules.backgroundColor,
52
- borderColor: props.invalidRules.borderColor
57
+ borderColor: props.invalidRules.borderColor,
58
+ boxShadow: getBooleanFF('platform.design-system-team.update-border-input_ff9l1') ? "inset 0 0 0 1px ".concat(props.invalidRules.borderColor) : undefined
53
59
  }
54
60
  }, appearance === 'standard' ? {
55
61
  '&:disabled:focus': {
@@ -79,7 +85,9 @@ var hoverBackgroundAndBorderStyles = function hoverBackgroundAndBorderStyles(pro
79
85
  },
80
86
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
81
87
  '&[data-invalid]': {
82
- backgroundColor: props.invalidRules.backgroundColorHover
88
+ backgroundColor: props.invalidRules.backgroundColorHover,
89
+ borderColor: props.invalidRules.borderColor,
90
+ boxShadow: getBooleanFF('platform.design-system-team.update-border-input_ff9l1') ? "inset 0 0 0 1px ".concat(props.invalidRules.borderColor) : undefined
83
91
  }
84
92
  }
85
93
  });
@@ -111,6 +119,8 @@ var fontFamilyStyle = function fontFamilyStyle(isMonospaced) {
111
119
  };
112
120
  var borderPaddingAndHeightStyles = function borderPaddingAndHeightStyles() {
113
121
  var minimumRows = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
122
+ var appearance = arguments.length > 1 ? arguments[1] : undefined;
123
+ var borderWidth = getBooleanFF('platform.design-system-team.update-border-input_ff9l1') && appearance !== 'none' ? 1 : 2;
114
124
  var horizontalPaddingWithoutBorderWidth = horizontalPadding - borderWidth;
115
125
  var borderHeight = borderWidth;
116
126
  return css({
@@ -137,11 +147,11 @@ var staticStyles = css({
137
147
  position: 'relative',
138
148
  flex: '1 1 100%',
139
149
  borderRadius: borderRadius,
140
- borderWidth: borderWidth,
150
+ borderWidth: getBooleanFF('platform.design-system-team.update-border-input_ff9l1') ? 1 : borderWidth,
141
151
  fontSize: fontSize,
142
152
  outline: 'none',
143
153
  overflow: 'auto',
144
- transition: "background-color ".concat(transitionDuration, " ease-in-out, \n border-color ").concat(transitionDuration, " ease-in-out"),
154
+ transition: "background-color ".concat(transitionDuration, " ease-in-out,\n border-color ").concat(transitionDuration, " ease-in-out"),
145
155
  wordWrap: 'break-word',
146
156
  '&:disabled': _objectSpread({
147
157
  cursor: 'not-allowed'
@@ -161,7 +171,7 @@ export var getBaseStyles = function getBaseStyles(_ref) {
161
171
  maxHeight = _ref.maxHeight;
162
172
  return (
163
173
  // eslint-disable-next-line @repo/internal/styles/no-exported-styles
164
- css([staticStyles, borderPaddingAndHeightStyles(minimumRows), resizeStyle(resize), borderStyle(appearance), fontFamilyStyle(isMonospaced), {
174
+ css([staticStyles, borderPaddingAndHeightStyles(minimumRows, appearance), resizeStyle(resize), borderStyle(appearance), fontFamilyStyle(isMonospaced), {
165
175
  maxHeight: maxHeight
166
176
  }])
167
177
  );
@@ -13,7 +13,7 @@ import { useGlobalTheme } from '@atlaskit/theme/components';
13
13
  import { borderWidth, getBaseStyles, themeStyles } from './styles';
14
14
  import { Theme } from './theme';
15
15
  var packageName = "@atlaskit/textarea";
16
- var packageVersion = "4.6.2";
16
+ var packageVersion = "4.7.0";
17
17
  var analyticsParams = {
18
18
  componentName: 'textArea',
19
19
  packageName: packageName,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/textarea",
3
- "version": "4.6.2",
3
+ "version": "4.7.0",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/textarea",
3
- "version": "4.6.2",
3
+ "version": "4.7.0",
4
4
  "description": "A text area lets users enter long form text which spans over multiple lines.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -40,6 +40,7 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@atlaskit/analytics-next": "^9.1.0",
43
+ "@atlaskit/platform-feature-flags": "^0.2.0",
43
44
  "@atlaskit/theme": "^12.5.0",
44
45
  "@atlaskit/tokens": "^1.4.0",
45
46
  "@babel/runtime": "^7.0.0",
@@ -58,6 +59,7 @@
58
59
  "@atlaskit/visual-regression": "*",
59
60
  "@atlaskit/webdriver-runner": "*",
60
61
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
62
+ "@atlassian/feature-flags-test-utils": "*",
61
63
  "@testing-library/dom": "^8.17.1",
62
64
  "@testing-library/react": "^12.1.5",
63
65
  "jscodeshift": "^0.13.0",
@@ -90,5 +92,10 @@
90
92
  "deprecation": "no-deprecated-imports"
91
93
  }
92
94
  },
95
+ "platform-feature-flags": {
96
+ "platform.design-system-team.update-border-input_ff9l1": {
97
+ "type": "boolean"
98
+ }
99
+ },
93
100
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
94
101
  }