@atlaskit/atlassian-navigation 4.7.5 → 4.8.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 +14 -0
- package/afm-cc/tsconfig.json +1 -2
- package/dist/cjs/components/AppSwitcher/index.js +3 -1
- package/dist/cjs/components/Create/index.js +4 -2
- package/dist/cjs/components/Help/index.js +4 -2
- package/dist/cjs/components/Notifications/index.js +3 -1
- package/dist/cjs/components/PrimaryDropdownButton/index.js +7 -13
- package/dist/cjs/components/Search/index.js +5 -1
- package/dist/cjs/components/Settings/index.js +3 -1
- package/dist/cjs/components/SignIn/index.js +4 -2
- package/dist/cjs/skeleton-help-button.js +7 -5
- package/dist/cjs/skeleton-notification-button.js +6 -4
- package/dist/cjs/skeleton-settings-button.js +6 -4
- package/dist/cjs/skeleton-switcher-button.js +4 -1
- package/dist/es2019/components/AppSwitcher/index.js +3 -1
- package/dist/es2019/components/Create/index.js +3 -1
- package/dist/es2019/components/Help/index.js +4 -2
- package/dist/es2019/components/Notifications/index.js +3 -1
- package/dist/es2019/components/PrimaryDropdownButton/index.js +5 -11
- package/dist/es2019/components/Search/index.js +5 -1
- package/dist/es2019/components/Settings/index.js +3 -1
- package/dist/es2019/components/SignIn/index.js +4 -2
- package/dist/es2019/skeleton-help-button.js +4 -2
- package/dist/es2019/skeleton-notification-button.js +3 -1
- package/dist/es2019/skeleton-settings-button.js +3 -1
- package/dist/es2019/skeleton-switcher-button.js +4 -1
- package/dist/esm/components/AppSwitcher/index.js +3 -1
- package/dist/esm/components/Create/index.js +3 -1
- package/dist/esm/components/Help/index.js +4 -2
- package/dist/esm/components/Notifications/index.js +3 -1
- package/dist/esm/components/PrimaryDropdownButton/index.js +5 -11
- package/dist/esm/components/Search/index.js +5 -1
- package/dist/esm/components/Settings/index.js +3 -1
- package/dist/esm/components/SignIn/index.js +4 -2
- package/dist/esm/skeleton-help-button.js +4 -2
- package/dist/esm/skeleton-notification-button.js +3 -1
- package/dist/esm/skeleton-settings-button.js +3 -1
- package/dist/esm/skeleton-switcher-button.js +4 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/atlassian-navigation
|
|
2
2
|
|
|
3
|
+
## 4.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#157307](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/157307)
|
|
8
|
+
[`a1e80ec0a5e4a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a1e80ec0a5e4a) -
|
|
9
|
+
Enable new icons behind a feature flag.
|
|
10
|
+
|
|
11
|
+
## 4.7.6
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 4.7.5
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -10,7 +10,7 @@ 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 _appSwitcher = _interopRequireDefault(require("@atlaskit/icon/core/app-switcher"));
|
|
13
|
-
var _appSwitcher2 = _interopRequireDefault(require("@atlaskit/icon/
|
|
13
|
+
var _appSwitcher2 = _interopRequireDefault(require("@atlaskit/icon/core/migration/app-switcher"));
|
|
14
14
|
var _IconButton = require("../IconButton");
|
|
15
15
|
var _excluded = ["tooltip"],
|
|
16
16
|
_excluded2 = ["tooltip"];
|
|
@@ -30,6 +30,8 @@ var AppSwitcher = exports.AppSwitcher = /*#__PURE__*/(0, _react.forwardRef)(func
|
|
|
30
30
|
iconButtonProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
31
31
|
return /*#__PURE__*/_react.default.createElement(_IconButton.IconButton, (0, _extends2.default)({
|
|
32
32
|
icon: /*#__PURE__*/_react.default.createElement(_appSwitcher2.default, {
|
|
33
|
+
color: "currentColor",
|
|
34
|
+
spacing: "spacious",
|
|
33
35
|
label: typeof tooltip === 'string' ? tooltip : 'Switch apps'
|
|
34
36
|
}),
|
|
35
37
|
tooltip: tooltip,
|
|
@@ -9,7 +9,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _react = require("react");
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
11
|
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
12
|
-
var
|
|
12
|
+
var _addEditorAdd = _interopRequireDefault(require("@atlaskit/icon/core/migration/add--editor-add"));
|
|
13
13
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
14
14
|
var _constants = require("../../common/constants");
|
|
15
15
|
var _theme = require("../../theme");
|
|
@@ -86,7 +86,9 @@ var Create = exports.Create = function Create(_ref2) {
|
|
|
86
86
|
}, text)), (0, _react2.jsx)(_IconButton.IconButton, {
|
|
87
87
|
id: "createGlobalItemIconButton",
|
|
88
88
|
testId: testId && "".concat(testId, "-icon-button"),
|
|
89
|
-
icon: (0, _react2.jsx)(
|
|
89
|
+
icon: (0, _react2.jsx)(_addEditorAdd.default, {
|
|
90
|
+
color: "currentColor",
|
|
91
|
+
spacing: "spacious",
|
|
90
92
|
label: text
|
|
91
93
|
}),
|
|
92
94
|
onClick: onClick,
|
|
@@ -9,7 +9,7 @@ exports.default = exports.Help = void 0;
|
|
|
9
9
|
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
|
-
var _questionCircle = _interopRequireDefault(require("@atlaskit/icon/
|
|
12
|
+
var _questionCircle = _interopRequireDefault(require("@atlaskit/icon/core/migration/question-circle"));
|
|
13
13
|
var _theme = require("../../theme");
|
|
14
14
|
var _BadgeContainer = require("../BadgeContainer");
|
|
15
15
|
var _IconButton = require("../IconButton");
|
|
@@ -35,7 +35,9 @@ var Help = exports.Help = /*#__PURE__*/(0, _react.forwardRef)(function (props, r
|
|
|
35
35
|
var button = /*#__PURE__*/_react.default.createElement(_IconButton.IconButton, (0, _extends2.default)({
|
|
36
36
|
icon: /*#__PURE__*/_react.default.createElement(_questionCircle.default, {
|
|
37
37
|
label: typeof tooltip === 'string' ? tooltip : 'Help Icon',
|
|
38
|
-
|
|
38
|
+
color: "currentColor",
|
|
39
|
+
spacing: "spacious",
|
|
40
|
+
LEGACY_secondaryColor: navigation.backgroundColor
|
|
39
41
|
}),
|
|
40
42
|
ref: ref,
|
|
41
43
|
tooltip: tooltip
|
|
@@ -9,7 +9,7 @@ exports.default = exports.Notifications = void 0;
|
|
|
9
9
|
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
|
-
var _notification = _interopRequireDefault(require("@atlaskit/icon/
|
|
12
|
+
var _notification = _interopRequireDefault(require("@atlaskit/icon/core/migration/notification"));
|
|
13
13
|
var _BadgeContainer = require("../BadgeContainer");
|
|
14
14
|
var _IconButton = require("../IconButton");
|
|
15
15
|
var _excluded = ["badge", "tooltip"];
|
|
@@ -36,6 +36,8 @@ var Notifications = exports.Notifications = /*#__PURE__*/(0, _react.forwardRef)(
|
|
|
36
36
|
role: "listitem"
|
|
37
37
|
}, /*#__PURE__*/_react.default.createElement(_IconButton.IconButton, (0, _extends2.default)({
|
|
38
38
|
icon: /*#__PURE__*/_react.default.createElement(_notification.default, {
|
|
39
|
+
spacing: "spacious",
|
|
40
|
+
color: "currentColor",
|
|
39
41
|
label: typeof tooltip === 'string' ? tooltip : 'Notification Icon'
|
|
40
42
|
}),
|
|
41
43
|
tooltip: tooltip,
|
|
@@ -8,10 +8,9 @@ exports.default = exports.PrimaryDropdownButton = void 0;
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _react = require("react");
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
|
-
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/
|
|
12
|
-
var _chevronDown2 = _interopRequireDefault(require("@atlaskit/icon/utility/chevron-down"));
|
|
11
|
+
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/utility/chevron-down"));
|
|
12
|
+
var _chevronDown2 = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-down"));
|
|
13
13
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
|
-
var _primitives = require("@atlaskit/primitives");
|
|
15
14
|
var _PrimaryButton = require("../PrimaryButton");
|
|
16
15
|
/**
|
|
17
16
|
* @jsxRuntime classic
|
|
@@ -20,10 +19,6 @@ var _PrimaryButton = require("../PrimaryButton");
|
|
|
20
19
|
|
|
21
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
21
|
|
|
23
|
-
var chevronIconStylesWithSpacingFixStyles = (0, _primitives.xcss)({
|
|
24
|
-
marginInlineEnd: 'space.negative.050'
|
|
25
|
-
});
|
|
26
|
-
|
|
27
22
|
/**
|
|
28
23
|
* __Primary dropdown button__
|
|
29
24
|
*
|
|
@@ -35,15 +30,14 @@ var chevronIconStylesWithSpacingFixStyles = (0, _primitives.xcss)({
|
|
|
35
30
|
*/
|
|
36
31
|
var PrimaryDropdownButton = exports.PrimaryDropdownButton = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
37
32
|
return (0, _react2.jsx)(_PrimaryButton.PrimaryButton, (0, _extends2.default)({
|
|
38
|
-
iconAfter: (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') ? (0, _react2.jsx)(
|
|
33
|
+
iconAfter: (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') ? (0, _react2.jsx)(_chevronDown.default, {
|
|
39
34
|
label: "",
|
|
40
35
|
color: "currentColor"
|
|
41
|
-
}) : (0, _react2.jsx)(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}, (0, _react2.jsx)(_chevronDown.default, {
|
|
36
|
+
}) : (0, _react2.jsx)(_chevronDown2.default, {
|
|
37
|
+
LEGACY_margin: "0 ".concat("var(--ds-space-negative-050, -4px)", " 0 ", "var(--ds-space-negative-100, -8px)"),
|
|
38
|
+
color: "currentColor",
|
|
45
39
|
label: ""
|
|
46
|
-
})
|
|
40
|
+
}),
|
|
47
41
|
ref: ref
|
|
48
42
|
}, props));
|
|
49
43
|
});
|
|
@@ -10,7 +10,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
var _react = require("react");
|
|
12
12
|
var _react2 = require("@emotion/react");
|
|
13
|
-
var _search = _interopRequireDefault(require("@atlaskit/icon/
|
|
13
|
+
var _search = _interopRequireDefault(require("@atlaskit/icon/core/migration/search"));
|
|
14
14
|
var _constants = require("../../common/constants");
|
|
15
15
|
var _theme = require("../../theme");
|
|
16
16
|
var _utils = require("../../utils");
|
|
@@ -99,6 +99,8 @@ var SearchComponent = function SearchComponent(props) {
|
|
|
99
99
|
}, (0, _react2.jsx)("div", {
|
|
100
100
|
css: searchInputIconStyles
|
|
101
101
|
}, (0, _react2.jsx)(_search.default, {
|
|
102
|
+
color: "currentColor",
|
|
103
|
+
spacing: "spacious",
|
|
102
104
|
label: ""
|
|
103
105
|
})), (0, _react2.jsx)("input", {
|
|
104
106
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
@@ -136,6 +138,8 @@ var Search = exports.Search = function Search(props) {
|
|
|
136
138
|
, (0, _extends2.default)({
|
|
137
139
|
css: searchIconStyles,
|
|
138
140
|
icon: (0, _react2.jsx)(_search.default, {
|
|
141
|
+
color: "currentColor",
|
|
142
|
+
spacing: "spacious",
|
|
139
143
|
label: label
|
|
140
144
|
}),
|
|
141
145
|
tooltip: tooltip
|
|
@@ -9,7 +9,7 @@ exports.default = exports.Settings = void 0;
|
|
|
9
9
|
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
|
-
var _settings = _interopRequireDefault(require("@atlaskit/icon/
|
|
12
|
+
var _settings = _interopRequireDefault(require("@atlaskit/icon/core/migration/settings"));
|
|
13
13
|
var _IconButton = require("../IconButton");
|
|
14
14
|
var _excluded = ["tooltip"];
|
|
15
15
|
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); }
|
|
@@ -29,6 +29,8 @@ var Settings = exports.Settings = /*#__PURE__*/(0, _react.forwardRef)(function (
|
|
|
29
29
|
role: "listitem"
|
|
30
30
|
}, /*#__PURE__*/_react.default.createElement(_IconButton.IconButton, (0, _extends2.default)({
|
|
31
31
|
icon: /*#__PURE__*/_react.default.createElement(_settings.default, {
|
|
32
|
+
color: "currentColor",
|
|
33
|
+
spacing: "spacious",
|
|
32
34
|
label: typeof tooltip === 'string' ? tooltip : 'Settings Icon'
|
|
33
35
|
}),
|
|
34
36
|
ref: ref,
|
|
@@ -8,7 +8,7 @@ exports.default = exports.SignIn = void 0;
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
var
|
|
11
|
+
var _logInSignIn = _interopRequireDefault(require("@atlaskit/icon/core/migration/log-in--sign-in"));
|
|
12
12
|
var _IconButton = require("../IconButton");
|
|
13
13
|
var _excluded = ["tooltip"];
|
|
14
14
|
/**
|
|
@@ -25,7 +25,9 @@ var SignIn = exports.SignIn = function SignIn(props) {
|
|
|
25
25
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
26
26
|
role: "listitem"
|
|
27
27
|
}, /*#__PURE__*/_react.default.createElement(_IconButton.IconButton, (0, _extends2.default)({
|
|
28
|
-
icon: /*#__PURE__*/_react.default.createElement(
|
|
28
|
+
icon: /*#__PURE__*/_react.default.createElement(_logInSignIn.default, {
|
|
29
|
+
color: "currentColor",
|
|
30
|
+
spacing: "spacious",
|
|
29
31
|
label: typeof tooltip === 'string' ? tooltip : 'Sign-in Icon'
|
|
30
32
|
}),
|
|
31
33
|
tooltip: tooltip
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.SkeletonHelpButton = exports.Nav4SkeletonHelpButton = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _questionCircle = _interopRequireDefault(require("@atlaskit/icon/core/question-circle"));
|
|
10
|
-
var _questionCircle2 = _interopRequireDefault(require("@atlaskit/icon/
|
|
9
|
+
var _questionCircle = _interopRequireDefault(require("@atlaskit/icon/core/migration/question-circle"));
|
|
10
|
+
var _questionCircle2 = _interopRequireDefault(require("@atlaskit/icon/core/question-circle"));
|
|
11
11
|
var _SkeletonIconButton = require("./components/SkeletonIconButton");
|
|
12
12
|
var _theme = require("./theme");
|
|
13
13
|
/**
|
|
@@ -25,9 +25,10 @@ var SkeletonHelpButton = exports.SkeletonHelpButton = function SkeletonHelpButto
|
|
|
25
25
|
label = _ref$label === void 0 ? '' : _ref$label;
|
|
26
26
|
var _useTheme = (0, _theme.useTheme)(),
|
|
27
27
|
navigation = _useTheme.mode.navigation;
|
|
28
|
-
return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(
|
|
28
|
+
return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(_questionCircle.default, {
|
|
29
29
|
label: label,
|
|
30
|
-
|
|
30
|
+
color: "currentColor",
|
|
31
|
+
LEGACY_secondaryColor: navigation.backgroundColor
|
|
31
32
|
}));
|
|
32
33
|
};
|
|
33
34
|
|
|
@@ -39,8 +40,9 @@ var SkeletonHelpButton = exports.SkeletonHelpButton = function SkeletonHelpButto
|
|
|
39
40
|
var Nav4SkeletonHelpButton = exports.Nav4SkeletonHelpButton = function Nav4SkeletonHelpButton(_ref2) {
|
|
40
41
|
var _ref2$label = _ref2.label,
|
|
41
42
|
label = _ref2$label === void 0 ? '' : _ref2$label;
|
|
42
|
-
return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(
|
|
43
|
+
return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(_questionCircle2.default, {
|
|
43
44
|
label: label,
|
|
45
|
+
spacing: "spacious",
|
|
44
46
|
color: "var(--ds-icon, #44546F)"
|
|
45
47
|
}));
|
|
46
48
|
};
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.SkeletonNotificationButton = exports.Nav4SkeletonNotificationButton = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _notification = _interopRequireDefault(require("@atlaskit/icon/core/notification"));
|
|
10
|
-
var _notification2 = _interopRequireDefault(require("@atlaskit/icon/
|
|
9
|
+
var _notification = _interopRequireDefault(require("@atlaskit/icon/core/migration/notification"));
|
|
10
|
+
var _notification2 = _interopRequireDefault(require("@atlaskit/icon/core/notification"));
|
|
11
11
|
var _SkeletonIconButton = require("./components/SkeletonIconButton");
|
|
12
12
|
/**
|
|
13
13
|
* __Skeleton notification button__
|
|
@@ -22,7 +22,9 @@ var _SkeletonIconButton = require("./components/SkeletonIconButton");
|
|
|
22
22
|
var SkeletonNotificationButton = exports.SkeletonNotificationButton = function SkeletonNotificationButton(_ref) {
|
|
23
23
|
var _ref$label = _ref.label,
|
|
24
24
|
label = _ref$label === void 0 ? '' : _ref$label;
|
|
25
|
-
return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(
|
|
25
|
+
return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(_notification.default, {
|
|
26
|
+
color: "currentColor",
|
|
27
|
+
spacing: "spacious",
|
|
26
28
|
label: label
|
|
27
29
|
}));
|
|
28
30
|
};
|
|
@@ -36,7 +38,7 @@ var SkeletonNotificationButton = exports.SkeletonNotificationButton = function S
|
|
|
36
38
|
var Nav4SkeletonNotificationButton = exports.Nav4SkeletonNotificationButton = function Nav4SkeletonNotificationButton(_ref2) {
|
|
37
39
|
var _ref2$label = _ref2.label,
|
|
38
40
|
label = _ref2$label === void 0 ? '' : _ref2$label;
|
|
39
|
-
return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(
|
|
41
|
+
return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(_notification2.default, {
|
|
40
42
|
label: label,
|
|
41
43
|
color: "var(--ds-icon, #44546F)"
|
|
42
44
|
}));
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.SkeletonSettingsButton = exports.Nav4SkeletonSettingsButton = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _settings = _interopRequireDefault(require("@atlaskit/icon/core/settings"));
|
|
10
|
-
var _settings2 = _interopRequireDefault(require("@atlaskit/icon/
|
|
9
|
+
var _settings = _interopRequireDefault(require("@atlaskit/icon/core/migration/settings"));
|
|
10
|
+
var _settings2 = _interopRequireDefault(require("@atlaskit/icon/core/settings"));
|
|
11
11
|
var _SkeletonIconButton = require("./components/SkeletonIconButton");
|
|
12
12
|
/**
|
|
13
13
|
* __Skeleton settings button__
|
|
@@ -22,7 +22,9 @@ var _SkeletonIconButton = require("./components/SkeletonIconButton");
|
|
|
22
22
|
var SkeletonSettingsButton = exports.SkeletonSettingsButton = function SkeletonSettingsButton(_ref) {
|
|
23
23
|
var _ref$label = _ref.label,
|
|
24
24
|
label = _ref$label === void 0 ? '' : _ref$label;
|
|
25
|
-
return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(
|
|
25
|
+
return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(_settings.default, {
|
|
26
|
+
color: "currentColor",
|
|
27
|
+
spacing: "spacious",
|
|
26
28
|
label: label
|
|
27
29
|
}));
|
|
28
30
|
};
|
|
@@ -35,7 +37,7 @@ var SkeletonSettingsButton = exports.SkeletonSettingsButton = function SkeletonS
|
|
|
35
37
|
var Nav4SkeletonSettingsButton = exports.Nav4SkeletonSettingsButton = function Nav4SkeletonSettingsButton(_ref2) {
|
|
36
38
|
var _ref2$label = _ref2.label,
|
|
37
39
|
label = _ref2$label === void 0 ? '' : _ref2$label;
|
|
38
|
-
return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(
|
|
40
|
+
return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(_settings2.default, {
|
|
39
41
|
label: label,
|
|
40
42
|
color: "var(--ds-icon, #44546F)"
|
|
41
43
|
}));
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.SkeletonSwitcherButton = exports.Nav4SkeletonSwitcherButton = void 0;
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
9
|
var _appSwitcher = _interopRequireDefault(require("@atlaskit/icon/core/app-switcher"));
|
|
10
|
-
var _appSwitcher2 = _interopRequireDefault(require("@atlaskit/icon/
|
|
10
|
+
var _appSwitcher2 = _interopRequireDefault(require("@atlaskit/icon/core/migration/app-switcher"));
|
|
11
11
|
var _SkeletonIconButton = require("./components/SkeletonIconButton");
|
|
12
12
|
var _theme = require("./theme");
|
|
13
13
|
/**
|
|
@@ -72,6 +72,8 @@ var SkeletonSwitcherButton = exports.SkeletonSwitcherButton = function SkeletonS
|
|
|
72
72
|
css: skeletonSwitcherButtonStyles,
|
|
73
73
|
type: "button"
|
|
74
74
|
}, (0, _react.jsx)(_appSwitcher2.default, {
|
|
75
|
+
color: "currentColor",
|
|
76
|
+
spacing: "spacious",
|
|
75
77
|
label: label
|
|
76
78
|
}))
|
|
77
79
|
);
|
|
@@ -88,6 +90,7 @@ var Nav4SkeletonSwitcherButton = exports.Nav4SkeletonSwitcherButton = function N
|
|
|
88
90
|
testId = _ref2.testId;
|
|
89
91
|
return (0, _react.jsx)(_SkeletonIconButton.SkeletonIconButton, null, (0, _react.jsx)(_appSwitcher.default, {
|
|
90
92
|
label: label,
|
|
93
|
+
spacing: "spacious",
|
|
91
94
|
color: "var(--ds-icon, #44546F)"
|
|
92
95
|
}));
|
|
93
96
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import Nav4AppSwitcherIcon from '@atlaskit/icon/core/app-switcher';
|
|
4
|
-
import AppSwitcherIcon from '@atlaskit/icon/
|
|
4
|
+
import AppSwitcherIcon from '@atlaskit/icon/core/migration/app-switcher';
|
|
5
5
|
import { IconButton } from '../IconButton';
|
|
6
6
|
/**
|
|
7
7
|
* _App switcher__
|
|
@@ -19,6 +19,8 @@ export const AppSwitcher = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
19
19
|
} = props;
|
|
20
20
|
return /*#__PURE__*/React.createElement(IconButton, _extends({
|
|
21
21
|
icon: /*#__PURE__*/React.createElement(AppSwitcherIcon, {
|
|
22
|
+
color: "currentColor",
|
|
23
|
+
spacing: "spacious",
|
|
22
24
|
label: typeof tooltip === 'string' ? tooltip : 'Switch apps'
|
|
23
25
|
}),
|
|
24
26
|
tooltip: tooltip,
|
|
@@ -7,7 +7,7 @@ import { Fragment } from 'react';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
10
|
-
import AddIcon from '@atlaskit/icon/
|
|
10
|
+
import AddIcon from '@atlaskit/icon/core/migration/add--editor-add';
|
|
11
11
|
import Tooltip from '@atlaskit/tooltip';
|
|
12
12
|
import { CREATE_BREAKPOINT } from '../../common/constants';
|
|
13
13
|
import { useTheme } from '../../theme';
|
|
@@ -84,6 +84,8 @@ export const Create = ({
|
|
|
84
84
|
id: "createGlobalItemIconButton",
|
|
85
85
|
testId: testId && `${testId}-icon-button`,
|
|
86
86
|
icon: jsx(AddIcon, {
|
|
87
|
+
color: "currentColor",
|
|
88
|
+
spacing: "spacious",
|
|
87
89
|
label: text
|
|
88
90
|
}),
|
|
89
91
|
onClick: onClick,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
-
import QuestionCircleIcon from '@atlaskit/icon/
|
|
3
|
+
import QuestionCircleIcon from '@atlaskit/icon/core/migration/question-circle';
|
|
4
4
|
import { useTheme } from '../../theme';
|
|
5
5
|
import { BadgeContainer } from '../BadgeContainer';
|
|
6
6
|
import { IconButton } from '../IconButton';
|
|
@@ -28,7 +28,9 @@ export const Help = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
28
28
|
const button = /*#__PURE__*/React.createElement(IconButton, _extends({
|
|
29
29
|
icon: /*#__PURE__*/React.createElement(QuestionCircleIcon, {
|
|
30
30
|
label: typeof tooltip === 'string' ? tooltip : 'Help Icon',
|
|
31
|
-
|
|
31
|
+
color: "currentColor",
|
|
32
|
+
spacing: "spacious",
|
|
33
|
+
LEGACY_secondaryColor: navigation.backgroundColor
|
|
32
34
|
}),
|
|
33
35
|
ref: ref,
|
|
34
36
|
tooltip: tooltip
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
-
import NotificationIcon from '@atlaskit/icon/
|
|
3
|
+
import NotificationIcon from '@atlaskit/icon/core/migration/notification';
|
|
4
4
|
import { BadgeContainer } from '../BadgeContainer';
|
|
5
5
|
import { IconButton } from '../IconButton';
|
|
6
6
|
const NOTIFICATIONS_BADGE_ID = 'atlassian-navigation-notification-count';
|
|
@@ -26,6 +26,8 @@ export const Notifications = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
26
26
|
role: "listitem"
|
|
27
27
|
}, /*#__PURE__*/React.createElement(IconButton, _extends({
|
|
28
28
|
icon: /*#__PURE__*/React.createElement(NotificationIcon, {
|
|
29
|
+
spacing: "spacious",
|
|
30
|
+
color: "currentColor",
|
|
29
31
|
label: typeof tooltip === 'string' ? tooltip : 'Notification Icon'
|
|
30
32
|
}),
|
|
31
33
|
tooltip: tooltip,
|
|
@@ -7,15 +7,10 @@ import { forwardRef } from 'react';
|
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
|
-
import ChevronIconOld from '@atlaskit/icon/glyph/chevron-down';
|
|
11
10
|
import ChevronIcon from '@atlaskit/icon/utility/chevron-down';
|
|
11
|
+
import ChevronIconMigration from '@atlaskit/icon/utility/migration/chevron-down';
|
|
12
12
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
|
-
import { Bleed, xcss } from '@atlaskit/primitives';
|
|
14
13
|
import { PrimaryButton } from '../PrimaryButton';
|
|
15
|
-
const chevronIconStylesWithSpacingFixStyles = xcss({
|
|
16
|
-
marginInlineEnd: 'space.negative.050'
|
|
17
|
-
});
|
|
18
|
-
|
|
19
14
|
/**
|
|
20
15
|
* __Primary dropdown button__
|
|
21
16
|
*
|
|
@@ -30,12 +25,11 @@ export const PrimaryDropdownButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
30
25
|
iconAfter: fg('platform-component-visual-refresh') ? jsx(ChevronIcon, {
|
|
31
26
|
label: "",
|
|
32
27
|
color: "currentColor"
|
|
33
|
-
}) : jsx(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}, jsx(ChevronIconOld, {
|
|
28
|
+
}) : jsx(ChevronIconMigration, {
|
|
29
|
+
LEGACY_margin: `0 ${"var(--ds-space-negative-050, -4px)"} 0 ${"var(--ds-space-negative-100, -8px)"}`,
|
|
30
|
+
color: "currentColor",
|
|
37
31
|
label: ""
|
|
38
|
-
})
|
|
32
|
+
}),
|
|
39
33
|
ref: ref
|
|
40
34
|
}, props));
|
|
41
35
|
});
|
|
@@ -7,7 +7,7 @@ import { Fragment } from 'react';
|
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
|
-
import SearchIcon from '@atlaskit/icon/
|
|
10
|
+
import SearchIcon from '@atlaskit/icon/core/migration/search';
|
|
11
11
|
import { CREATE_BREAKPOINT, varSearchBackgroundColor, varSearchBorderColor, varSearchColor, varSearchFocusBorderColor, varSearchHoverBackgroundColor } from '../../common/constants';
|
|
12
12
|
import { useTheme } from '../../theme';
|
|
13
13
|
import { stripEmptyProperties } from '../../utils';
|
|
@@ -102,6 +102,8 @@ const SearchComponent = props => {
|
|
|
102
102
|
}, jsx("div", {
|
|
103
103
|
css: searchInputIconStyles
|
|
104
104
|
}, jsx(SearchIcon, {
|
|
105
|
+
color: "currentColor",
|
|
106
|
+
spacing: "spacious",
|
|
105
107
|
label: ""
|
|
106
108
|
})), jsx("input", {
|
|
107
109
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
@@ -141,6 +143,8 @@ export const Search = props => {
|
|
|
141
143
|
, _extends({
|
|
142
144
|
css: searchIconStyles,
|
|
143
145
|
icon: jsx(SearchIcon, {
|
|
146
|
+
color: "currentColor",
|
|
147
|
+
spacing: "spacious",
|
|
144
148
|
label: label
|
|
145
149
|
}),
|
|
146
150
|
tooltip: tooltip
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
-
import SettingsIcon from '@atlaskit/icon/
|
|
3
|
+
import SettingsIcon from '@atlaskit/icon/core/migration/settings';
|
|
4
4
|
import { IconButton } from '../IconButton';
|
|
5
5
|
/**
|
|
6
6
|
* __Settings__
|
|
@@ -19,6 +19,8 @@ export const Settings = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
19
19
|
role: "listitem"
|
|
20
20
|
}, /*#__PURE__*/React.createElement(IconButton, _extends({
|
|
21
21
|
icon: /*#__PURE__*/React.createElement(SettingsIcon, {
|
|
22
|
+
color: "currentColor",
|
|
23
|
+
spacing: "spacious",
|
|
22
24
|
label: typeof tooltip === 'string' ? tooltip : 'Settings Icon'
|
|
23
25
|
}),
|
|
24
26
|
ref: ref,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import
|
|
3
|
+
import LogInIcon from '@atlaskit/icon/core/migration/log-in--sign-in';
|
|
4
4
|
import { IconButton } from '../IconButton';
|
|
5
5
|
/**
|
|
6
6
|
* __Sign in__
|
|
@@ -18,7 +18,9 @@ export const SignIn = props => {
|
|
|
18
18
|
return /*#__PURE__*/React.createElement("div", {
|
|
19
19
|
role: "listitem"
|
|
20
20
|
}, /*#__PURE__*/React.createElement(IconButton, _extends({
|
|
21
|
-
icon: /*#__PURE__*/React.createElement(
|
|
21
|
+
icon: /*#__PURE__*/React.createElement(LogInIcon, {
|
|
22
|
+
color: "currentColor",
|
|
23
|
+
spacing: "spacious",
|
|
22
24
|
label: typeof tooltip === 'string' ? tooltip : 'Sign-in Icon'
|
|
23
25
|
}),
|
|
24
26
|
tooltip: tooltip
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import QuestionCircleIcon from '@atlaskit/icon/core/migration/question-circle';
|
|
2
3
|
import Nav4QuestionCircleIcon from '@atlaskit/icon/core/question-circle';
|
|
3
|
-
import QuestionCircleIcon from '@atlaskit/icon/glyph/question-circle';
|
|
4
4
|
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
5
5
|
import { useTheme } from './theme';
|
|
6
6
|
/**
|
|
@@ -23,7 +23,8 @@ export const SkeletonHelpButton = ({
|
|
|
23
23
|
} = useTheme();
|
|
24
24
|
return /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(QuestionCircleIcon, {
|
|
25
25
|
label: label,
|
|
26
|
-
|
|
26
|
+
color: "currentColor",
|
|
27
|
+
LEGACY_secondaryColor: navigation.backgroundColor
|
|
27
28
|
}));
|
|
28
29
|
};
|
|
29
30
|
|
|
@@ -36,5 +37,6 @@ export const Nav4SkeletonHelpButton = ({
|
|
|
36
37
|
label = ''
|
|
37
38
|
}) => /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(Nav4QuestionCircleIcon, {
|
|
38
39
|
label: label,
|
|
40
|
+
spacing: "spacious",
|
|
39
41
|
color: "var(--ds-icon, #44546F)"
|
|
40
42
|
}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import NotificationIcon from '@atlaskit/icon/core/migration/notification';
|
|
2
3
|
import Nav4NotificationsIcon from '@atlaskit/icon/core/notification';
|
|
3
|
-
import NotificationIcon from '@atlaskit/icon/glyph/notification';
|
|
4
4
|
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
5
5
|
/**
|
|
6
6
|
* __Skeleton notification button__
|
|
@@ -15,6 +15,8 @@ import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
|
15
15
|
export const SkeletonNotificationButton = ({
|
|
16
16
|
label = ''
|
|
17
17
|
}) => /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(NotificationIcon, {
|
|
18
|
+
color: "currentColor",
|
|
19
|
+
spacing: "spacious",
|
|
18
20
|
label: label
|
|
19
21
|
}));
|
|
20
22
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import SettingsIcon from '@atlaskit/icon/core/migration/settings';
|
|
2
3
|
import Nav4SettingsIcon from '@atlaskit/icon/core/settings';
|
|
3
|
-
import SettingsIcon from '@atlaskit/icon/glyph/settings';
|
|
4
4
|
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
5
5
|
/**
|
|
6
6
|
* __Skeleton settings button__
|
|
@@ -15,6 +15,8 @@ import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
|
15
15
|
export const SkeletonSettingsButton = ({
|
|
16
16
|
label = ''
|
|
17
17
|
}) => /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(SettingsIcon, {
|
|
18
|
+
color: "currentColor",
|
|
19
|
+
spacing: "spacious",
|
|
18
20
|
label: label
|
|
19
21
|
}));
|
|
20
22
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
7
|
import Nav4AppSwitcherIcon from '@atlaskit/icon/core/app-switcher';
|
|
8
|
-
import AppSwitcherIcon from '@atlaskit/icon/
|
|
8
|
+
import AppSwitcherIcon from '@atlaskit/icon/core/migration/app-switcher';
|
|
9
9
|
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
10
10
|
import { useTheme } from './theme';
|
|
11
11
|
const skeletonSwitcherButtonStyles = css({
|
|
@@ -64,6 +64,8 @@ export const SkeletonSwitcherButton = ({
|
|
|
64
64
|
css: skeletonSwitcherButtonStyles,
|
|
65
65
|
type: "button"
|
|
66
66
|
}, jsx(AppSwitcherIcon, {
|
|
67
|
+
color: "currentColor",
|
|
68
|
+
spacing: "spacious",
|
|
67
69
|
label: label
|
|
68
70
|
}))
|
|
69
71
|
);
|
|
@@ -79,5 +81,6 @@ export const Nav4SkeletonSwitcherButton = ({
|
|
|
79
81
|
testId
|
|
80
82
|
}) => jsx(SkeletonIconButton, null, jsx(Nav4AppSwitcherIcon, {
|
|
81
83
|
label: label,
|
|
84
|
+
spacing: "spacious",
|
|
82
85
|
color: "var(--ds-icon, #44546F)"
|
|
83
86
|
}));
|
|
@@ -4,7 +4,7 @@ var _excluded = ["tooltip"],
|
|
|
4
4
|
_excluded2 = ["tooltip"];
|
|
5
5
|
import React, { forwardRef } from 'react';
|
|
6
6
|
import Nav4AppSwitcherIcon from '@atlaskit/icon/core/app-switcher';
|
|
7
|
-
import AppSwitcherIcon from '@atlaskit/icon/
|
|
7
|
+
import AppSwitcherIcon from '@atlaskit/icon/core/migration/app-switcher';
|
|
8
8
|
import { IconButton } from '../IconButton';
|
|
9
9
|
/**
|
|
10
10
|
* _App switcher__
|
|
@@ -20,6 +20,8 @@ export var AppSwitcher = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
20
20
|
iconButtonProps = _objectWithoutProperties(props, _excluded);
|
|
21
21
|
return /*#__PURE__*/React.createElement(IconButton, _extends({
|
|
22
22
|
icon: /*#__PURE__*/React.createElement(AppSwitcherIcon, {
|
|
23
|
+
color: "currentColor",
|
|
24
|
+
spacing: "spacious",
|
|
23
25
|
label: typeof tooltip === 'string' ? tooltip : 'Switch apps'
|
|
24
26
|
}),
|
|
25
27
|
tooltip: tooltip,
|
|
@@ -8,7 +8,7 @@ import { Fragment } from 'react';
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
10
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
11
|
-
import AddIcon from '@atlaskit/icon/
|
|
11
|
+
import AddIcon from '@atlaskit/icon/core/migration/add--editor-add';
|
|
12
12
|
import Tooltip from '@atlaskit/tooltip';
|
|
13
13
|
import { CREATE_BREAKPOINT } from '../../common/constants';
|
|
14
14
|
import { useTheme } from '../../theme';
|
|
@@ -79,6 +79,8 @@ export var Create = function Create(_ref2) {
|
|
|
79
79
|
id: "createGlobalItemIconButton",
|
|
80
80
|
testId: testId && "".concat(testId, "-icon-button"),
|
|
81
81
|
icon: jsx(AddIcon, {
|
|
82
|
+
color: "currentColor",
|
|
83
|
+
spacing: "spacious",
|
|
82
84
|
label: text
|
|
83
85
|
}),
|
|
84
86
|
onClick: onClick,
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["badge", "tooltip"];
|
|
4
4
|
import React, { forwardRef } from 'react';
|
|
5
|
-
import QuestionCircleIcon from '@atlaskit/icon/
|
|
5
|
+
import QuestionCircleIcon from '@atlaskit/icon/core/migration/question-circle';
|
|
6
6
|
import { useTheme } from '../../theme';
|
|
7
7
|
import { BadgeContainer } from '../BadgeContainer';
|
|
8
8
|
import { IconButton } from '../IconButton';
|
|
@@ -25,7 +25,9 @@ export var Help = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
25
25
|
var button = /*#__PURE__*/React.createElement(IconButton, _extends({
|
|
26
26
|
icon: /*#__PURE__*/React.createElement(QuestionCircleIcon, {
|
|
27
27
|
label: typeof tooltip === 'string' ? tooltip : 'Help Icon',
|
|
28
|
-
|
|
28
|
+
color: "currentColor",
|
|
29
|
+
spacing: "spacious",
|
|
30
|
+
LEGACY_secondaryColor: navigation.backgroundColor
|
|
29
31
|
}),
|
|
30
32
|
ref: ref,
|
|
31
33
|
tooltip: tooltip
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["badge", "tooltip"];
|
|
4
4
|
import React, { forwardRef } from 'react';
|
|
5
|
-
import NotificationIcon from '@atlaskit/icon/
|
|
5
|
+
import NotificationIcon from '@atlaskit/icon/core/migration/notification';
|
|
6
6
|
import { BadgeContainer } from '../BadgeContainer';
|
|
7
7
|
import { IconButton } from '../IconButton';
|
|
8
8
|
var NOTIFICATIONS_BADGE_ID = 'atlassian-navigation-notification-count';
|
|
@@ -26,6 +26,8 @@ export var Notifications = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
26
26
|
role: "listitem"
|
|
27
27
|
}, /*#__PURE__*/React.createElement(IconButton, _extends({
|
|
28
28
|
icon: /*#__PURE__*/React.createElement(NotificationIcon, {
|
|
29
|
+
spacing: "spacious",
|
|
30
|
+
color: "currentColor",
|
|
29
31
|
label: typeof tooltip === 'string' ? tooltip : 'Notification Icon'
|
|
30
32
|
}),
|
|
31
33
|
tooltip: tooltip,
|
|
@@ -7,15 +7,10 @@ import { forwardRef } from 'react';
|
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
|
-
import ChevronIconOld from '@atlaskit/icon/glyph/chevron-down';
|
|
11
10
|
import ChevronIcon from '@atlaskit/icon/utility/chevron-down';
|
|
11
|
+
import ChevronIconMigration from '@atlaskit/icon/utility/migration/chevron-down';
|
|
12
12
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
|
-
import { Bleed, xcss } from '@atlaskit/primitives';
|
|
14
13
|
import { PrimaryButton } from '../PrimaryButton';
|
|
15
|
-
var chevronIconStylesWithSpacingFixStyles = xcss({
|
|
16
|
-
marginInlineEnd: 'space.negative.050'
|
|
17
|
-
});
|
|
18
|
-
|
|
19
14
|
/**
|
|
20
15
|
* __Primary dropdown button__
|
|
21
16
|
*
|
|
@@ -30,12 +25,11 @@ export var PrimaryDropdownButton = /*#__PURE__*/forwardRef(function (props, ref)
|
|
|
30
25
|
iconAfter: fg('platform-component-visual-refresh') ? jsx(ChevronIcon, {
|
|
31
26
|
label: "",
|
|
32
27
|
color: "currentColor"
|
|
33
|
-
}) : jsx(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}, jsx(ChevronIconOld, {
|
|
28
|
+
}) : jsx(ChevronIconMigration, {
|
|
29
|
+
LEGACY_margin: "0 ".concat("var(--ds-space-negative-050, -4px)", " 0 ", "var(--ds-space-negative-100, -8px)"),
|
|
30
|
+
color: "currentColor",
|
|
37
31
|
label: ""
|
|
38
|
-
})
|
|
32
|
+
}),
|
|
39
33
|
ref: ref
|
|
40
34
|
}, props));
|
|
41
35
|
});
|
|
@@ -10,7 +10,7 @@ import { Fragment } from 'react';
|
|
|
10
10
|
|
|
11
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
12
|
import { css, jsx } from '@emotion/react';
|
|
13
|
-
import SearchIcon from '@atlaskit/icon/
|
|
13
|
+
import SearchIcon from '@atlaskit/icon/core/migration/search';
|
|
14
14
|
import { CREATE_BREAKPOINT, varSearchBackgroundColor, varSearchBorderColor, varSearchColor, varSearchFocusBorderColor, varSearchHoverBackgroundColor } from '../../common/constants';
|
|
15
15
|
import { useTheme } from '../../theme';
|
|
16
16
|
import { stripEmptyProperties } from '../../utils';
|
|
@@ -93,6 +93,8 @@ var SearchComponent = function SearchComponent(props) {
|
|
|
93
93
|
}, jsx("div", {
|
|
94
94
|
css: searchInputIconStyles
|
|
95
95
|
}, jsx(SearchIcon, {
|
|
96
|
+
color: "currentColor",
|
|
97
|
+
spacing: "spacious",
|
|
96
98
|
label: ""
|
|
97
99
|
})), jsx("input", {
|
|
98
100
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
@@ -130,6 +132,8 @@ export var Search = function Search(props) {
|
|
|
130
132
|
, _extends({
|
|
131
133
|
css: searchIconStyles,
|
|
132
134
|
icon: jsx(SearchIcon, {
|
|
135
|
+
color: "currentColor",
|
|
136
|
+
spacing: "spacious",
|
|
133
137
|
label: label
|
|
134
138
|
}),
|
|
135
139
|
tooltip: tooltip
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["tooltip"];
|
|
4
4
|
import React, { forwardRef } from 'react';
|
|
5
|
-
import SettingsIcon from '@atlaskit/icon/
|
|
5
|
+
import SettingsIcon from '@atlaskit/icon/core/migration/settings';
|
|
6
6
|
import { IconButton } from '../IconButton';
|
|
7
7
|
/**
|
|
8
8
|
* __Settings__
|
|
@@ -19,6 +19,8 @@ export var Settings = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
19
19
|
role: "listitem"
|
|
20
20
|
}, /*#__PURE__*/React.createElement(IconButton, _extends({
|
|
21
21
|
icon: /*#__PURE__*/React.createElement(SettingsIcon, {
|
|
22
|
+
color: "currentColor",
|
|
23
|
+
spacing: "spacious",
|
|
22
24
|
label: typeof tooltip === 'string' ? tooltip : 'Settings Icon'
|
|
23
25
|
}),
|
|
24
26
|
ref: ref,
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["tooltip"];
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import
|
|
5
|
+
import LogInIcon from '@atlaskit/icon/core/migration/log-in--sign-in';
|
|
6
6
|
import { IconButton } from '../IconButton';
|
|
7
7
|
/**
|
|
8
8
|
* __Sign in__
|
|
@@ -18,7 +18,9 @@ export var SignIn = function SignIn(props) {
|
|
|
18
18
|
return /*#__PURE__*/React.createElement("div", {
|
|
19
19
|
role: "listitem"
|
|
20
20
|
}, /*#__PURE__*/React.createElement(IconButton, _extends({
|
|
21
|
-
icon: /*#__PURE__*/React.createElement(
|
|
21
|
+
icon: /*#__PURE__*/React.createElement(LogInIcon, {
|
|
22
|
+
color: "currentColor",
|
|
23
|
+
spacing: "spacious",
|
|
22
24
|
label: typeof tooltip === 'string' ? tooltip : 'Sign-in Icon'
|
|
23
25
|
}),
|
|
24
26
|
tooltip: tooltip
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import QuestionCircleIcon from '@atlaskit/icon/core/migration/question-circle';
|
|
2
3
|
import Nav4QuestionCircleIcon from '@atlaskit/icon/core/question-circle';
|
|
3
|
-
import QuestionCircleIcon from '@atlaskit/icon/glyph/question-circle';
|
|
4
4
|
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
5
5
|
import { useTheme } from './theme';
|
|
6
6
|
/**
|
|
@@ -20,7 +20,8 @@ export var SkeletonHelpButton = function SkeletonHelpButton(_ref) {
|
|
|
20
20
|
navigation = _useTheme.mode.navigation;
|
|
21
21
|
return /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(QuestionCircleIcon, {
|
|
22
22
|
label: label,
|
|
23
|
-
|
|
23
|
+
color: "currentColor",
|
|
24
|
+
LEGACY_secondaryColor: navigation.backgroundColor
|
|
24
25
|
}));
|
|
25
26
|
};
|
|
26
27
|
|
|
@@ -34,6 +35,7 @@ export var Nav4SkeletonHelpButton = function Nav4SkeletonHelpButton(_ref2) {
|
|
|
34
35
|
label = _ref2$label === void 0 ? '' : _ref2$label;
|
|
35
36
|
return /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(Nav4QuestionCircleIcon, {
|
|
36
37
|
label: label,
|
|
38
|
+
spacing: "spacious",
|
|
37
39
|
color: "var(--ds-icon, #44546F)"
|
|
38
40
|
}));
|
|
39
41
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import NotificationIcon from '@atlaskit/icon/core/migration/notification';
|
|
2
3
|
import Nav4NotificationsIcon from '@atlaskit/icon/core/notification';
|
|
3
|
-
import NotificationIcon from '@atlaskit/icon/glyph/notification';
|
|
4
4
|
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
5
5
|
/**
|
|
6
6
|
* __Skeleton notification button__
|
|
@@ -16,6 +16,8 @@ export var SkeletonNotificationButton = function SkeletonNotificationButton(_ref
|
|
|
16
16
|
var _ref$label = _ref.label,
|
|
17
17
|
label = _ref$label === void 0 ? '' : _ref$label;
|
|
18
18
|
return /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(NotificationIcon, {
|
|
19
|
+
color: "currentColor",
|
|
20
|
+
spacing: "spacious",
|
|
19
21
|
label: label
|
|
20
22
|
}));
|
|
21
23
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import SettingsIcon from '@atlaskit/icon/core/migration/settings';
|
|
2
3
|
import Nav4SettingsIcon from '@atlaskit/icon/core/settings';
|
|
3
|
-
import SettingsIcon from '@atlaskit/icon/glyph/settings';
|
|
4
4
|
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
5
5
|
/**
|
|
6
6
|
* __Skeleton settings button__
|
|
@@ -16,6 +16,8 @@ export var SkeletonSettingsButton = function SkeletonSettingsButton(_ref) {
|
|
|
16
16
|
var _ref$label = _ref.label,
|
|
17
17
|
label = _ref$label === void 0 ? '' : _ref$label;
|
|
18
18
|
return /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(SettingsIcon, {
|
|
19
|
+
color: "currentColor",
|
|
20
|
+
spacing: "spacious",
|
|
19
21
|
label: label
|
|
20
22
|
}));
|
|
21
23
|
};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
7
|
import Nav4AppSwitcherIcon from '@atlaskit/icon/core/app-switcher';
|
|
8
|
-
import AppSwitcherIcon from '@atlaskit/icon/
|
|
8
|
+
import AppSwitcherIcon from '@atlaskit/icon/core/migration/app-switcher';
|
|
9
9
|
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
10
10
|
import { useTheme } from './theme';
|
|
11
11
|
var skeletonSwitcherButtonStyles = css({
|
|
@@ -64,6 +64,8 @@ export var SkeletonSwitcherButton = function SkeletonSwitcherButton(_ref) {
|
|
|
64
64
|
css: skeletonSwitcherButtonStyles,
|
|
65
65
|
type: "button"
|
|
66
66
|
}, jsx(AppSwitcherIcon, {
|
|
67
|
+
color: "currentColor",
|
|
68
|
+
spacing: "spacious",
|
|
67
69
|
label: label
|
|
68
70
|
}))
|
|
69
71
|
);
|
|
@@ -80,6 +82,7 @@ export var Nav4SkeletonSwitcherButton = function Nav4SkeletonSwitcherButton(_ref
|
|
|
80
82
|
testId = _ref2.testId;
|
|
81
83
|
return jsx(SkeletonIconButton, null, jsx(Nav4AppSwitcherIcon, {
|
|
82
84
|
label: label,
|
|
85
|
+
spacing: "spacious",
|
|
83
86
|
color: "var(--ds-icon, #44546F)"
|
|
84
87
|
}));
|
|
85
88
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/atlassian-navigation",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.0",
|
|
4
4
|
"description": "A horizontal navigation component for Atlassian products.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/logo": "*",
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
48
48
|
"@atlaskit/popup": "^1.29.0",
|
|
49
|
-
"@atlaskit/primitives": "^
|
|
49
|
+
"@atlaskit/primitives": "^13.0.0",
|
|
50
50
|
"@atlaskit/theme": "^14.0.0",
|
|
51
51
|
"@atlaskit/tokens": "^2.0.0",
|
|
52
52
|
"@atlaskit/tooltip": "^18.8.0",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@af/accessibility-testing": "*",
|
|
64
64
|
"@af/visual-regression": "*",
|
|
65
|
-
"@atlaskit/dropdown-menu": "^12.
|
|
65
|
+
"@atlaskit/dropdown-menu": "^12.22.0",
|
|
66
66
|
"@atlaskit/notification-indicator": "*",
|
|
67
67
|
"@atlaskit/notification-log-client": "*",
|
|
68
68
|
"@atlaskit/visual-regression": "*",
|