@atlaskit/inline-edit 12.3.2 → 12.3.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/inline-edit
2
2
 
3
+ ## 12.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`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.
8
+
3
9
  ## 12.3.2
4
10
 
5
11
  ### Patch Changes
@@ -32,7 +32,7 @@ var buttonStyles = (0, _react2.css)({
32
32
  var analyticsAttributes = {
33
33
  componentName: 'inlineEdit',
34
34
  packageName: "@atlaskit/inline-edit",
35
- packageVersion: "12.3.2"
35
+ packageVersion: "12.3.3"
36
36
  };
37
37
  var noop = function noop() {};
38
38
  var InnerInlineEdit = function InnerInlineEdit(props) {
@@ -23,10 +23,10 @@ var errorIconContainerStyles = (0, _react.css)({
23
23
  var readViewForTextFieldStyles = (0, _react.css)({
24
24
  display: 'flex',
25
25
  maxWidth: '100%',
26
- minHeight: "".concat(_constants.gridSize * 2.5 / _constants.fontSize, "em"),
26
+ minHeight: "".concat(8 * 2.5 / _constants.fontSize, "em"),
27
27
  padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-075, 6px)"),
28
28
  fontSize: _constants.fontSize,
29
- lineHeight: _constants.gridSize * 2.5 / _constants.fontSize,
29
+ lineHeight: 8 * 2.5 / _constants.fontSize,
30
30
  wordBreak: 'break-word'
31
31
  });
32
32
  var compactStyles = (0, _react.css)({
@@ -59,10 +59,10 @@ var buttonWrapperElevationLightStyles = (0, _react.css)({
59
59
  });
60
60
  var buttonWrapperBaseStyles = (0, _react.css)({
61
61
  boxSizing: 'border-box',
62
- width: _constants.gridSize * 4,
62
+ width: "var(--ds-space-400, 32px)",
63
63
  zIndex: 200,
64
64
  backgroundColor: "var(--ds-surface-overlay, ".concat(_colors.N0, ")"),
65
- borderRadius: _constants.gridSize / 2 - 1,
65
+ borderRadius: '3px',
66
66
  fontSize: _constants.fontSize,
67
67
  '&:last-child': {
68
68
  marginLeft: "var(--ds-space-050, 4px)"
@@ -3,10 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.gridSize = exports.fontSize = exports.borderRadius = void 0;
6
+ exports.fontSize = exports.borderRadius = void 0;
7
7
  var _constants = require("@atlaskit/theme/constants");
8
- var gridSize = (0, _constants.gridSize)();
9
- exports.gridSize = gridSize;
10
8
  var fontSize = (0, _constants.fontSize)();
11
9
  exports.fontSize = fontSize;
12
10
  var borderRadius = (0, _constants.borderRadius)();
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/inline-edit",
3
- "version": "12.3.2",
3
+ "version": "12.3.3",
4
4
  "sideEffects": false
5
5
  }
@@ -19,7 +19,7 @@ const buttonStyles = css({
19
19
  const analyticsAttributes = {
20
20
  componentName: 'inlineEdit',
21
21
  packageName: "@atlaskit/inline-edit",
22
- packageVersion: "12.3.2"
22
+ packageVersion: "12.3.3"
23
23
  };
24
24
  const noop = () => {};
25
25
  const InnerInlineEdit = props => {
@@ -6,7 +6,7 @@ import InlineDialog from '@atlaskit/inline-dialog';
6
6
  import Textfield from '@atlaskit/textfield';
7
7
  import { R400 } from '@atlaskit/theme/colors';
8
8
  import InlineEdit from './inline-edit';
9
- import { fontSize, gridSize } from './internal/constants';
9
+ import { fontSize } from './internal/constants';
10
10
  const errorIconContainerStyles = css({
11
11
  paddingRight: "var(--ds-space-075, 6px)",
12
12
  lineHeight: '100%'
@@ -14,10 +14,10 @@ const errorIconContainerStyles = css({
14
14
  const readViewForTextFieldStyles = css({
15
15
  display: 'flex',
16
16
  maxWidth: '100%',
17
- minHeight: `${gridSize * 2.5 / fontSize}em`,
17
+ minHeight: `${8 * 2.5 / fontSize}em`,
18
18
  padding: `${"var(--ds-space-100, 8px)"} ${"var(--ds-space-075, 6px)"}`,
19
19
  fontSize: fontSize,
20
- lineHeight: gridSize * 2.5 / fontSize,
20
+ lineHeight: 8 * 2.5 / fontSize,
21
21
  wordBreak: 'break-word'
22
22
  });
23
23
  const compactStyles = css({
@@ -5,7 +5,7 @@ import Button from '@atlaskit/button/standard-button';
5
5
  import ConfirmIcon from '@atlaskit/icon/glyph/check';
6
6
  import CancelIcon from '@atlaskit/icon/glyph/cross';
7
7
  import { B400, B75, DN50A, DN60, DN60A, DN70, N0, N20A, N30A, N50A, N60A } from '@atlaskit/theme/colors';
8
- import { fontSize, gridSize } from './constants';
8
+ import { fontSize } from './constants';
9
9
  const buttonsContainerStyles = css({
10
10
  display: 'flex',
11
11
  marginTop: "var(--ds-space-075, 6px)",
@@ -52,10 +52,10 @@ const buttonWrapperElevationLightStyles = css({
52
52
  });
53
53
  const buttonWrapperBaseStyles = css({
54
54
  boxSizing: 'border-box',
55
- width: gridSize * 4,
55
+ width: "var(--ds-space-400, 32px)",
56
56
  zIndex: 200,
57
57
  backgroundColor: `var(--ds-surface-overlay, ${N0})`,
58
- borderRadius: gridSize / 2 - 1,
58
+ borderRadius: '3px',
59
59
  fontSize: fontSize,
60
60
  '&:last-child': {
61
61
  marginLeft: "var(--ds-space-050, 4px)"
@@ -1,4 +1,3 @@
1
- import { borderRadius as getBorderRadius, fontSize as getFontSize, gridSize as getGridSize } from '@atlaskit/theme/constants';
2
- export const gridSize = getGridSize();
1
+ import { borderRadius as getBorderRadius, fontSize as getFontSize } from '@atlaskit/theme/constants';
3
2
  export const fontSize = getFontSize();
4
3
  export const borderRadius = getBorderRadius();
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/inline-edit",
3
- "version": "12.3.2",
3
+ "version": "12.3.3",
4
4
  "sideEffects": false
5
5
  }
@@ -23,7 +23,7 @@ var buttonStyles = css({
23
23
  var analyticsAttributes = {
24
24
  componentName: 'inlineEdit',
25
25
  packageName: "@atlaskit/inline-edit",
26
- packageVersion: "12.3.2"
26
+ packageVersion: "12.3.3"
27
27
  };
28
28
  var noop = function noop() {};
29
29
  var InnerInlineEdit = function InnerInlineEdit(props) {
@@ -8,7 +8,7 @@ import InlineDialog from '@atlaskit/inline-dialog';
8
8
  import Textfield from '@atlaskit/textfield';
9
9
  import { R400 } from '@atlaskit/theme/colors';
10
10
  import InlineEdit from './inline-edit';
11
- import { fontSize, gridSize } from './internal/constants';
11
+ import { fontSize } from './internal/constants';
12
12
  var errorIconContainerStyles = css({
13
13
  paddingRight: "var(--ds-space-075, 6px)",
14
14
  lineHeight: '100%'
@@ -16,10 +16,10 @@ var errorIconContainerStyles = css({
16
16
  var readViewForTextFieldStyles = css({
17
17
  display: 'flex',
18
18
  maxWidth: '100%',
19
- minHeight: "".concat(gridSize * 2.5 / fontSize, "em"),
19
+ minHeight: "".concat(8 * 2.5 / fontSize, "em"),
20
20
  padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-075, 6px)"),
21
21
  fontSize: fontSize,
22
- lineHeight: gridSize * 2.5 / fontSize,
22
+ lineHeight: 8 * 2.5 / fontSize,
23
23
  wordBreak: 'break-word'
24
24
  });
25
25
  var compactStyles = css({
@@ -5,7 +5,7 @@ import Button from '@atlaskit/button/standard-button';
5
5
  import ConfirmIcon from '@atlaskit/icon/glyph/check';
6
6
  import CancelIcon from '@atlaskit/icon/glyph/cross';
7
7
  import { B400, B75, DN50A, DN60, DN60A, DN70, N0, N20A, N30A, N50A, N60A } from '@atlaskit/theme/colors';
8
- import { fontSize, gridSize } from './constants';
8
+ import { fontSize } from './constants';
9
9
  var buttonsContainerStyles = css({
10
10
  display: 'flex',
11
11
  marginTop: "var(--ds-space-075, 6px)",
@@ -52,10 +52,10 @@ var buttonWrapperElevationLightStyles = css({
52
52
  });
53
53
  var buttonWrapperBaseStyles = css({
54
54
  boxSizing: 'border-box',
55
- width: gridSize * 4,
55
+ width: "var(--ds-space-400, 32px)",
56
56
  zIndex: 200,
57
57
  backgroundColor: "var(--ds-surface-overlay, ".concat(N0, ")"),
58
- borderRadius: gridSize / 2 - 1,
58
+ borderRadius: '3px',
59
59
  fontSize: fontSize,
60
60
  '&:last-child': {
61
61
  marginLeft: "var(--ds-space-050, 4px)"
@@ -1,4 +1,3 @@
1
- import { borderRadius as getBorderRadius, fontSize as getFontSize, gridSize as getGridSize } from '@atlaskit/theme/constants';
2
- export var gridSize = getGridSize();
1
+ import { borderRadius as getBorderRadius, fontSize as getFontSize } from '@atlaskit/theme/constants';
3
2
  export var fontSize = getFontSize();
4
3
  export var borderRadius = getBorderRadius();
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/inline-edit",
3
- "version": "12.3.2",
3
+ "version": "12.3.3",
4
4
  "sideEffects": false
5
5
  }
@@ -1,3 +1,2 @@
1
- export declare const gridSize: number;
2
1
  export declare const fontSize: number;
3
2
  export declare const borderRadius: number;
@@ -1,3 +1,2 @@
1
- export declare const gridSize: number;
2
1
  export declare const fontSize: number;
3
2
  export declare const borderRadius: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/inline-edit",
3
- "version": "12.3.2",
3
+ "version": "12.3.3",
4
4
  "description": "An inline edit displays a custom input component that switches between reading and editing on the same page.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"