@atlaskit/textarea 5.5.0 → 5.5.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,14 @@
1
1
  # @atlaskit/textarea
2
2
 
3
+ ## 5.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#105813](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/105813)
8
+ [`f2f51e7a24d00`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f2f51e7a24d00) -
9
+ Internal change only. Update typography to use typography tokens.
10
+ - Updated dependencies
11
+
3
12
  ## 5.5.0
4
13
 
5
14
  ### Minor Changes
@@ -8,7 +8,6 @@ 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 _constants = require("@atlaskit/theme/constants");
12
11
  var componentTokens = _interopRequireWildcard(require("./component-tokens"));
13
12
  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); }
14
13
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -61,16 +60,14 @@ var borderColorHover = {
61
60
  subtle: componentTokens.subtleBorderColorHover,
62
61
  none: componentTokens.transparent
63
62
  };
64
- var grid = (0, _constants.gridSize)();
65
- var lineHeightBase = grid * 2.5;
66
- var lineHeightCompact = grid * 2;
63
+ var lineHeightBase = 8 * 2.5;
64
+ var lineHeightCompact = 8 * 2;
67
65
  var compactVerticalPadding = 2;
68
66
  var verticalPadding = 6;
69
- var horizontalPadding = grid;
67
+ var horizontalPadding = 8;
70
68
  var transitionDuration = '0.2s';
71
- var fontSize = (0, _constants.fontSize)();
72
- var fontFamily = (0, _constants.fontFamily)();
73
- var codeFontFamily = (0, _constants.codeFontFamily)();
69
+ var fontFamily = "var(--ds-font-family-body, ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)";
70
+ var codeFontFamily = "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)";
74
71
  var borderWidth = exports.borderWidth = 2;
75
72
 
76
73
  // Safari puts on some difficult to remove styles, mainly for disabled inputs
@@ -208,8 +205,8 @@ var borderPaddingAndHeightStyles = function borderPaddingAndHeightStyles() {
208
205
  minHeight: borderBoxMinHeightCompact(minimumRows, borderHeight),
209
206
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
210
207
  padding: "".concat(compactVerticalPadding, "px ").concat(horizontalPaddingWithoutBorderWidth, "px"),
211
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
212
- lineHeight: lineHeightCompact / fontSize
208
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values
209
+ lineHeight: lineHeightCompact / 14
213
210
  },
214
211
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
215
212
  '&:not([data-compact])': {
@@ -217,8 +214,8 @@ var borderPaddingAndHeightStyles = function borderPaddingAndHeightStyles() {
217
214
  minHeight: borderBoxMinHeight(minimumRows, borderHeight),
218
215
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
219
216
  padding: "".concat(verticalPadding, "px ").concat(horizontalPaddingWithoutBorderWidth, "px"),
220
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
221
- lineHeight: lineHeightBase / fontSize
217
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values
218
+ lineHeight: lineHeightBase / 14
222
219
  }
223
220
  });
224
221
  };
@@ -234,7 +231,7 @@ var staticStyles = (0, _react.css)({
234
231
  borderRadius: "var(--ds-border-radius, 3px)",
235
232
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
236
233
  borderWidth: 1,
237
- fontSize: fontSize,
234
+ font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
238
235
  outline: 'none',
239
236
  overflow: 'auto',
240
237
  transition: "background-color ".concat(transitionDuration, " ease-in-out,\n border-color ").concat(transitionDuration, " ease-in-out"),
@@ -25,7 +25,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
25
25
  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; }
26
26
  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; }
27
27
  var packageName = "@atlaskit/textarea";
28
- var packageVersion = "5.5.0";
28
+ var packageVersion = "5.5.1";
29
29
  var analyticsParams = {
30
30
  componentName: 'textArea',
31
31
  packageName: packageName,
@@ -4,9 +4,6 @@
4
4
  /** @jsx jsx */
5
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
6
  import { css } from '@emotion/react';
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';
10
7
  import * as componentTokens from './component-tokens';
11
8
  const disabledRules = {
12
9
  backgroundColor: componentTokens.disabledBackground,
@@ -53,16 +50,14 @@ const borderColorHover = {
53
50
  subtle: componentTokens.subtleBorderColorHover,
54
51
  none: componentTokens.transparent
55
52
  };
56
- const grid = gridSize();
57
- const lineHeightBase = grid * 2.5;
58
- const lineHeightCompact = grid * 2;
53
+ const lineHeightBase = 8 * 2.5;
54
+ const lineHeightCompact = 8 * 2;
59
55
  const compactVerticalPadding = 2;
60
56
  const verticalPadding = 6;
61
- const horizontalPadding = grid;
57
+ const horizontalPadding = 8;
62
58
  const transitionDuration = '0.2s';
63
- const fontSize = getFontSize();
64
- const fontFamily = getFontFamily();
65
- const codeFontFamily = getCodeFontFamily();
59
+ const fontFamily = "var(--ds-font-family-body, ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)";
60
+ const codeFontFamily = "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)";
66
61
  export const borderWidth = 2;
67
62
 
68
63
  // Safari puts on some difficult to remove styles, mainly for disabled inputs
@@ -194,8 +189,8 @@ const borderPaddingAndHeightStyles = (minimumRows = 1, appearance) => {
194
189
  minHeight: borderBoxMinHeightCompact(minimumRows, borderHeight),
195
190
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
196
191
  padding: `${compactVerticalPadding}px ${horizontalPaddingWithoutBorderWidth}px`,
197
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
198
- lineHeight: lineHeightCompact / fontSize
192
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values
193
+ lineHeight: lineHeightCompact / 14
199
194
  },
200
195
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
201
196
  '&:not([data-compact])': {
@@ -203,8 +198,8 @@ const borderPaddingAndHeightStyles = (minimumRows = 1, appearance) => {
203
198
  minHeight: borderBoxMinHeight(minimumRows, borderHeight),
204
199
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
205
200
  padding: `${verticalPadding}px ${horizontalPaddingWithoutBorderWidth}px`,
206
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
207
- lineHeight: lineHeightBase / fontSize
201
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values
202
+ lineHeight: lineHeightBase / 14
208
203
  }
209
204
  });
210
205
  };
@@ -220,7 +215,7 @@ const staticStyles = css({
220
215
  borderRadius: "var(--ds-border-radius, 3px)",
221
216
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
222
217
  borderWidth: 1,
223
- fontSize: fontSize,
218
+ font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
224
219
  outline: 'none',
225
220
  overflow: 'auto',
226
221
  transition: `background-color ${transitionDuration} ease-in-out,
@@ -10,7 +10,7 @@ import { css, jsx } from '@emotion/react';
10
10
  import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
11
11
  import { borderWidth, dynamicStyles, getBaseStyles } from './styles';
12
12
  const packageName = "@atlaskit/textarea";
13
- const packageVersion = "5.5.0";
13
+ const packageVersion = "5.5.1";
14
14
  const analyticsParams = {
15
15
  componentName: 'textArea',
16
16
  packageName,
@@ -7,9 +7,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  /** @jsx jsx */
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
9
  import { css } from '@emotion/react';
10
- import { codeFontFamily as getCodeFontFamily, fontFamily as getFontFamily, fontSize as getFontSize,
11
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
12
- gridSize } from '@atlaskit/theme/constants';
13
10
  import * as componentTokens from './component-tokens';
14
11
  var disabledRules = {
15
12
  backgroundColor: componentTokens.disabledBackground,
@@ -56,16 +53,14 @@ var borderColorHover = {
56
53
  subtle: componentTokens.subtleBorderColorHover,
57
54
  none: componentTokens.transparent
58
55
  };
59
- var grid = gridSize();
60
- var lineHeightBase = grid * 2.5;
61
- var lineHeightCompact = grid * 2;
56
+ var lineHeightBase = 8 * 2.5;
57
+ var lineHeightCompact = 8 * 2;
62
58
  var compactVerticalPadding = 2;
63
59
  var verticalPadding = 6;
64
- var horizontalPadding = grid;
60
+ var horizontalPadding = 8;
65
61
  var transitionDuration = '0.2s';
66
- var fontSize = getFontSize();
67
- var fontFamily = getFontFamily();
68
- var codeFontFamily = getCodeFontFamily();
62
+ var fontFamily = "var(--ds-font-family-body, ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)";
63
+ var codeFontFamily = "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)";
69
64
  export var borderWidth = 2;
70
65
 
71
66
  // Safari puts on some difficult to remove styles, mainly for disabled inputs
@@ -203,8 +198,8 @@ var borderPaddingAndHeightStyles = function borderPaddingAndHeightStyles() {
203
198
  minHeight: borderBoxMinHeightCompact(minimumRows, borderHeight),
204
199
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
205
200
  padding: "".concat(compactVerticalPadding, "px ").concat(horizontalPaddingWithoutBorderWidth, "px"),
206
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
207
- lineHeight: lineHeightCompact / fontSize
201
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values
202
+ lineHeight: lineHeightCompact / 14
208
203
  },
209
204
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
210
205
  '&:not([data-compact])': {
@@ -212,8 +207,8 @@ var borderPaddingAndHeightStyles = function borderPaddingAndHeightStyles() {
212
207
  minHeight: borderBoxMinHeight(minimumRows, borderHeight),
213
208
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
214
209
  padding: "".concat(verticalPadding, "px ").concat(horizontalPaddingWithoutBorderWidth, "px"),
215
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
216
- lineHeight: lineHeightBase / fontSize
210
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values
211
+ lineHeight: lineHeightBase / 14
217
212
  }
218
213
  });
219
214
  };
@@ -229,7 +224,7 @@ var staticStyles = css({
229
224
  borderRadius: "var(--ds-border-radius, 3px)",
230
225
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
231
226
  borderWidth: 1,
232
- fontSize: fontSize,
227
+ font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
233
228
  outline: 'none',
234
229
  overflow: 'auto',
235
230
  transition: "background-color ".concat(transitionDuration, " ease-in-out,\n border-color ").concat(transitionDuration, " ease-in-out"),
@@ -16,7 +16,7 @@ import { css, jsx } from '@emotion/react';
16
16
  import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
17
17
  import { borderWidth, dynamicStyles, getBaseStyles } from './styles';
18
18
  var packageName = "@atlaskit/textarea";
19
- var packageVersion = "5.5.0";
19
+ var packageVersion = "5.5.1";
20
20
  var analyticsParams = {
21
21
  componentName: 'textArea',
22
22
  packageName: packageName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/textarea",
3
- "version": "5.5.0",
3
+ "version": "5.5.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/"
@@ -43,7 +43,7 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@atlaskit/analytics-next": "^9.3.0",
46
- "@atlaskit/theme": "^12.10.0",
46
+ "@atlaskit/theme": "^12.11.0",
47
47
  "@atlaskit/tokens": "^1.51.0",
48
48
  "@babel/runtime": "^7.0.0",
49
49
  "@emotion/react": "^11.7.1"
@@ -54,6 +54,7 @@
54
54
  "devDependencies": {
55
55
  "@af/accessibility-testing": "*",
56
56
  "@af/integration-testing": "*",
57
+ "@af/visual-regression": "*",
57
58
  "@atlaskit/ds-lib": "^2.3.0",
58
59
  "@atlaskit/ssr": "*",
59
60
  "@atlaskit/visual-regression": "*",