@atlaskit/atlassian-navigation 5.5.4 → 5.6.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 +11 -0
- package/dist/cjs/components/Help/index.js +1 -5
- package/dist/cjs/skeleton-help-button.js +1 -5
- package/dist/es2019/components/Help/index.js +1 -8
- package/dist/es2019/skeleton-help-button.js +1 -8
- package/dist/esm/components/Help/index.js +1 -5
- package/dist/esm/skeleton-help-button.js +1 -5
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/atlassian-navigation
|
|
2
2
|
|
|
3
|
+
## 5.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`87b12e64ff750`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/87b12e64ff750) -
|
|
8
|
+
Removed usages of LEGACY icon props
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 5.5.4
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -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,
|
|
@@ -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,
|
|
@@ -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,
|
|
@@ -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.
|
|
3
|
+
"version": "5.6.0",
|
|
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.
|
|
42
|
+
"@atlaskit/icon": "^29.4.0",
|
|
43
43
|
"@atlaskit/logo": "^19.9.0",
|
|
44
|
-
"@atlaskit/popup": "^4.
|
|
44
|
+
"@atlaskit/popup": "^4.13.0",
|
|
45
45
|
"@atlaskit/primitives": "^17.0.0",
|
|
46
46
|
"@atlaskit/theme": "^21.0.0",
|
|
47
47
|
"@atlaskit/tokens": "^9.1.0",
|
|
48
|
-
"@atlaskit/tooltip": "^20.
|
|
48
|
+
"@atlaskit/tooltip": "^20.12.0",
|
|
49
49
|
"@atlaskit/width-detector": "^5.0.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"@emotion/react": "^11.7.1",
|
|
@@ -61,19 +61,19 @@
|
|
|
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.
|
|
64
|
+
"@atlaskit/avatar": "^25.7.0",
|
|
65
65
|
"@atlaskit/badge": "^18.3.0",
|
|
66
66
|
"@atlaskit/docs": "^11.2.0",
|
|
67
67
|
"@atlaskit/drawer": "^11.0.0",
|
|
68
68
|
"@atlaskit/dropdown-menu": "^16.4.0",
|
|
69
|
-
"@atlaskit/form": "^15.
|
|
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.
|
|
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.
|
|
76
|
+
"@atlassian/switcher": "^45.1.0",
|
|
77
77
|
"@atlassian/switcher-test-utils": "^8.0.0",
|
|
78
78
|
"@testing-library/react": "^13.4.0",
|
|
79
79
|
"@testing-library/react-hooks": "^8.0.1",
|