@atlaskit/util-data-test 17.11.6 → 17.12.0

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,12 @@
1
1
  # @atlaskit/util-data-test
2
2
 
3
+ ## 17.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`d4e1da5230f3a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d4e1da5230f3a) -
8
+ [ux] Enable new icons behind a feature flag.
9
+
3
10
  ## 17.11.6
4
11
 
5
12
  ### Patch Changes
@@ -29,6 +29,9 @@
29
29
  {
30
30
  "path": "../../mention/afm-cc/tsconfig.json"
31
31
  },
32
+ {
33
+ "path": "../../../design-system/primitives/afm-cc/tsconfig.json"
34
+ },
32
35
  {
33
36
  "path": "../../../people-and-teams/profilecard/afm-cc/tsconfig.json"
34
37
  },
@@ -29,6 +29,9 @@
29
29
  {
30
30
  "path": "../../mention/afm-jira/tsconfig.json"
31
31
  },
32
+ {
33
+ "path": "../../../design-system/primitives/afm-jira/tsconfig.json"
34
+ },
32
35
  {
33
36
  "path": "../../../people-and-teams/profilecard/afm-jira/tsconfig.json"
34
37
  },
@@ -29,6 +29,9 @@
29
29
  {
30
30
  "path": "../../mention/afm-post-office/tsconfig.json"
31
31
  },
32
+ {
33
+ "path": "../../../design-system/primitives/afm-post-office/tsconfig.json"
34
+ },
32
35
  {
33
36
  "path": "../../../people-and-teams/profilecard/afm-post-office/tsconfig.json"
34
37
  },
@@ -1,25 +1,25 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ var _typeof = require("@babel/runtime/helpers/typeof");
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
7
8
  exports.default = void 0;
8
9
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
9
- var _react = require("react");
10
- var _react2 = require("@emotion/react");
11
- var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-right"));
10
+ var _react = _interopRequireWildcard(require("react"));
11
+ var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-right"));
12
+ var _primitives = require("@atlaskit/primitives");
12
13
  var _colors = require("@atlaskit/theme/colors");
13
- /**
14
- * @jsxRuntime classic
15
- * @jsx jsx
16
- */
17
-
18
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
19
-
20
- var wrapper = (0, _react2.css)({
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); }
15
+ 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 && {}.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; }
16
+ var containerStyles = (0, _primitives.xcss)({
21
17
  display: 'flex'
22
18
  });
19
+ var iconWrapperStyles = (0, _primitives.xcss)({
20
+ marginTop: 'space.050',
21
+ marginLeft: 'space.050'
22
+ });
23
23
  var _default = exports.default = function _default() {
24
24
  var _useState = (0, _react.useState)(false),
25
25
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
@@ -31,14 +31,18 @@ var _default = exports.default = function _default() {
31
31
  var onMouseLeave = (0, _react.useCallback)(function () {
32
32
  return setHoverState(false);
33
33
  }, [setHoverState]);
34
- return (0, _react2.jsx)("div", {
35
- css: wrapper,
34
+ return /*#__PURE__*/_react.default.createElement(_primitives.Box, {
35
+ xcss: containerStyles,
36
36
  onMouseEnter: onMouseEnter,
37
37
  onMouseLeave: onMouseLeave
38
- }, (0, _react2.jsx)(_chevronRight.default, {
38
+ }, /*#__PURE__*/_react.default.createElement(_primitives.Box, {
39
+ xcss: iconWrapperStyles
40
+ }, /*#__PURE__*/_react.default.createElement(_chevronRight.default, {
41
+ LEGACY_margin: "var(--ds-space-negative-050, -4px)".concat(" 0 0 ", "var(--ds-space-negative-050, -4px)"),
39
42
  testId: "chevron-right-icon",
40
43
  label: "chevron right",
41
- size: "large",
42
- primaryColor: "var(--ds-text-subtlest, ".concat(isMouseHovered ? _colors.N200 : _colors.N50, ")")
43
- }));
44
+ LEGACY_size: "large",
45
+ color: "var(--ds-text-subtlest, ".concat(isMouseHovered ? _colors.N200 : _colors.N50, ")"),
46
+ spacing: "spacious"
47
+ })));
44
48
  };
@@ -1,27 +1,30 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { useCallback, useState } from 'react';
6
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
- import { css, jsx } from '@emotion/react';
8
- import ChevronRightIcon from '@atlaskit/icon/glyph/chevron-right';
1
+ import React, { useCallback, useState } from 'react';
2
+ import ChevronRightIcon from '@atlaskit/icon/utility/migration/chevron-right';
3
+ import { Box, xcss } from '@atlaskit/primitives';
9
4
  import { N50, N200 } from '@atlaskit/theme/colors';
10
- const wrapper = css({
5
+ const containerStyles = xcss({
11
6
  display: 'flex'
12
7
  });
8
+ const iconWrapperStyles = xcss({
9
+ marginTop: 'space.050',
10
+ marginLeft: 'space.050'
11
+ });
13
12
  export default (() => {
14
13
  const [isMouseHovered, setHoverState] = useState(false);
15
14
  const onMouseEnter = useCallback(() => setHoverState(true), [setHoverState]);
16
15
  const onMouseLeave = useCallback(() => setHoverState(false), [setHoverState]);
17
- return jsx("div", {
18
- css: wrapper,
16
+ return /*#__PURE__*/React.createElement(Box, {
17
+ xcss: containerStyles,
19
18
  onMouseEnter: onMouseEnter,
20
19
  onMouseLeave: onMouseLeave
21
- }, jsx(ChevronRightIcon, {
20
+ }, /*#__PURE__*/React.createElement(Box, {
21
+ xcss: iconWrapperStyles
22
+ }, /*#__PURE__*/React.createElement(ChevronRightIcon, {
23
+ LEGACY_margin: `${"var(--ds-space-negative-050, -4px)"} 0 0 ${"var(--ds-space-negative-050, -4px)"}`,
22
24
  testId: "chevron-right-icon",
23
25
  label: "chevron right",
24
- size: "large",
25
- primaryColor: `var(--ds-text-subtlest, ${isMouseHovered ? N200 : N50})`
26
- }));
26
+ LEGACY_size: "large",
27
+ color: `var(--ds-text-subtlest, ${isMouseHovered ? N200 : N50})`,
28
+ spacing: "spacious"
29
+ })));
27
30
  });
@@ -1,16 +1,15 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- /**
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
6
- import { useCallback, useState } from 'react';
7
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
- import { css, jsx } from '@emotion/react';
9
- import ChevronRightIcon from '@atlaskit/icon/glyph/chevron-right';
2
+ import React, { useCallback, useState } from 'react';
3
+ import ChevronRightIcon from '@atlaskit/icon/utility/migration/chevron-right';
4
+ import { Box, xcss } from '@atlaskit/primitives';
10
5
  import { N50, N200 } from '@atlaskit/theme/colors';
11
- var wrapper = css({
6
+ var containerStyles = xcss({
12
7
  display: 'flex'
13
8
  });
9
+ var iconWrapperStyles = xcss({
10
+ marginTop: 'space.050',
11
+ marginLeft: 'space.050'
12
+ });
14
13
  export default (function () {
15
14
  var _useState = useState(false),
16
15
  _useState2 = _slicedToArray(_useState, 2),
@@ -22,14 +21,18 @@ export default (function () {
22
21
  var onMouseLeave = useCallback(function () {
23
22
  return setHoverState(false);
24
23
  }, [setHoverState]);
25
- return jsx("div", {
26
- css: wrapper,
24
+ return /*#__PURE__*/React.createElement(Box, {
25
+ xcss: containerStyles,
27
26
  onMouseEnter: onMouseEnter,
28
27
  onMouseLeave: onMouseLeave
29
- }, jsx(ChevronRightIcon, {
28
+ }, /*#__PURE__*/React.createElement(Box, {
29
+ xcss: iconWrapperStyles
30
+ }, /*#__PURE__*/React.createElement(ChevronRightIcon, {
31
+ LEGACY_margin: "var(--ds-space-negative-050, -4px)".concat(" 0 0 ", "var(--ds-space-negative-050, -4px)"),
30
32
  testId: "chevron-right-icon",
31
33
  label: "chevron right",
32
- size: "large",
33
- primaryColor: "var(--ds-text-subtlest, ".concat(isMouseHovered ? N200 : N50, ")")
34
- }));
34
+ LEGACY_size: "large",
35
+ color: "var(--ds-text-subtlest, ".concat(isMouseHovered ? N200 : N50, ")"),
36
+ spacing: "spacious"
37
+ })));
35
38
  });
@@ -1,3 +1,3 @@
1
- import { jsx } from '@emotion/react';
2
- declare const _default: () => jsx.JSX.Element;
1
+ /// <reference types="react" />
2
+ declare const _default: () => JSX.Element;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- import { jsx } from '@emotion/react';
2
- declare const _default: () => jsx.JSX.Element;
1
+ /// <reference types="react" />
2
+ declare const _default: () => JSX.Element;
3
3
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/util-data-test",
3
- "version": "17.11.6",
3
+ "version": "17.12.0",
4
4
  "description": "Shared test and story data",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -70,13 +70,13 @@
70
70
  "@atlaskit/emoji": "67.9.0",
71
71
  "@atlaskit/icon": "^22.24.0",
72
72
  "@atlaskit/mention": "23.3.3",
73
+ "@atlaskit/primitives": "^13.0.0",
73
74
  "@atlaskit/profilecard": "^20.8.0",
74
75
  "@atlaskit/theme": "^14.0.0",
75
- "@atlaskit/tokens": "^2.0.0",
76
+ "@atlaskit/tokens": "^2.1.0",
76
77
  "@atlaskit/user-picker": "10.26.4",
77
78
  "@atlaskit/util-service-support": "^6.2.0",
78
79
  "@babel/runtime": "^7.0.0",
79
- "@emotion/react": "^11.7.1",
80
80
  "lodash": "^4.17.21",
81
81
  "memoize-one": "^6.0.0",
82
82
  "uuid": "^3.1.0"
package/.eslintrc.js DELETED
@@ -1,6 +0,0 @@
1
- module.exports = {
2
- rules: {
3
- // We're using relative imports on test utility packages to avoid circular dependencies
4
- '@atlassian/tangerine/import/no-relative-package-imports': 'off',
5
- },
6
- };