@atlaskit/atlassian-navigation 5.5.3 → 5.5.4
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 +8 -0
- package/dist/cjs/components/AppSwitcher/index.js +1 -2
- package/dist/cjs/components/Help/index.js +1 -1
- package/dist/cjs/components/Notifications/index.js +1 -1
- package/dist/cjs/components/PrimaryDropdownButton/index.js +1 -2
- package/dist/cjs/components/Search/index.js +1 -1
- package/dist/cjs/components/Settings/index.js +1 -1
- package/dist/cjs/skeleton-help-button.js +2 -3
- package/dist/cjs/skeleton-notification-button.js +2 -3
- package/dist/cjs/skeleton-settings-button.js +2 -3
- package/dist/cjs/skeleton-switcher-button.js +1 -2
- package/dist/es2019/components/AppSwitcher/index.js +2 -3
- package/dist/es2019/components/Help/index.js +1 -1
- package/dist/es2019/components/Notifications/index.js +1 -1
- package/dist/es2019/components/PrimaryDropdownButton/index.js +2 -3
- package/dist/es2019/components/Search/index.js +1 -1
- package/dist/es2019/components/Settings/index.js +1 -1
- package/dist/es2019/skeleton-help-button.js +2 -3
- package/dist/es2019/skeleton-notification-button.js +2 -3
- package/dist/es2019/skeleton-settings-button.js +2 -3
- package/dist/es2019/skeleton-switcher-button.js +2 -3
- package/dist/esm/components/AppSwitcher/index.js +2 -3
- package/dist/esm/components/Help/index.js +1 -1
- package/dist/esm/components/Notifications/index.js +1 -1
- package/dist/esm/components/PrimaryDropdownButton/index.js +2 -3
- package/dist/esm/components/Search/index.js +1 -1
- package/dist/esm/components/Settings/index.js +1 -1
- package/dist/esm/skeleton-help-button.js +2 -3
- package/dist/esm/skeleton-notification-button.js +2 -3
- package/dist/esm/skeleton-settings-button.js +2 -3
- package/dist/esm/skeleton-switcher-button.js +2 -3
- package/dist/types/skeleton-switcher-button.d.ts +2 -2
- package/dist/types-ts4.5/skeleton-switcher-button.d.ts +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/atlassian-navigation
|
|
2
2
|
|
|
3
|
+
## 5.5.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`036c3ee917e3c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/036c3ee917e3c) -
|
|
8
|
+
Icon migration entry point update
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 5.5.3
|
|
4
12
|
|
|
5
13
|
### 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 _appSwitcher = _interopRequireDefault(require("@atlaskit/icon/core/app-switcher"));
|
|
13
|
-
var _appSwitcher2 = _interopRequireDefault(require("@atlaskit/icon/core/migration/app-switcher"));
|
|
14
13
|
var _IconButton = require("../IconButton");
|
|
15
14
|
var _excluded = ["component", "href", "id", "isDisabled", "isSelected", "label", "onBlur", "onClick", "onFocus", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp", "target", "testId", "tooltip"],
|
|
16
15
|
_excluded2 = ["component", "href", "id", "isDisabled", "isSelected", "label", "onBlur", "onClick", "onFocus", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp", "target", "testId", "tooltip"];
|
|
@@ -45,7 +44,7 @@ var AppSwitcher = exports.AppSwitcher = /*#__PURE__*/(0, _react.forwardRef)(func
|
|
|
45
44
|
return /*#__PURE__*/_react.default.createElement(_IconButton.IconButton, (0, _extends2.default)({
|
|
46
45
|
component: component,
|
|
47
46
|
href: href,
|
|
48
|
-
icon: /*#__PURE__*/_react.default.createElement(
|
|
47
|
+
icon: /*#__PURE__*/_react.default.createElement(_appSwitcher.default, {
|
|
49
48
|
color: "currentColor",
|
|
50
49
|
spacing: "spacious",
|
|
51
50
|
label: typeof tooltip === 'string' ? tooltip : 'Switch apps'
|
|
@@ -9,7 +9,7 @@ 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/core/
|
|
12
|
+
var _questionCircle = _interopRequireDefault(require("@atlaskit/icon/core/question-circle"));
|
|
13
13
|
var _theme = require("../../theme");
|
|
14
14
|
var _BadgeContainer = require("../BadgeContainer");
|
|
15
15
|
var _IconButton = require("../IconButton");
|
|
@@ -9,7 +9,7 @@ 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/core/
|
|
12
|
+
var _notification = _interopRequireDefault(require("@atlaskit/icon/core/notification"));
|
|
13
13
|
var _BadgeContainer = require("../BadgeContainer");
|
|
14
14
|
var _IconButton = require("../IconButton");
|
|
15
15
|
var _excluded = ["badge", "component", "href", "id", "isDisabled", "isSelected", "label", "onBlur", "onClick", "onFocus", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp", "target", "testId", "tooltip"];
|
|
@@ -9,7 +9,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
10
|
var _react = require("react");
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
|
-
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/
|
|
12
|
+
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/chevron-down"));
|
|
13
13
|
var _PrimaryButton = require("../PrimaryButton");
|
|
14
14
|
var _excluded = ["component", "isHighlighted", "isLoading", "onClick", "testId", "theme", "tooltip"];
|
|
15
15
|
/**
|
|
@@ -42,7 +42,6 @@ var PrimaryDropdownButton = exports.PrimaryDropdownButton = /*#__PURE__*/(0, _re
|
|
|
42
42
|
return (0, _react2.jsx)(_PrimaryButton.PrimaryButton, (0, _extends2.default)({
|
|
43
43
|
component: component,
|
|
44
44
|
iconAfter: (0, _react2.jsx)(_chevronDown.default, {
|
|
45
|
-
LEGACY_margin: "0 ".concat("var(--ds-space-negative-050, -4px)", " 0 ", "var(--ds-space-negative-100, -8px)"),
|
|
46
45
|
color: "currentColor",
|
|
47
46
|
label: "",
|
|
48
47
|
size: "small"
|
|
@@ -11,7 +11,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
11
11
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _react2 = require("@emotion/react");
|
|
14
|
-
var _search = _interopRequireDefault(require("@atlaskit/icon/core/
|
|
14
|
+
var _search = _interopRequireDefault(require("@atlaskit/icon/core/search"));
|
|
15
15
|
var _constants = require("../../common/constants");
|
|
16
16
|
var _theme = require("../../theme");
|
|
17
17
|
var _utils = require("../../utils");
|
|
@@ -9,7 +9,7 @@ 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/core/
|
|
12
|
+
var _settings = _interopRequireDefault(require("@atlaskit/icon/core/settings"));
|
|
13
13
|
var _IconButton = require("../IconButton");
|
|
14
14
|
var _excluded = ["component", "href", "id", "isDisabled", "isSelected", "label", "onBlur", "onClick", "onFocus", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp", "target", "testId", "tooltip"];
|
|
15
15
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -6,8 +6,7 @@ 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/
|
|
10
|
-
var _questionCircle2 = _interopRequireDefault(require("@atlaskit/icon/core/question-circle"));
|
|
9
|
+
var _questionCircle = _interopRequireDefault(require("@atlaskit/icon/core/question-circle"));
|
|
11
10
|
var _SkeletonIconButton = require("./components/SkeletonIconButton");
|
|
12
11
|
var _theme = require("./theme");
|
|
13
12
|
/**
|
|
@@ -40,7 +39,7 @@ var SkeletonHelpButton = exports.SkeletonHelpButton = function SkeletonHelpButto
|
|
|
40
39
|
var Nav4SkeletonHelpButton = exports.Nav4SkeletonHelpButton = function Nav4SkeletonHelpButton(_ref2) {
|
|
41
40
|
var _ref2$label = _ref2.label,
|
|
42
41
|
label = _ref2$label === void 0 ? '' : _ref2$label;
|
|
43
|
-
return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(
|
|
42
|
+
return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(_questionCircle.default, {
|
|
44
43
|
label: label,
|
|
45
44
|
spacing: "spacious",
|
|
46
45
|
color: "var(--ds-icon, #292A2E)"
|
|
@@ -6,8 +6,7 @@ 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/
|
|
10
|
-
var _notification2 = _interopRequireDefault(require("@atlaskit/icon/core/notification"));
|
|
9
|
+
var _notification = _interopRequireDefault(require("@atlaskit/icon/core/notification"));
|
|
11
10
|
var _SkeletonIconButton = require("./components/SkeletonIconButton");
|
|
12
11
|
/**
|
|
13
12
|
* __Skeleton notification button__
|
|
@@ -38,7 +37,7 @@ var SkeletonNotificationButton = exports.SkeletonNotificationButton = function S
|
|
|
38
37
|
var Nav4SkeletonNotificationButton = exports.Nav4SkeletonNotificationButton = function Nav4SkeletonNotificationButton(_ref2) {
|
|
39
38
|
var _ref2$label = _ref2.label,
|
|
40
39
|
label = _ref2$label === void 0 ? '' : _ref2$label;
|
|
41
|
-
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(_notification.default, {
|
|
42
41
|
label: label,
|
|
43
42
|
color: "var(--ds-icon, #292A2E)"
|
|
44
43
|
}));
|
|
@@ -6,8 +6,7 @@ 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/
|
|
10
|
-
var _settings2 = _interopRequireDefault(require("@atlaskit/icon/core/settings"));
|
|
9
|
+
var _settings = _interopRequireDefault(require("@atlaskit/icon/core/settings"));
|
|
11
10
|
var _SkeletonIconButton = require("./components/SkeletonIconButton");
|
|
12
11
|
/**
|
|
13
12
|
* __Skeleton settings button__
|
|
@@ -37,7 +36,7 @@ var SkeletonSettingsButton = exports.SkeletonSettingsButton = function SkeletonS
|
|
|
37
36
|
var Nav4SkeletonSettingsButton = exports.Nav4SkeletonSettingsButton = function Nav4SkeletonSettingsButton(_ref2) {
|
|
38
37
|
var _ref2$label = _ref2.label,
|
|
39
38
|
label = _ref2$label === void 0 ? '' : _ref2$label;
|
|
40
|
-
return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(
|
|
39
|
+
return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(_settings.default, {
|
|
41
40
|
label: label,
|
|
42
41
|
color: "var(--ds-icon, #292A2E)"
|
|
43
42
|
}));
|
|
@@ -8,7 +8,6 @@ exports.SkeletonSwitcherButton = exports.Nav4SkeletonSwitcherButton = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _react2 = require("@emotion/react");
|
|
10
10
|
var _appSwitcher = _interopRequireDefault(require("@atlaskit/icon/core/app-switcher"));
|
|
11
|
-
var _appSwitcher2 = _interopRequireDefault(require("@atlaskit/icon/core/migration/app-switcher"));
|
|
12
11
|
var _SkeletonIconButton = require("./components/SkeletonIconButton");
|
|
13
12
|
var _theme = require("./theme");
|
|
14
13
|
/**
|
|
@@ -72,7 +71,7 @@ var SkeletonSwitcherButton = exports.SkeletonSwitcherButton = function SkeletonS
|
|
|
72
71
|
"data-testid": testId,
|
|
73
72
|
css: skeletonSwitcherButtonStyles,
|
|
74
73
|
type: "button"
|
|
75
|
-
}, (0, _react2.jsx)(
|
|
74
|
+
}, (0, _react2.jsx)(_appSwitcher.default, {
|
|
76
75
|
color: "currentColor",
|
|
77
76
|
spacing: "spacious",
|
|
78
77
|
label: label
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
-
import
|
|
4
|
-
import AppSwitcherIcon from '@atlaskit/icon/core/migration/app-switcher';
|
|
3
|
+
import AppSwitcherIcon from '@atlaskit/icon/core/app-switcher';
|
|
5
4
|
import { IconButton } from '../IconButton';
|
|
6
5
|
/**
|
|
7
6
|
* _App switcher__
|
|
@@ -81,7 +80,7 @@ export const AppSwitcherNav4 = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
81
80
|
...rest
|
|
82
81
|
} = props;
|
|
83
82
|
return /*#__PURE__*/React.createElement(IconButton, _extends({
|
|
84
|
-
icon: /*#__PURE__*/React.createElement(
|
|
83
|
+
icon: /*#__PURE__*/React.createElement(AppSwitcherIcon, {
|
|
85
84
|
label: typeof tooltip === 'string' ? tooltip : 'Switch apps',
|
|
86
85
|
color: "var(--ds-icon, #292A2E)"
|
|
87
86
|
}),
|
|
@@ -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/core/
|
|
3
|
+
import QuestionCircleIcon from '@atlaskit/icon/core/question-circle';
|
|
4
4
|
import { useTheme } from '../../theme';
|
|
5
5
|
import { BadgeContainer } from '../BadgeContainer';
|
|
6
6
|
import { IconButton } from '../IconButton';
|
|
@@ -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/core/
|
|
3
|
+
import NotificationIcon from '@atlaskit/icon/core/notification';
|
|
4
4
|
import { BadgeContainer } from '../BadgeContainer';
|
|
5
5
|
import { IconButton } from '../IconButton';
|
|
6
6
|
const NOTIFICATIONS_BADGE_ID = 'atlassian-navigation-notification-count';
|
|
@@ -7,7 +7,7 @@ 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 { css, jsx } from '@emotion/react';
|
|
10
|
-
import
|
|
10
|
+
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
11
11
|
import { PrimaryButton } from '../PrimaryButton';
|
|
12
12
|
const buttonNoOpStyle = css({
|
|
13
13
|
'--noop': 1
|
|
@@ -35,8 +35,7 @@ export const PrimaryDropdownButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
35
35
|
} = props;
|
|
36
36
|
return jsx(PrimaryButton, _extends({
|
|
37
37
|
component: component,
|
|
38
|
-
iconAfter: jsx(
|
|
39
|
-
LEGACY_margin: `0 ${"var(--ds-space-negative-050, -4px)"} 0 ${"var(--ds-space-negative-100, -8px)"}`,
|
|
38
|
+
iconAfter: jsx(ChevronDownIcon, {
|
|
40
39
|
color: "currentColor",
|
|
41
40
|
label: "",
|
|
42
41
|
size: "small"
|
|
@@ -7,7 +7,7 @@ import React, { 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/core/
|
|
10
|
+
import SearchIcon from '@atlaskit/icon/core/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';
|
|
@@ -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/core/
|
|
3
|
+
import SettingsIcon from '@atlaskit/icon/core/settings';
|
|
4
4
|
import { IconButton } from '../IconButton';
|
|
5
5
|
/**
|
|
6
6
|
* __Settings__
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import QuestionCircleIcon from '@atlaskit/icon/core/
|
|
3
|
-
import Nav4QuestionCircleIcon from '@atlaskit/icon/core/question-circle';
|
|
2
|
+
import QuestionCircleIcon from '@atlaskit/icon/core/question-circle';
|
|
4
3
|
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
5
4
|
import { useTheme } from './theme';
|
|
6
5
|
/**
|
|
@@ -35,7 +34,7 @@ export const SkeletonHelpButton = ({
|
|
|
35
34
|
*/
|
|
36
35
|
export const Nav4SkeletonHelpButton = ({
|
|
37
36
|
label = ''
|
|
38
|
-
}) => /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(
|
|
37
|
+
}) => /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(QuestionCircleIcon, {
|
|
39
38
|
label: label,
|
|
40
39
|
spacing: "spacious",
|
|
41
40
|
color: "var(--ds-icon, #292A2E)"
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import NotificationIcon from '@atlaskit/icon/core/
|
|
3
|
-
import Nav4NotificationsIcon from '@atlaskit/icon/core/notification';
|
|
2
|
+
import NotificationIcon from '@atlaskit/icon/core/notification';
|
|
4
3
|
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
5
4
|
/**
|
|
6
5
|
* __Skeleton notification button__
|
|
@@ -28,7 +27,7 @@ export const SkeletonNotificationButton = ({
|
|
|
28
27
|
*/
|
|
29
28
|
export const Nav4SkeletonNotificationButton = ({
|
|
30
29
|
label = ''
|
|
31
|
-
}) => /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(
|
|
30
|
+
}) => /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(NotificationIcon, {
|
|
32
31
|
label: label,
|
|
33
32
|
color: "var(--ds-icon, #292A2E)"
|
|
34
33
|
}));
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import SettingsIcon from '@atlaskit/icon/core/
|
|
3
|
-
import Nav4SettingsIcon from '@atlaskit/icon/core/settings';
|
|
2
|
+
import SettingsIcon from '@atlaskit/icon/core/settings';
|
|
4
3
|
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
5
4
|
/**
|
|
6
5
|
* __Skeleton settings button__
|
|
@@ -27,7 +26,7 @@ export const SkeletonSettingsButton = ({
|
|
|
27
26
|
*/
|
|
28
27
|
export const Nav4SkeletonSettingsButton = ({
|
|
29
28
|
label = ''
|
|
30
|
-
}) => /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(
|
|
29
|
+
}) => /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(SettingsIcon, {
|
|
31
30
|
label: label,
|
|
32
31
|
color: "var(--ds-icon, #292A2E)"
|
|
33
32
|
}));
|
|
@@ -6,8 +6,7 @@ import React from 'react';
|
|
|
6
6
|
|
|
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
|
-
import
|
|
10
|
-
import AppSwitcherIcon from '@atlaskit/icon/core/migration/app-switcher';
|
|
9
|
+
import AppSwitcherIcon from '@atlaskit/icon/core/app-switcher';
|
|
11
10
|
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
12
11
|
import { useTheme } from './theme';
|
|
13
12
|
const skeletonSwitcherButtonStyles = css({
|
|
@@ -78,7 +77,7 @@ export const SkeletonSwitcherButton = ({
|
|
|
78
77
|
*/
|
|
79
78
|
export const Nav4SkeletonSwitcherButton = ({
|
|
80
79
|
label = ''
|
|
81
|
-
}) => jsx(SkeletonIconButton, null, jsx(
|
|
80
|
+
}) => jsx(SkeletonIconButton, null, jsx(AppSwitcherIcon, {
|
|
82
81
|
label: label,
|
|
83
82
|
spacing: "spacious",
|
|
84
83
|
color: "var(--ds-icon, #292A2E)"
|
|
@@ -3,8 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["component", "href", "id", "isDisabled", "isSelected", "label", "onBlur", "onClick", "onFocus", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp", "target", "testId", "tooltip"],
|
|
4
4
|
_excluded2 = ["component", "href", "id", "isDisabled", "isSelected", "label", "onBlur", "onClick", "onFocus", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp", "target", "testId", "tooltip"];
|
|
5
5
|
import React, { forwardRef } from 'react';
|
|
6
|
-
import
|
|
7
|
-
import AppSwitcherIcon from '@atlaskit/icon/core/migration/app-switcher';
|
|
6
|
+
import AppSwitcherIcon from '@atlaskit/icon/core/app-switcher';
|
|
8
7
|
import { IconButton } from '../IconButton';
|
|
9
8
|
/**
|
|
10
9
|
* _App switcher__
|
|
@@ -80,7 +79,7 @@ export var AppSwitcherNav4 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
80
79
|
tooltip = props.tooltip,
|
|
81
80
|
rest = _objectWithoutProperties(props, _excluded2);
|
|
82
81
|
return /*#__PURE__*/React.createElement(IconButton, _extends({
|
|
83
|
-
icon: /*#__PURE__*/React.createElement(
|
|
82
|
+
icon: /*#__PURE__*/React.createElement(AppSwitcherIcon, {
|
|
84
83
|
label: typeof tooltip === 'string' ? tooltip : 'Switch apps',
|
|
85
84
|
color: "var(--ds-icon, #292A2E)"
|
|
86
85
|
}),
|
|
@@ -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", "component", "href", "id", "isDisabled", "isSelected", "label", "onBlur", "onClick", "onFocus", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp", "target", "testId", "tooltip"];
|
|
4
4
|
import React, { forwardRef } from 'react';
|
|
5
|
-
import QuestionCircleIcon from '@atlaskit/icon/core/
|
|
5
|
+
import QuestionCircleIcon from '@atlaskit/icon/core/question-circle';
|
|
6
6
|
import { useTheme } from '../../theme';
|
|
7
7
|
import { BadgeContainer } from '../BadgeContainer';
|
|
8
8
|
import { IconButton } from '../IconButton';
|
|
@@ -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", "component", "href", "id", "isDisabled", "isSelected", "label", "onBlur", "onClick", "onFocus", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp", "target", "testId", "tooltip"];
|
|
4
4
|
import React, { forwardRef } from 'react';
|
|
5
|
-
import NotificationIcon from '@atlaskit/icon/core/
|
|
5
|
+
import NotificationIcon from '@atlaskit/icon/core/notification';
|
|
6
6
|
import { BadgeContainer } from '../BadgeContainer';
|
|
7
7
|
import { IconButton } from '../IconButton';
|
|
8
8
|
var NOTIFICATIONS_BADGE_ID = 'atlassian-navigation-notification-count';
|
|
@@ -9,7 +9,7 @@ import { forwardRef } from 'react';
|
|
|
9
9
|
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
11
|
import { css, jsx } from '@emotion/react';
|
|
12
|
-
import
|
|
12
|
+
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
13
13
|
import { PrimaryButton } from '../PrimaryButton';
|
|
14
14
|
var buttonNoOpStyle = css({
|
|
15
15
|
'--noop': 1
|
|
@@ -35,8 +35,7 @@ export var PrimaryDropdownButton = /*#__PURE__*/forwardRef(function (props, ref)
|
|
|
35
35
|
rest = _objectWithoutProperties(props, _excluded);
|
|
36
36
|
return jsx(PrimaryButton, _extends({
|
|
37
37
|
component: component,
|
|
38
|
-
iconAfter: jsx(
|
|
39
|
-
LEGACY_margin: "0 ".concat("var(--ds-space-negative-050, -4px)", " 0 ", "var(--ds-space-negative-100, -8px)"),
|
|
38
|
+
iconAfter: jsx(ChevronDownIcon, {
|
|
40
39
|
color: "currentColor",
|
|
41
40
|
label: "",
|
|
42
41
|
size: "small"
|
|
@@ -10,7 +10,7 @@ import React, { 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/core/
|
|
13
|
+
import SearchIcon from '@atlaskit/icon/core/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';
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["component", "href", "id", "isDisabled", "isSelected", "label", "onBlur", "onClick", "onFocus", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp", "target", "testId", "tooltip"];
|
|
4
4
|
import React, { forwardRef } from 'react';
|
|
5
|
-
import SettingsIcon from '@atlaskit/icon/core/
|
|
5
|
+
import SettingsIcon from '@atlaskit/icon/core/settings';
|
|
6
6
|
import { IconButton } from '../IconButton';
|
|
7
7
|
/**
|
|
8
8
|
* __Settings__
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import QuestionCircleIcon from '@atlaskit/icon/core/
|
|
3
|
-
import Nav4QuestionCircleIcon from '@atlaskit/icon/core/question-circle';
|
|
2
|
+
import QuestionCircleIcon from '@atlaskit/icon/core/question-circle';
|
|
4
3
|
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
5
4
|
import { useTheme } from './theme';
|
|
6
5
|
/**
|
|
@@ -33,7 +32,7 @@ export var SkeletonHelpButton = function SkeletonHelpButton(_ref) {
|
|
|
33
32
|
export var Nav4SkeletonHelpButton = function Nav4SkeletonHelpButton(_ref2) {
|
|
34
33
|
var _ref2$label = _ref2.label,
|
|
35
34
|
label = _ref2$label === void 0 ? '' : _ref2$label;
|
|
36
|
-
return /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(
|
|
35
|
+
return /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(QuestionCircleIcon, {
|
|
37
36
|
label: label,
|
|
38
37
|
spacing: "spacious",
|
|
39
38
|
color: "var(--ds-icon, #292A2E)"
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import NotificationIcon from '@atlaskit/icon/core/
|
|
3
|
-
import Nav4NotificationsIcon from '@atlaskit/icon/core/notification';
|
|
2
|
+
import NotificationIcon from '@atlaskit/icon/core/notification';
|
|
4
3
|
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
5
4
|
/**
|
|
6
5
|
* __Skeleton notification button__
|
|
@@ -31,7 +30,7 @@ export var SkeletonNotificationButton = function SkeletonNotificationButton(_ref
|
|
|
31
30
|
export var Nav4SkeletonNotificationButton = function Nav4SkeletonNotificationButton(_ref2) {
|
|
32
31
|
var _ref2$label = _ref2.label,
|
|
33
32
|
label = _ref2$label === void 0 ? '' : _ref2$label;
|
|
34
|
-
return /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(
|
|
33
|
+
return /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(NotificationIcon, {
|
|
35
34
|
label: label,
|
|
36
35
|
color: "var(--ds-icon, #292A2E)"
|
|
37
36
|
}));
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import SettingsIcon from '@atlaskit/icon/core/
|
|
3
|
-
import Nav4SettingsIcon from '@atlaskit/icon/core/settings';
|
|
2
|
+
import SettingsIcon from '@atlaskit/icon/core/settings';
|
|
4
3
|
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
5
4
|
/**
|
|
6
5
|
* __Skeleton settings button__
|
|
@@ -30,7 +29,7 @@ export var SkeletonSettingsButton = function SkeletonSettingsButton(_ref) {
|
|
|
30
29
|
export var Nav4SkeletonSettingsButton = function Nav4SkeletonSettingsButton(_ref2) {
|
|
31
30
|
var _ref2$label = _ref2.label,
|
|
32
31
|
label = _ref2$label === void 0 ? '' : _ref2$label;
|
|
33
|
-
return /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(
|
|
32
|
+
return /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(SettingsIcon, {
|
|
34
33
|
label: label,
|
|
35
34
|
color: "var(--ds-icon, #292A2E)"
|
|
36
35
|
}));
|
|
@@ -6,8 +6,7 @@ import React from 'react';
|
|
|
6
6
|
|
|
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
|
-
import
|
|
10
|
-
import AppSwitcherIcon from '@atlaskit/icon/core/migration/app-switcher';
|
|
9
|
+
import AppSwitcherIcon from '@atlaskit/icon/core/app-switcher';
|
|
11
10
|
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
12
11
|
import { useTheme } from './theme';
|
|
13
12
|
var skeletonSwitcherButtonStyles = css({
|
|
@@ -79,7 +78,7 @@ export var SkeletonSwitcherButton = function SkeletonSwitcherButton(_ref) {
|
|
|
79
78
|
export var Nav4SkeletonSwitcherButton = function Nav4SkeletonSwitcherButton(_ref2) {
|
|
80
79
|
var _ref2$label = _ref2.label,
|
|
81
80
|
label = _ref2$label === void 0 ? '' : _ref2$label;
|
|
82
|
-
return jsx(SkeletonIconButton, null, jsx(
|
|
81
|
+
return jsx(SkeletonIconButton, null, jsx(AppSwitcherIcon, {
|
|
83
82
|
label: label,
|
|
84
83
|
spacing: "spacious",
|
|
85
84
|
color: "var(--ds-icon, #292A2E)"
|
|
@@ -26,10 +26,10 @@ export type SkeletonSwitcherButtonProps = {
|
|
|
26
26
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
|
|
27
27
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
28
28
|
*/
|
|
29
|
-
export declare const SkeletonSwitcherButton: ({ label, testId }: SkeletonSwitcherButtonProps) => React.JSX.Element;
|
|
29
|
+
export declare const SkeletonSwitcherButton: ({ label, testId, }: SkeletonSwitcherButtonProps) => React.JSX.Element;
|
|
30
30
|
/**
|
|
31
31
|
* __Nav 4 skeleton switcher button__
|
|
32
32
|
*
|
|
33
33
|
* A nav 4 skeleton switcher button
|
|
34
34
|
*/
|
|
35
|
-
export declare const Nav4SkeletonSwitcherButton: ({ label }: SkeletonSwitcherButtonProps) => React.JSX.Element;
|
|
35
|
+
export declare const Nav4SkeletonSwitcherButton: ({ label, }: SkeletonSwitcherButtonProps) => React.JSX.Element;
|
|
@@ -26,10 +26,10 @@ export type SkeletonSwitcherButtonProps = {
|
|
|
26
26
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
|
|
27
27
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
28
28
|
*/
|
|
29
|
-
export declare const SkeletonSwitcherButton: ({ label, testId }: SkeletonSwitcherButtonProps) => React.JSX.Element;
|
|
29
|
+
export declare const SkeletonSwitcherButton: ({ label, testId, }: SkeletonSwitcherButtonProps) => React.JSX.Element;
|
|
30
30
|
/**
|
|
31
31
|
* __Nav 4 skeleton switcher button__
|
|
32
32
|
*
|
|
33
33
|
* A nav 4 skeleton switcher button
|
|
34
34
|
*/
|
|
35
|
-
export declare const Nav4SkeletonSwitcherButton: ({ label }: SkeletonSwitcherButtonProps) => React.JSX.Element;
|
|
35
|
+
export declare const Nav4SkeletonSwitcherButton: ({ label, }: SkeletonSwitcherButtonProps) => React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/atlassian-navigation",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.4",
|
|
4
4
|
"description": "A horizontal navigation component for Atlassian apps.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"@atlaskit/ds-lib": "^5.3.0",
|
|
42
42
|
"@atlaskit/icon": "^29.3.0",
|
|
43
43
|
"@atlaskit/logo": "^19.9.0",
|
|
44
|
-
"@atlaskit/popup": "^4.
|
|
44
|
+
"@atlaskit/popup": "^4.11.0",
|
|
45
45
|
"@atlaskit/primitives": "^17.0.0",
|
|
46
46
|
"@atlaskit/theme": "^21.0.0",
|
|
47
|
-
"@atlaskit/tokens": "^9.
|
|
47
|
+
"@atlaskit/tokens": "^9.1.0",
|
|
48
48
|
"@atlaskit/tooltip": "^20.11.0",
|
|
49
49
|
"@atlaskit/width-detector": "^5.0.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"@atlaskit/badge": "^18.3.0",
|
|
66
66
|
"@atlaskit/docs": "^11.2.0",
|
|
67
67
|
"@atlaskit/drawer": "^11.0.0",
|
|
68
|
-
"@atlaskit/dropdown-menu": "^16.
|
|
69
|
-
"@atlaskit/form": "^15.
|
|
68
|
+
"@atlaskit/dropdown-menu": "^16.4.0",
|
|
69
|
+
"@atlaskit/form": "^15.2.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",
|