@atlaskit/inline-edit 12.2.0 → 12.2.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/inline-edit
2
2
 
3
+ ## 12.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`be93a207731`](https://bitbucket.org/atlassian/atlassian-frontend/commits/be93a207731) - Action buttons now use interactive elevation design tokens. There is no change to their appearance when design tokens are not enabled.
8
+
3
9
  ## 12.2.0
4
10
 
5
11
  ### Minor Changes
@@ -51,7 +51,7 @@ var buttonStyles = (0, _react2.css)({
51
51
  var analyticsAttributes = {
52
52
  componentName: 'inlineEdit',
53
53
  packageName: "@atlaskit/inline-edit",
54
- packageVersion: "12.2.0"
54
+ packageVersion: "12.2.1"
55
55
  };
56
56
 
57
57
  var noop = function noop() {};
@@ -29,10 +29,38 @@ var buttonsContainerStyles = (0, _react.css)({
29
29
  flexShrink: 0
30
30
  });
31
31
  var buttonWrapperElevationDarkStyles = (0, _react.css)({
32
- boxShadow: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(_colors.DN50A, ", 0 0 1px ").concat(_colors.DN60A), ")")
32
+ boxShadow: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(_colors.DN50A, ", 0 0 1px ").concat(_colors.DN60A), ")"),
33
+ // These buttons are floating, so they need an override to overlay interaction states
34
+ // eslint-disable-next-line @repo/internal/styles/no-nested-styles
35
+ '& > button': {
36
+ backgroundColor: "var(--ds-surface-overlay, ".concat(_colors.DN70, ")")
37
+ },
38
+ // eslint-disable-next-line @repo/internal/styles/no-nested-styles
39
+ '& > button:hover': {
40
+ backgroundColor: "var(--ds-surface-overlay-hovered, ".concat(_colors.DN60, ")")
41
+ },
42
+ // eslint-disable-next-line @repo/internal/styles/no-nested-styles
43
+ '& > button:active': {
44
+ backgroundColor: "var(--ds-surface-overlay-pressed, ".concat(_colors.B75, ")"),
45
+ color: "var(--ds-text, ".concat(_colors.B400, ")")
46
+ }
33
47
  });
34
48
  var buttonWrapperElevationLightStyles = (0, _react.css)({
35
- boxShadow: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(_colors.N50A, ", 0 0 1px ").concat(_colors.N60A), ")")
49
+ boxShadow: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(_colors.N50A, ", 0 0 1px ").concat(_colors.N60A), ")"),
50
+ // These buttons are floating, so they need an override to overlay interaction states
51
+ // eslint-disable-next-line @repo/internal/styles/no-nested-styles
52
+ '& > button': {
53
+ backgroundColor: "var(--ds-surface-overlay, ".concat(_colors.N20A, ")")
54
+ },
55
+ // eslint-disable-next-line @repo/internal/styles/no-nested-styles
56
+ '& > button:hover': {
57
+ backgroundColor: "var(--ds-surface-overlay-hovered, ".concat(_colors.N30A, ")")
58
+ },
59
+ // eslint-disable-next-line @repo/internal/styles/no-nested-styles
60
+ '& > button:active': {
61
+ backgroundColor: "var(--ds-surface-overlay-pressed, rgba(179, 212, 255, 0.6))",
62
+ color: "var(--ds-text, ".concat(_colors.B400, ")")
63
+ }
36
64
  });
37
65
  var buttonWrapperBaseStyles = (0, _react.css)({
38
66
  boxSizing: 'border-box',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/inline-edit",
3
- "version": "12.2.0",
3
+ "version": "12.2.1",
4
4
  "sideEffects": false
5
5
  }
@@ -20,7 +20,7 @@ const buttonStyles = css({
20
20
  const analyticsAttributes = {
21
21
  componentName: 'inlineEdit',
22
22
  packageName: "@atlaskit/inline-edit",
23
- packageVersion: "12.2.0"
23
+ packageVersion: "12.2.1"
24
24
  };
25
25
 
26
26
  const noop = () => {};
@@ -3,7 +3,7 @@ import { css, jsx } from '@emotion/react';
3
3
  import Button from '@atlaskit/button/standard-button';
4
4
  import ConfirmIcon from '@atlaskit/icon/glyph/check';
5
5
  import CancelIcon from '@atlaskit/icon/glyph/cross';
6
- import { DN50A, DN60A, N0, N50A, N60A } from '@atlaskit/theme/colors';
6
+ import { B400, B75, DN50A, DN60, DN60A, DN70, N0, N20A, N30A, N50A, N60A } from '@atlaskit/theme/colors';
7
7
  import { fontSize, gridSize } from './constants';
8
8
  const buttonsContainerStyles = css({
9
9
  display: 'flex',
@@ -14,10 +14,38 @@ const buttonsContainerStyles = css({
14
14
  flexShrink: 0
15
15
  });
16
16
  const buttonWrapperElevationDarkStyles = css({
17
- boxShadow: `var(--ds-shadow-overlay, ${`0 4px 8px -2px ${DN50A}, 0 0 1px ${DN60A}`})`
17
+ boxShadow: `var(--ds-shadow-overlay, ${`0 4px 8px -2px ${DN50A}, 0 0 1px ${DN60A}`})`,
18
+ // These buttons are floating, so they need an override to overlay interaction states
19
+ // eslint-disable-next-line @repo/internal/styles/no-nested-styles
20
+ '& > button': {
21
+ backgroundColor: `var(--ds-surface-overlay, ${DN70})`
22
+ },
23
+ // eslint-disable-next-line @repo/internal/styles/no-nested-styles
24
+ '& > button:hover': {
25
+ backgroundColor: `var(--ds-surface-overlay-hovered, ${DN60})`
26
+ },
27
+ // eslint-disable-next-line @repo/internal/styles/no-nested-styles
28
+ '& > button:active': {
29
+ backgroundColor: `var(--ds-surface-overlay-pressed, ${B75})`,
30
+ color: `var(--ds-text, ${B400})`
31
+ }
18
32
  });
19
33
  const buttonWrapperElevationLightStyles = css({
20
- boxShadow: `var(--ds-shadow-overlay, ${`0 4px 8px -2px ${N50A}, 0 0 1px ${N60A}`})`
34
+ boxShadow: `var(--ds-shadow-overlay, ${`0 4px 8px -2px ${N50A}, 0 0 1px ${N60A}`})`,
35
+ // These buttons are floating, so they need an override to overlay interaction states
36
+ // eslint-disable-next-line @repo/internal/styles/no-nested-styles
37
+ '& > button': {
38
+ backgroundColor: `var(--ds-surface-overlay, ${N20A})`
39
+ },
40
+ // eslint-disable-next-line @repo/internal/styles/no-nested-styles
41
+ '& > button:hover': {
42
+ backgroundColor: `var(--ds-surface-overlay-hovered, ${N30A})`
43
+ },
44
+ // eslint-disable-next-line @repo/internal/styles/no-nested-styles
45
+ '& > button:active': {
46
+ backgroundColor: "var(--ds-surface-overlay-pressed, rgba(179, 212, 255, 0.6))",
47
+ color: `var(--ds-text, ${B400})`
48
+ }
21
49
  });
22
50
  const buttonWrapperBaseStyles = css({
23
51
  boxSizing: 'border-box',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/inline-edit",
3
- "version": "12.2.0",
3
+ "version": "12.2.1",
4
4
  "sideEffects": false
5
5
  }
@@ -26,7 +26,7 @@ var buttonStyles = css({
26
26
  var analyticsAttributes = {
27
27
  componentName: 'inlineEdit',
28
28
  packageName: "@atlaskit/inline-edit",
29
- packageVersion: "12.2.0"
29
+ packageVersion: "12.2.1"
30
30
  };
31
31
 
32
32
  var noop = function noop() {};
@@ -3,7 +3,7 @@ import { css, jsx } from '@emotion/react';
3
3
  import Button from '@atlaskit/button/standard-button';
4
4
  import ConfirmIcon from '@atlaskit/icon/glyph/check';
5
5
  import CancelIcon from '@atlaskit/icon/glyph/cross';
6
- import { DN50A, DN60A, N0, N50A, N60A } from '@atlaskit/theme/colors';
6
+ import { B400, B75, DN50A, DN60, DN60A, DN70, N0, N20A, N30A, N50A, N60A } from '@atlaskit/theme/colors';
7
7
  import { fontSize, gridSize } from './constants';
8
8
  var buttonsContainerStyles = css({
9
9
  display: 'flex',
@@ -14,10 +14,38 @@ var buttonsContainerStyles = css({
14
14
  flexShrink: 0
15
15
  });
16
16
  var buttonWrapperElevationDarkStyles = css({
17
- boxShadow: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(DN50A, ", 0 0 1px ").concat(DN60A), ")")
17
+ boxShadow: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(DN50A, ", 0 0 1px ").concat(DN60A), ")"),
18
+ // These buttons are floating, so they need an override to overlay interaction states
19
+ // eslint-disable-next-line @repo/internal/styles/no-nested-styles
20
+ '& > button': {
21
+ backgroundColor: "var(--ds-surface-overlay, ".concat(DN70, ")")
22
+ },
23
+ // eslint-disable-next-line @repo/internal/styles/no-nested-styles
24
+ '& > button:hover': {
25
+ backgroundColor: "var(--ds-surface-overlay-hovered, ".concat(DN60, ")")
26
+ },
27
+ // eslint-disable-next-line @repo/internal/styles/no-nested-styles
28
+ '& > button:active': {
29
+ backgroundColor: "var(--ds-surface-overlay-pressed, ".concat(B75, ")"),
30
+ color: "var(--ds-text, ".concat(B400, ")")
31
+ }
18
32
  });
19
33
  var buttonWrapperElevationLightStyles = css({
20
- boxShadow: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(N50A, ", 0 0 1px ").concat(N60A), ")")
34
+ boxShadow: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(N50A, ", 0 0 1px ").concat(N60A), ")"),
35
+ // These buttons are floating, so they need an override to overlay interaction states
36
+ // eslint-disable-next-line @repo/internal/styles/no-nested-styles
37
+ '& > button': {
38
+ backgroundColor: "var(--ds-surface-overlay, ".concat(N20A, ")")
39
+ },
40
+ // eslint-disable-next-line @repo/internal/styles/no-nested-styles
41
+ '& > button:hover': {
42
+ backgroundColor: "var(--ds-surface-overlay-hovered, ".concat(N30A, ")")
43
+ },
44
+ // eslint-disable-next-line @repo/internal/styles/no-nested-styles
45
+ '& > button:active': {
46
+ backgroundColor: "var(--ds-surface-overlay-pressed, rgba(179, 212, 255, 0.6))",
47
+ color: "var(--ds-text, ".concat(B400, ")")
48
+ }
21
49
  });
22
50
  var buttonWrapperBaseStyles = css({
23
51
  boxSizing: 'border-box',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/inline-edit",
3
- "version": "12.2.0",
3
+ "version": "12.2.1",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/inline-edit",
3
- "version": "12.2.0",
3
+ "version": "12.2.1",
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/"
@@ -52,8 +52,8 @@
52
52
  "@atlaskit/webdriver-runner": "*",
53
53
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
54
54
  "@emotion/styled": "^11.0.0",
55
- "@testing-library/dom": "^7.7.3",
56
- "@testing-library/react": "^8.0.1",
55
+ "@testing-library/dom": "^8.17.1",
56
+ "@testing-library/react": "^12.1.5",
57
57
  "ast-types": "^0.13.3",
58
58
  "jscodeshift": "^0.13.0",
59
59
  "react-dom": "^16.8.0",