@atlaskit/textarea 5.1.0 → 5.1.1

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/textarea
2
2
 
3
+ ## 5.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#81644](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81644) [`8ab7a816dca7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8ab7a816dca7) - Revert input border change from the previous version
8
+
3
9
  ## 5.1.0
4
10
 
5
11
  ### Minor Changes
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.getBaseStyles = exports.dynamicStyles = exports.borderWidth = void 0;
9
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
10
  var _react = require("@emotion/react");
11
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
12
  var _constants = require("@atlaskit/theme/constants");
12
13
  var componentTokens = _interopRequireWildcard(require("./component-tokens"));
13
14
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
@@ -90,7 +91,7 @@ var bgAndBorderColorStyles = function bgAndBorderColorStyles(appearance) {
90
91
  '&:focus': {
91
92
  backgroundColor: backgroundColorFocus[appearance],
92
93
  borderColor: borderColorFocus[appearance],
93
- boxShadow: "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " ", borderColorFocus[appearance])
94
+ boxShadow: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-input-border-wdith_5abwv') ? "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " ", borderColorFocus[appearance]) : undefined
94
95
  },
95
96
  '&:not(:focus)': {
96
97
  backgroundColor: backgroundColor[appearance],
@@ -100,13 +101,13 @@ var bgAndBorderColorStyles = function bgAndBorderColorStyles(appearance) {
100
101
  '&[data-invalid]:focus': {
101
102
  backgroundColor: invalidRules.backgroundColorFocus,
102
103
  borderColor: invalidRules.borderColorFocus,
103
- boxShadow: "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " ", invalidRules.borderColorFocus)
104
+ boxShadow: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-input-border-wdith_5abwv') ? "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " ", invalidRules.borderColorFocus) : undefined
104
105
  },
105
106
  // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
106
107
  '&[data-invalid]:not(:focus)': {
107
108
  backgroundColor: invalidRules.backgroundColor,
108
109
  borderColor: invalidRules.borderColor,
109
- boxShadow: "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " ", invalidRules.borderColor)
110
+ boxShadow: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-input-border-wdith_5abwv') ? "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " ", invalidRules.borderColor) : undefined
110
111
  }
111
112
  }, appearance === 'standard' ? {
112
113
  '&:disabled:focus': {
@@ -138,7 +139,7 @@ var hoverBackgroundAndBorderStyles = function hoverBackgroundAndBorderStyles(app
138
139
  '&[data-invalid]': {
139
140
  backgroundColor: invalidRules.backgroundColorHover,
140
141
  borderColor: invalidRules.borderColor,
141
- boxShadow: "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " ", invalidRules.borderColor)
142
+ boxShadow: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-input-border-wdith_5abwv') ? "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " ", invalidRules.borderColor) : undefined
142
143
  }
143
144
  }
144
145
  });
@@ -171,7 +172,7 @@ var fontFamilyStyle = function fontFamilyStyle(isMonospaced) {
171
172
  var borderPaddingAndHeightStyles = function borderPaddingAndHeightStyles() {
172
173
  var minimumRows = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
173
174
  var appearance = arguments.length > 1 ? arguments[1] : undefined;
174
- var borderWidth = appearance !== 'none' ? 1 : 2;
175
+ var borderWidth = (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-input-border-wdith_5abwv') && appearance !== 'none' ? 1 : 2;
175
176
  var horizontalPaddingWithoutBorderWidth = horizontalPadding - borderWidth;
176
177
  var borderHeight = borderWidth;
177
178
  return (0, _react.css)({
@@ -201,7 +202,7 @@ var staticStyles = (0, _react.css)({
201
202
  flex: '1 1 100%',
202
203
  borderRadius: "var(--ds-border-radius, 3px)",
203
204
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
204
- borderWidth: 1,
205
+ borderWidth: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-input-border-wdith_5abwv') ? 1 : borderWidth,
205
206
  fontSize: fontSize,
206
207
  outline: 'none',
207
208
  overflow: 'auto',
@@ -21,7 +21,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
21
21
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
22
22
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
23
23
  var packageName = "@atlaskit/textarea";
24
- var packageVersion = "5.1.0";
24
+ var packageVersion = "5.1.1";
25
25
  var analyticsParams = {
26
26
  componentName: 'textArea',
27
27
  packageName: packageName,
@@ -1,5 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import { css } from '@emotion/react';
3
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
3
4
  import { codeFontFamily as getCodeFontFamily, fontFamily as getFontFamily, fontSize as getFontSize,
4
5
  // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
5
6
  gridSize } from '@atlaskit/theme/constants';
@@ -79,7 +80,7 @@ const bgAndBorderColorStyles = appearance => appearance && css({
79
80
  '&:focus': {
80
81
  backgroundColor: backgroundColorFocus[appearance],
81
82
  borderColor: borderColorFocus[appearance],
82
- boxShadow: `inset 0 0 0 ${"var(--ds-border-width, 1px)"} ${borderColorFocus[appearance]}`
83
+ boxShadow: getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') ? `inset 0 0 0 ${"var(--ds-border-width, 1px)"} ${borderColorFocus[appearance]}` : undefined
83
84
  },
84
85
  '&:not(:focus)': {
85
86
  backgroundColor: backgroundColor[appearance],
@@ -89,13 +90,13 @@ const bgAndBorderColorStyles = appearance => appearance && css({
89
90
  '&[data-invalid]:focus': {
90
91
  backgroundColor: invalidRules.backgroundColorFocus,
91
92
  borderColor: invalidRules.borderColorFocus,
92
- boxShadow: `inset 0 0 0 ${"var(--ds-border-width, 1px)"} ${invalidRules.borderColorFocus}`
93
+ boxShadow: getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') ? `inset 0 0 0 ${"var(--ds-border-width, 1px)"} ${invalidRules.borderColorFocus}` : undefined
93
94
  },
94
95
  // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
95
96
  '&[data-invalid]:not(:focus)': {
96
97
  backgroundColor: invalidRules.backgroundColor,
97
98
  borderColor: invalidRules.borderColor,
98
- boxShadow: `inset 0 0 0 ${"var(--ds-border-width, 1px)"} ${invalidRules.borderColor}`
99
+ boxShadow: getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') ? `inset 0 0 0 ${"var(--ds-border-width, 1px)"} ${invalidRules.borderColor}` : undefined
99
100
  },
100
101
  // Disabled background and border styles should not be applied to components that
101
102
  // have either no background or transparent background to begin with
@@ -126,7 +127,7 @@ const hoverBackgroundAndBorderStyles = appearance => appearance && css({
126
127
  '&[data-invalid]': {
127
128
  backgroundColor: invalidRules.backgroundColorHover,
128
129
  borderColor: invalidRules.borderColor,
129
- boxShadow: `inset 0 0 0 ${"var(--ds-border-width, 1px)"} ${invalidRules.borderColor}`
130
+ boxShadow: getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') ? `inset 0 0 0 ${"var(--ds-border-width, 1px)"} ${invalidRules.borderColor}` : undefined
130
131
  }
131
132
  }
132
133
  });
@@ -152,7 +153,7 @@ const fontFamilyStyle = isMonospaced => css({
152
153
  fontFamily: isMonospaced ? codeFontFamily : fontFamily
153
154
  });
154
155
  const borderPaddingAndHeightStyles = (minimumRows = 1, appearance) => {
155
- const borderWidth = appearance !== 'none' ? 1 : 2;
156
+ const borderWidth = getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') && appearance !== 'none' ? 1 : 2;
156
157
  const horizontalPaddingWithoutBorderWidth = horizontalPadding - borderWidth;
157
158
  const borderHeight = borderWidth;
158
159
  return css({
@@ -182,7 +183,7 @@ const staticStyles = css({
182
183
  flex: '1 1 100%',
183
184
  borderRadius: "var(--ds-border-radius, 3px)",
184
185
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
185
- borderWidth: 1,
186
+ borderWidth: getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') ? 1 : borderWidth,
186
187
  fontSize: fontSize,
187
188
  outline: 'none',
188
189
  overflow: 'auto',
@@ -5,7 +5,7 @@ import { css, jsx } from '@emotion/react';
5
5
  import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
6
6
  import { borderWidth, dynamicStyles, getBaseStyles } from './styles';
7
7
  const packageName = "@atlaskit/textarea";
8
- const packageVersion = "5.1.0";
8
+ const packageVersion = "5.1.1";
9
9
  const analyticsParams = {
10
10
  componentName: 'textArea',
11
11
  packageName,
@@ -3,6 +3,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  /** @jsx jsx */
5
5
  import { css } from '@emotion/react';
6
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
6
7
  import { codeFontFamily as getCodeFontFamily, fontFamily as getFontFamily, fontSize as getFontSize,
7
8
  // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
8
9
  gridSize } from '@atlaskit/theme/constants';
@@ -83,7 +84,7 @@ var bgAndBorderColorStyles = function bgAndBorderColorStyles(appearance) {
83
84
  '&:focus': {
84
85
  backgroundColor: backgroundColorFocus[appearance],
85
86
  borderColor: borderColorFocus[appearance],
86
- boxShadow: "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " ", borderColorFocus[appearance])
87
+ boxShadow: getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') ? "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " ", borderColorFocus[appearance]) : undefined
87
88
  },
88
89
  '&:not(:focus)': {
89
90
  backgroundColor: backgroundColor[appearance],
@@ -93,13 +94,13 @@ var bgAndBorderColorStyles = function bgAndBorderColorStyles(appearance) {
93
94
  '&[data-invalid]:focus': {
94
95
  backgroundColor: invalidRules.backgroundColorFocus,
95
96
  borderColor: invalidRules.borderColorFocus,
96
- boxShadow: "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " ", invalidRules.borderColorFocus)
97
+ boxShadow: getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') ? "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " ", invalidRules.borderColorFocus) : undefined
97
98
  },
98
99
  // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
99
100
  '&[data-invalid]:not(:focus)': {
100
101
  backgroundColor: invalidRules.backgroundColor,
101
102
  borderColor: invalidRules.borderColor,
102
- boxShadow: "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " ", invalidRules.borderColor)
103
+ boxShadow: getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') ? "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " ", invalidRules.borderColor) : undefined
103
104
  }
104
105
  }, appearance === 'standard' ? {
105
106
  '&:disabled:focus': {
@@ -131,7 +132,7 @@ var hoverBackgroundAndBorderStyles = function hoverBackgroundAndBorderStyles(app
131
132
  '&[data-invalid]': {
132
133
  backgroundColor: invalidRules.backgroundColorHover,
133
134
  borderColor: invalidRules.borderColor,
134
- boxShadow: "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " ", invalidRules.borderColor)
135
+ boxShadow: getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') ? "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " ", invalidRules.borderColor) : undefined
135
136
  }
136
137
  }
137
138
  });
@@ -164,7 +165,7 @@ var fontFamilyStyle = function fontFamilyStyle(isMonospaced) {
164
165
  var borderPaddingAndHeightStyles = function borderPaddingAndHeightStyles() {
165
166
  var minimumRows = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
166
167
  var appearance = arguments.length > 1 ? arguments[1] : undefined;
167
- var borderWidth = appearance !== 'none' ? 1 : 2;
168
+ var borderWidth = getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') && appearance !== 'none' ? 1 : 2;
168
169
  var horizontalPaddingWithoutBorderWidth = horizontalPadding - borderWidth;
169
170
  var borderHeight = borderWidth;
170
171
  return css({
@@ -194,7 +195,7 @@ var staticStyles = css({
194
195
  flex: '1 1 100%',
195
196
  borderRadius: "var(--ds-border-radius, 3px)",
196
197
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
197
- borderWidth: 1,
198
+ borderWidth: getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') ? 1 : borderWidth,
198
199
  fontSize: fontSize,
199
200
  outline: 'none',
200
201
  overflow: 'auto',
@@ -11,7 +11,7 @@ import { css, jsx } from '@emotion/react';
11
11
  import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
12
12
  import { borderWidth, dynamicStyles, getBaseStyles } from './styles';
13
13
  var packageName = "@atlaskit/textarea";
14
- var packageVersion = "5.1.0";
14
+ var packageVersion = "5.1.1";
15
15
  var analyticsParams = {
16
16
  componentName: 'textArea',
17
17
  packageName: packageName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/textarea",
3
- "version": "5.1.0",
3
+ "version": "5.1.1",
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/"
@@ -96,6 +96,9 @@
96
96
  "platform-feature-flags": {
97
97
  "platform.design-system-team.border-checkbox_nyoiu": {
98
98
  "type": "boolean"
99
+ },
100
+ "platform.design-system-team.update-input-border-wdith_5abwv": {
101
+ "type": "boolean"
99
102
  }
100
103
  },
101
104
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"