@atlaskit/pragmatic-drag-and-drop-react-accessibility 2.1.5 → 2.1.7

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,18 @@
1
1
  # @atlaskit/pragmatic-drag-and-drop-react-accessibility
2
2
 
3
+ ## 2.1.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`d14ea5f60b689`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d14ea5f60b689) -
8
+ chore: migrate platform UI & component libraries icon imports from migration paths to core
9
+
10
+ ## 2.1.6
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 2.1.5
4
17
 
5
18
  ### Patch Changes
@@ -21,7 +21,7 @@ var _excluded = ["children", "isSelected", "testId", "appearance", "type"];
21
21
  * which prevents dragging.
22
22
  */
23
23
  var buttonStyles = (0, _react2.css)({
24
- color: "var(--ds-text, #172B4D)",
24
+ color: "var(--ds-text, #292A2E)",
25
25
  borderRadius: "var(--ds-radius-small, 4px)",
26
26
  padding: "var(--ds-space-0, 0px)",
27
27
  width: 'max-content',
@@ -31,26 +31,26 @@ var buttonStyles = (0, _react2.css)({
31
31
  });
32
32
  var buttonAppearanceStyles = {
33
33
  default: (0, _react2.css)({
34
- backgroundColor: "var(--ds-background-neutral, #091E420F)",
34
+ backgroundColor: "var(--ds-background-neutral, #0515240F)",
35
35
  '&:hover': {
36
- backgroundColor: "var(--ds-background-neutral-hovered, #091E4224)"
36
+ backgroundColor: "var(--ds-background-neutral-hovered, #0B120E24)"
37
37
  },
38
38
  '&:active': {
39
- backgroundColor: "var(--ds-background-neutral-pressed, #091E424F)"
39
+ backgroundColor: "var(--ds-background-neutral-pressed, #080F214A)"
40
40
  }
41
41
  }),
42
42
  subtle: (0, _react2.css)({
43
43
  backgroundColor: "var(--ds-background-neutral-subtle, #00000000)",
44
44
  '&:hover': {
45
- backgroundColor: "var(--ds-background-neutral-subtle-hovered, #091E420F)"
45
+ backgroundColor: "var(--ds-background-neutral-subtle-hovered, #0515240F)"
46
46
  },
47
47
  '&:active': {
48
- backgroundColor: "var(--ds-background-neutral-subtle-pressed, #091E4224)"
48
+ backgroundColor: "var(--ds-background-neutral-subtle-pressed, #0B120E24)"
49
49
  }
50
50
  }),
51
51
  selected: (0, _react2.css)({
52
- backgroundColor: "var(--ds-background-selected, #E9F2FF)",
53
- color: "var(--ds-text-selected, #0C66E4)"
52
+ backgroundColor: "var(--ds-background-selected, #E9F2FE)",
53
+ color: "var(--ds-text-selected, #1868DB)"
54
54
  })
55
55
  };
56
56
 
@@ -10,7 +10,6 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
10
10
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
11
  var _react = _interopRequireWildcard(require("react"));
12
12
  var _dragHandleVertical = _interopRequireDefault(require("@atlaskit/icon/core/drag-handle-vertical"));
13
- var _dragHandleVerticalDragHandler = _interopRequireDefault(require("@atlaskit/icon/core/migration/drag-handle-vertical--drag-handler"));
14
13
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
14
  var _primitives = require("@atlaskit/primitives");
16
15
  var _dragHandleButtonBase = require("./drag-handle-button-base");
@@ -49,14 +48,9 @@ var DragHandleButtonSmall = exports.DragHandleButtonSmall = /*#__PURE__*/(0, _re
49
48
  ref: ref
50
49
  }, buttonProps), /*#__PURE__*/_react.default.createElement(_primitives.Box, {
51
50
  xcss: (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') || (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? iconSmallStylesNew : iconSmallStyles
52
- }, (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') ? /*#__PURE__*/_react.default.createElement(_dragHandleVertical.default, {
51
+ }, /*#__PURE__*/_react.default.createElement(_dragHandleVertical.default, {
53
52
  color: "currentColor",
54
53
  label: label,
55
54
  size: "small"
56
- }) : /*#__PURE__*/_react.default.createElement(_dragHandleVerticalDragHandler.default, {
57
- color: "currentColor",
58
- label: label,
59
- LEGACY_size: "small",
60
- size: "small"
61
55
  })));
62
56
  });
@@ -14,7 +14,7 @@ import FocusRing from '@atlaskit/focus-ring';
14
14
  * which prevents dragging.
15
15
  */
16
16
  const buttonStyles = css({
17
- color: "var(--ds-text, #172B4D)",
17
+ color: "var(--ds-text, #292A2E)",
18
18
  borderRadius: "var(--ds-radius-small, 4px)",
19
19
  padding: "var(--ds-space-0, 0px)",
20
20
  width: 'max-content',
@@ -24,26 +24,26 @@ const buttonStyles = css({
24
24
  });
25
25
  const buttonAppearanceStyles = {
26
26
  default: css({
27
- backgroundColor: "var(--ds-background-neutral, #091E420F)",
27
+ backgroundColor: "var(--ds-background-neutral, #0515240F)",
28
28
  '&:hover': {
29
- backgroundColor: "var(--ds-background-neutral-hovered, #091E4224)"
29
+ backgroundColor: "var(--ds-background-neutral-hovered, #0B120E24)"
30
30
  },
31
31
  '&:active': {
32
- backgroundColor: "var(--ds-background-neutral-pressed, #091E424F)"
32
+ backgroundColor: "var(--ds-background-neutral-pressed, #080F214A)"
33
33
  }
34
34
  }),
35
35
  subtle: css({
36
36
  backgroundColor: "var(--ds-background-neutral-subtle, #00000000)",
37
37
  '&:hover': {
38
- backgroundColor: "var(--ds-background-neutral-subtle-hovered, #091E420F)"
38
+ backgroundColor: "var(--ds-background-neutral-subtle-hovered, #0515240F)"
39
39
  },
40
40
  '&:active': {
41
- backgroundColor: "var(--ds-background-neutral-subtle-pressed, #091E4224)"
41
+ backgroundColor: "var(--ds-background-neutral-subtle-pressed, #0B120E24)"
42
42
  }
43
43
  }),
44
44
  selected: css({
45
- backgroundColor: "var(--ds-background-selected, #E9F2FF)",
46
- color: "var(--ds-text-selected, #0C66E4)"
45
+ backgroundColor: "var(--ds-background-selected, #E9F2FE)",
46
+ color: "var(--ds-text-selected, #1868DB)"
47
47
  })
48
48
  };
49
49
 
@@ -1,7 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { forwardRef } from 'react';
3
3
  import DragHandleVerticalIcon from '@atlaskit/icon/core/drag-handle-vertical';
4
- import DragHandlerIcon from '@atlaskit/icon/core/migration/drag-handle-vertical--drag-handler';
5
4
  import { fg } from '@atlaskit/platform-feature-flags';
6
5
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
7
6
  import { Box, xcss } from '@atlaskit/primitives';
@@ -40,14 +39,9 @@ export const DragHandleButtonSmall = /*#__PURE__*/forwardRef(function DragHandle
40
39
  ref: ref
41
40
  }, buttonProps), /*#__PURE__*/React.createElement(Box, {
42
41
  xcss: fg('platform-component-visual-refresh') || fg('platform-visual-refresh-icons') ? iconSmallStylesNew : iconSmallStyles
43
- }, fg('platform-component-visual-refresh') ? /*#__PURE__*/React.createElement(DragHandleVerticalIcon, {
42
+ }, /*#__PURE__*/React.createElement(DragHandleVerticalIcon, {
44
43
  color: "currentColor",
45
44
  label: label,
46
45
  size: "small"
47
- }) : /*#__PURE__*/React.createElement(DragHandlerIcon, {
48
- color: "currentColor",
49
- label: label,
50
- LEGACY_size: "small",
51
- size: "small"
52
46
  })));
53
47
  });
@@ -16,7 +16,7 @@ import FocusRing from '@atlaskit/focus-ring';
16
16
  * which prevents dragging.
17
17
  */
18
18
  var buttonStyles = css({
19
- color: "var(--ds-text, #172B4D)",
19
+ color: "var(--ds-text, #292A2E)",
20
20
  borderRadius: "var(--ds-radius-small, 4px)",
21
21
  padding: "var(--ds-space-0, 0px)",
22
22
  width: 'max-content',
@@ -26,26 +26,26 @@ var buttonStyles = css({
26
26
  });
27
27
  var buttonAppearanceStyles = {
28
28
  default: css({
29
- backgroundColor: "var(--ds-background-neutral, #091E420F)",
29
+ backgroundColor: "var(--ds-background-neutral, #0515240F)",
30
30
  '&:hover': {
31
- backgroundColor: "var(--ds-background-neutral-hovered, #091E4224)"
31
+ backgroundColor: "var(--ds-background-neutral-hovered, #0B120E24)"
32
32
  },
33
33
  '&:active': {
34
- backgroundColor: "var(--ds-background-neutral-pressed, #091E424F)"
34
+ backgroundColor: "var(--ds-background-neutral-pressed, #080F214A)"
35
35
  }
36
36
  }),
37
37
  subtle: css({
38
38
  backgroundColor: "var(--ds-background-neutral-subtle, #00000000)",
39
39
  '&:hover': {
40
- backgroundColor: "var(--ds-background-neutral-subtle-hovered, #091E420F)"
40
+ backgroundColor: "var(--ds-background-neutral-subtle-hovered, #0515240F)"
41
41
  },
42
42
  '&:active': {
43
- backgroundColor: "var(--ds-background-neutral-subtle-pressed, #091E4224)"
43
+ backgroundColor: "var(--ds-background-neutral-subtle-pressed, #0B120E24)"
44
44
  }
45
45
  }),
46
46
  selected: css({
47
- backgroundColor: "var(--ds-background-selected, #E9F2FF)",
48
- color: "var(--ds-text-selected, #0C66E4)"
47
+ backgroundColor: "var(--ds-background-selected, #E9F2FE)",
48
+ color: "var(--ds-text-selected, #1868DB)"
49
49
  })
50
50
  };
51
51
 
@@ -3,7 +3,6 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  var _excluded = ["label"];
4
4
  import React, { forwardRef } from 'react';
5
5
  import DragHandleVerticalIcon from '@atlaskit/icon/core/drag-handle-vertical';
6
- import DragHandlerIcon from '@atlaskit/icon/core/migration/drag-handle-vertical--drag-handler';
7
6
  import { fg } from '@atlaskit/platform-feature-flags';
8
7
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
9
8
  import { Box, xcss } from '@atlaskit/primitives';
@@ -41,14 +40,9 @@ export var DragHandleButtonSmall = /*#__PURE__*/forwardRef(function DragHandleBu
41
40
  ref: ref
42
41
  }, buttonProps), /*#__PURE__*/React.createElement(Box, {
43
42
  xcss: fg('platform-component-visual-refresh') || fg('platform-visual-refresh-icons') ? iconSmallStylesNew : iconSmallStyles
44
- }, fg('platform-component-visual-refresh') ? /*#__PURE__*/React.createElement(DragHandleVerticalIcon, {
43
+ }, /*#__PURE__*/React.createElement(DragHandleVerticalIcon, {
45
44
  color: "currentColor",
46
45
  label: label,
47
46
  size: "small"
48
- }) : /*#__PURE__*/React.createElement(DragHandlerIcon, {
49
- color: "currentColor",
50
- label: label,
51
- LEGACY_size: "small",
52
- size: "small"
53
47
  })));
54
48
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/pragmatic-drag-and-drop-react-accessibility",
3
- "version": "2.1.5",
3
+ "version": "2.1.7",
4
4
  "description": "An optional package for Pragmatic drag and drop containing react components to assist with setting up accessible experiences",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,10 +34,10 @@
34
34
  "atlaskit:src": "src/index.tsx",
35
35
  "dependencies": {
36
36
  "@atlaskit/focus-ring": "^3.0.0",
37
- "@atlaskit/icon": "^28.5.0",
37
+ "@atlaskit/icon": "^29.3.0",
38
38
  "@atlaskit/platform-feature-flags": "^1.1.0",
39
- "@atlaskit/primitives": "^16.1.0",
40
- "@atlaskit/tokens": "^8.0.0",
39
+ "@atlaskit/primitives": "^16.4.0",
40
+ "@atlaskit/tokens": "^8.6.0",
41
41
  "@babel/runtime": "^7.0.0",
42
42
  "@emotion/react": "^11.7.1"
43
43
  },
@@ -46,9 +46,9 @@
46
46
  },
47
47
  "devDependencies": {
48
48
  "@af/visual-regression": "workspace:^",
49
- "@atlaskit/ds-lib": "^5.2.0",
49
+ "@atlaskit/ds-lib": "^5.3.0",
50
50
  "@atlassian/ssr-tests": "workspace:^",
51
- "@testing-library/react": "^13.4.0",
51
+ "@testing-library/react": "^16.3.0",
52
52
  "react-dom": "^18.2.0",
53
53
  "wait-for-expect": "^1.2.0"
54
54
  },