@atlaskit/atlassian-navigation 5.5.4 → 5.6.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,22 @@
1
1
  # @atlaskit/atlassian-navigation
2
2
 
3
+ ## 5.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 5.6.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`87b12e64ff750`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/87b12e64ff750) -
14
+ Removed usages of LEGACY icon props
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 5.5.4
4
21
 
5
22
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": "../../../../tsconfig.entry-points.confluence.json",
2
+ "extends": "../../../../tsconfig.local-consumption.json",
3
3
  "compilerOptions": {
4
4
  "declaration": true,
5
5
  "target": "es5",
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": "../../../../tsconfig.entry-points.products.json",
2
+ "extends": "../../../../tsconfig.local-consumption.json",
3
3
  "compilerOptions": {
4
4
  "declaration": true,
5
5
  "target": "es5",
@@ -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 _questionCircle = _interopRequireDefault(require("@atlaskit/icon/core/question-circle"));
13
- var _theme = require("../../theme");
14
13
  var _BadgeContainer = require("../BadgeContainer");
15
14
  var _IconButton = require("../IconButton");
16
15
  var _excluded = ["badge", "component", "href", "id", "isDisabled", "isSelected", "label", "onBlur", "onClick", "onFocus", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp", "target", "testId", "tooltip"];
@@ -44,16 +43,13 @@ var Help = exports.Help = /*#__PURE__*/(0, _react.forwardRef)(function (props, r
44
43
  testId = props.testId,
45
44
  tooltip = props.tooltip,
46
45
  rest = (0, _objectWithoutProperties2.default)(props, _excluded);
47
- var _useTheme = (0, _theme.useTheme)(),
48
- navigation = _useTheme.mode.navigation;
49
46
  var button = /*#__PURE__*/_react.default.createElement(_IconButton.IconButton, (0, _extends2.default)({
50
47
  component: component,
51
48
  href: href,
52
49
  icon: /*#__PURE__*/_react.default.createElement(_questionCircle.default, {
53
50
  label: typeof tooltip === 'string' ? tooltip : 'Help Icon',
54
51
  color: "currentColor",
55
- spacing: "spacious",
56
- LEGACY_secondaryColor: navigation.backgroundColor
52
+ spacing: "spacious"
57
53
  }),
58
54
  id: id,
59
55
  isDisabled: isDisabled,
@@ -59,7 +59,7 @@ var searchInputStyles = (0, _react2.css)({
59
59
  borderRadius: "var(--ds-radius-large, 6px)",
60
60
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
61
61
  color: "var(".concat(_constants.varSearchColor, ")"),
62
- font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
62
+ font: "var(--ds-font-body, normal 400 14px/20px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
63
63
  outline: 'none',
64
64
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
65
65
  '::placeholder': {
@@ -21,7 +21,7 @@ var skeletonCreateButtonStyles = (0, _react2.css)({
21
21
  alignSelf: 'center',
22
22
  border: 0,
23
23
  borderRadius: "var(--ds-radius-small, 3px)",
24
- font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
24
+ font: "var(--ds-font-body, normal 400 14px/20px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
25
25
  fontWeight: "var(--ds-font-weight-medium, 500)",
26
26
  pointerEvents: 'none',
27
27
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
@@ -23,7 +23,7 @@ var primaryButtonSkeletonStyles = (0, _react2.css)({
23
23
  position: 'relative',
24
24
  appearance: 'none',
25
25
  border: 0,
26
- font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
26
+ font: "var(--ds-font-body, normal 400 14px/20px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
27
27
  fontWeight: "var(--ds-font-weight-medium, 500)",
28
28
  pointerEvents: 'none',
29
29
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
@@ -8,7 +8,6 @@ exports.SkeletonHelpButton = exports.Nav4SkeletonHelpButton = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _questionCircle = _interopRequireDefault(require("@atlaskit/icon/core/question-circle"));
10
10
  var _SkeletonIconButton = require("./components/SkeletonIconButton");
11
- var _theme = require("./theme");
12
11
  /**
13
12
  * __Skeleton notification button__
14
13
  *
@@ -22,12 +21,9 @@ var _theme = require("./theme");
22
21
  var SkeletonHelpButton = exports.SkeletonHelpButton = function SkeletonHelpButton(_ref) {
23
22
  var _ref$label = _ref.label,
24
23
  label = _ref$label === void 0 ? '' : _ref$label;
25
- var _useTheme = (0, _theme.useTheme)(),
26
- navigation = _useTheme.mode.navigation;
27
24
  return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(_questionCircle.default, {
28
25
  label: label,
29
- color: "currentColor",
30
- LEGACY_secondaryColor: navigation.backgroundColor
26
+ color: "currentColor"
31
27
  }));
32
28
  };
33
29
 
@@ -1,7 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { forwardRef } from 'react';
3
3
  import QuestionCircleIcon from '@atlaskit/icon/core/question-circle';
4
- import { useTheme } from '../../theme';
5
4
  import { BadgeContainer } from '../BadgeContainer';
6
5
  import { IconButton } from '../IconButton';
7
6
  const HELP_NOTIFICATION_BADGE_ID = 'atlassian-navigation-help-notification-count';
@@ -35,19 +34,13 @@ export const Help = /*#__PURE__*/forwardRef((props, ref) => {
35
34
  tooltip,
36
35
  ...rest
37
36
  } = props;
38
- const {
39
- mode: {
40
- navigation
41
- }
42
- } = useTheme();
43
37
  const button = /*#__PURE__*/React.createElement(IconButton, _extends({
44
38
  component: component,
45
39
  href: href,
46
40
  icon: /*#__PURE__*/React.createElement(QuestionCircleIcon, {
47
41
  label: typeof tooltip === 'string' ? tooltip : 'Help Icon',
48
42
  color: "currentColor",
49
- spacing: "spacious",
50
- LEGACY_secondaryColor: navigation.backgroundColor
43
+ spacing: "spacious"
51
44
  }),
52
45
  id: id,
53
46
  isDisabled: isDisabled,
@@ -50,7 +50,7 @@ const searchInputStyles = css({
50
50
  borderRadius: "var(--ds-radius-large, 6px)",
51
51
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
52
52
  color: `var(${varSearchColor})`,
53
- font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
53
+ font: "var(--ds-font-body, normal 400 14px/20px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
54
54
  outline: 'none',
55
55
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
56
56
  '::placeholder': {
@@ -13,7 +13,7 @@ const skeletonCreateButtonStyles = css({
13
13
  alignSelf: 'center',
14
14
  border: 0,
15
15
  borderRadius: "var(--ds-radius-small, 3px)",
16
- font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
16
+ font: "var(--ds-font-body, normal 400 14px/20px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
17
17
  fontWeight: "var(--ds-font-weight-medium, 500)",
18
18
  pointerEvents: 'none',
19
19
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
@@ -16,7 +16,7 @@ const primaryButtonSkeletonStyles = css({
16
16
  position: 'relative',
17
17
  appearance: 'none',
18
18
  border: 0,
19
- font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
19
+ font: "var(--ds-font-body, normal 400 14px/20px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
20
20
  fontWeight: "var(--ds-font-weight-medium, 500)",
21
21
  pointerEvents: 'none',
22
22
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import QuestionCircleIcon from '@atlaskit/icon/core/question-circle';
3
3
  import { SkeletonIconButton } from './components/SkeletonIconButton';
4
- import { useTheme } from './theme';
5
4
  /**
6
5
  * __Skeleton notification button__
7
6
  *
@@ -15,15 +14,9 @@ import { useTheme } from './theme';
15
14
  export const SkeletonHelpButton = ({
16
15
  label = ''
17
16
  }) => {
18
- const {
19
- mode: {
20
- navigation
21
- }
22
- } = useTheme();
23
17
  return /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(QuestionCircleIcon, {
24
18
  label: label,
25
- color: "currentColor",
26
- LEGACY_secondaryColor: navigation.backgroundColor
19
+ color: "currentColor"
27
20
  }));
28
21
  };
29
22
 
@@ -3,7 +3,6 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  var _excluded = ["badge", "component", "href", "id", "isDisabled", "isSelected", "label", "onBlur", "onClick", "onFocus", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp", "target", "testId", "tooltip"];
4
4
  import React, { forwardRef } from 'react';
5
5
  import QuestionCircleIcon from '@atlaskit/icon/core/question-circle';
6
- import { useTheme } from '../../theme';
7
6
  import { BadgeContainer } from '../BadgeContainer';
8
7
  import { IconButton } from '../IconButton';
9
8
  var HELP_NOTIFICATION_BADGE_ID = 'atlassian-navigation-help-notification-count';
@@ -35,16 +34,13 @@ export var Help = /*#__PURE__*/forwardRef(function (props, ref) {
35
34
  testId = props.testId,
36
35
  tooltip = props.tooltip,
37
36
  rest = _objectWithoutProperties(props, _excluded);
38
- var _useTheme = useTheme(),
39
- navigation = _useTheme.mode.navigation;
40
37
  var button = /*#__PURE__*/React.createElement(IconButton, _extends({
41
38
  component: component,
42
39
  href: href,
43
40
  icon: /*#__PURE__*/React.createElement(QuestionCircleIcon, {
44
41
  label: typeof tooltip === 'string' ? tooltip : 'Help Icon',
45
42
  color: "currentColor",
46
- spacing: "spacious",
47
- LEGACY_secondaryColor: navigation.backgroundColor
43
+ spacing: "spacious"
48
44
  }),
49
45
  id: id,
50
46
  isDisabled: isDisabled,
@@ -51,7 +51,7 @@ var searchInputStyles = css({
51
51
  borderRadius: "var(--ds-radius-large, 6px)",
52
52
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
53
53
  color: "var(".concat(varSearchColor, ")"),
54
- font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
54
+ font: "var(--ds-font-body, normal 400 14px/20px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
55
55
  outline: 'none',
56
56
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
57
57
  '::placeholder': {
@@ -13,7 +13,7 @@ var skeletonCreateButtonStyles = css({
13
13
  alignSelf: 'center',
14
14
  border: 0,
15
15
  borderRadius: "var(--ds-radius-small, 3px)",
16
- font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
16
+ font: "var(--ds-font-body, normal 400 14px/20px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
17
17
  fontWeight: "var(--ds-font-weight-medium, 500)",
18
18
  pointerEvents: 'none',
19
19
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
@@ -19,7 +19,7 @@ var primaryButtonSkeletonStyles = css({
19
19
  position: 'relative',
20
20
  appearance: 'none',
21
21
  border: 0,
22
- font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
22
+ font: "var(--ds-font-body, normal 400 14px/20px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
23
23
  fontWeight: "var(--ds-font-weight-medium, 500)",
24
24
  pointerEvents: 'none',
25
25
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import QuestionCircleIcon from '@atlaskit/icon/core/question-circle';
3
3
  import { SkeletonIconButton } from './components/SkeletonIconButton';
4
- import { useTheme } from './theme';
5
4
  /**
6
5
  * __Skeleton notification button__
7
6
  *
@@ -15,12 +14,9 @@ import { useTheme } from './theme';
15
14
  export var SkeletonHelpButton = function SkeletonHelpButton(_ref) {
16
15
  var _ref$label = _ref.label,
17
16
  label = _ref$label === void 0 ? '' : _ref$label;
18
- var _useTheme = useTheme(),
19
- navigation = _useTheme.mode.navigation;
20
17
  return /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(QuestionCircleIcon, {
21
18
  label: label,
22
- color: "currentColor",
23
- LEGACY_secondaryColor: navigation.backgroundColor
19
+ color: "currentColor"
24
20
  }));
25
21
  };
26
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "5.5.4",
3
+ "version": "5.6.1",
4
4
  "description": "A horizontal navigation component for Atlassian apps.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -39,13 +39,13 @@
39
39
  "@atlaskit/analytics-namespaced-context": "^7.2.0",
40
40
  "@atlaskit/button": "^23.9.0",
41
41
  "@atlaskit/ds-lib": "^5.3.0",
42
- "@atlaskit/icon": "^29.3.0",
43
- "@atlaskit/logo": "^19.9.0",
44
- "@atlaskit/popup": "^4.11.0",
45
- "@atlaskit/primitives": "^17.0.0",
42
+ "@atlaskit/icon": "^29.4.0",
43
+ "@atlaskit/logo": "^19.10.0",
44
+ "@atlaskit/popup": "^4.13.0",
45
+ "@atlaskit/primitives": "^17.1.0",
46
46
  "@atlaskit/theme": "^21.0.0",
47
- "@atlaskit/tokens": "^9.1.0",
48
- "@atlaskit/tooltip": "^20.11.0",
47
+ "@atlaskit/tokens": "^10.0.0",
48
+ "@atlaskit/tooltip": "^20.14.0",
49
49
  "@atlaskit/width-detector": "^5.0.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@emotion/react": "^11.7.1",
@@ -61,22 +61,21 @@
61
61
  "@af/visual-regression": "workspace:^",
62
62
  "@atlaskit/analytics-next": "^11.1.0",
63
63
  "@atlaskit/atlassian-notifications": "^0.8.0",
64
- "@atlaskit/avatar": "^25.6.0",
64
+ "@atlaskit/avatar": "^25.7.0",
65
65
  "@atlaskit/badge": "^18.3.0",
66
- "@atlaskit/docs": "^11.2.0",
66
+ "@atlaskit/docs": "^11.3.0",
67
67
  "@atlaskit/drawer": "^11.0.0",
68
68
  "@atlaskit/dropdown-menu": "^16.4.0",
69
- "@atlaskit/form": "^15.2.0",
69
+ "@atlaskit/form": "^15.3.0",
70
70
  "@atlaskit/menu": "^8.4.0",
71
71
  "@atlaskit/notification-indicator": "^10.0.0",
72
72
  "@atlaskit/notification-log-client": "^6.4.0",
73
- "@atlaskit/section-message": "^8.11.0",
73
+ "@atlaskit/section-message": "^8.12.0",
74
74
  "@atlaskit/spinner": "^19.0.0",
75
75
  "@atlaskit/textfield": "^8.2.0",
76
- "@atlassian/switcher": "^45.0.0",
76
+ "@atlassian/switcher": "^45.1.0",
77
77
  "@atlassian/switcher-test-utils": "^8.0.0",
78
- "@testing-library/react": "^13.4.0",
79
- "@testing-library/react-hooks": "^8.0.1",
78
+ "@testing-library/react": "^16.3.0",
80
79
  "@testing-library/user-event": "^14.4.3",
81
80
  "jest-emotion": "^10.0.32",
82
81
  "react": "^18.2.0",
@@ -1,23 +0,0 @@
1
- {
2
- "extends": "../tsconfig",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "paths": {}
7
- },
8
- "include": [
9
- "../src/**/*.ts",
10
- "../src/**/*.tsx"
11
- ],
12
- "exclude": [
13
- "../src/**/__tests__/*",
14
- "../src/**/*.test.*",
15
- "../src/**/test.*",
16
- "../src/**/examples.*",
17
- "../src/**/examples/*",
18
- "../src/**/examples/**/*",
19
- "../src/**/*.stories.*",
20
- "../src/**/stories/*",
21
- "../src/**/stories/**/*"
22
- ]
23
- }