@atlaskit/atlassian-navigation 4.7.6 → 4.9.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.
Files changed (47) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/afm-jira/tsconfig.json +56 -56
  3. package/afm-post-office/tsconfig.json +56 -56
  4. package/dist/cjs/components/AppSwitcher/index.js +3 -1
  5. package/dist/cjs/components/Create/index.js +4 -2
  6. package/dist/cjs/components/Help/index.js +4 -2
  7. package/dist/cjs/components/Notifications/index.js +3 -1
  8. package/dist/cjs/components/PrimaryDropdownButton/index.js +7 -13
  9. package/dist/cjs/components/ProductHome/product-home.js +4 -2
  10. package/dist/cjs/components/Search/index.js +5 -1
  11. package/dist/cjs/components/Settings/index.js +3 -1
  12. package/dist/cjs/components/SignIn/index.js +4 -2
  13. package/dist/cjs/skeleton-help-button.js +7 -5
  14. package/dist/cjs/skeleton-notification-button.js +6 -4
  15. package/dist/cjs/skeleton-settings-button.js +6 -4
  16. package/dist/cjs/skeleton-switcher-button.js +4 -1
  17. package/dist/es2019/components/AppSwitcher/index.js +3 -1
  18. package/dist/es2019/components/Create/index.js +3 -1
  19. package/dist/es2019/components/Help/index.js +4 -2
  20. package/dist/es2019/components/Notifications/index.js +3 -1
  21. package/dist/es2019/components/PrimaryDropdownButton/index.js +5 -11
  22. package/dist/es2019/components/ProductHome/product-home.js +3 -1
  23. package/dist/es2019/components/Search/index.js +5 -1
  24. package/dist/es2019/components/Settings/index.js +3 -1
  25. package/dist/es2019/components/SignIn/index.js +4 -2
  26. package/dist/es2019/skeleton-help-button.js +4 -2
  27. package/dist/es2019/skeleton-notification-button.js +3 -1
  28. package/dist/es2019/skeleton-settings-button.js +3 -1
  29. package/dist/es2019/skeleton-switcher-button.js +4 -1
  30. package/dist/esm/components/AppSwitcher/index.js +3 -1
  31. package/dist/esm/components/Create/index.js +3 -1
  32. package/dist/esm/components/Help/index.js +4 -2
  33. package/dist/esm/components/Notifications/index.js +3 -1
  34. package/dist/esm/components/PrimaryDropdownButton/index.js +5 -11
  35. package/dist/esm/components/ProductHome/product-home.js +4 -2
  36. package/dist/esm/components/Search/index.js +5 -1
  37. package/dist/esm/components/Settings/index.js +3 -1
  38. package/dist/esm/components/SignIn/index.js +4 -2
  39. package/dist/esm/skeleton-help-button.js +4 -2
  40. package/dist/esm/skeleton-notification-button.js +3 -1
  41. package/dist/esm/skeleton-settings-button.js +3 -1
  42. package/dist/esm/skeleton-switcher-button.js +4 -1
  43. package/dist/types/components/ProductHome/product-home.d.ts +1 -1
  44. package/dist/types/components/ProductHome/types.d.ts +4 -0
  45. package/dist/types-ts4.5/components/ProductHome/product-home.d.ts +1 -1
  46. package/dist/types-ts4.5/components/ProductHome/types.d.ts +4 -0
  47. package/package.json +5 -5
@@ -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/glyph/question-circle';
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
- secondaryColor: navigation.backgroundColor
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/glyph/notification';
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(Bleed, {
34
- xcss: chevronIconStylesWithSpacingFixStyles,
35
- inline: "space.100"
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
  });
@@ -128,6 +128,7 @@ const ProductHome = ({
128
128
  onMouseDown,
129
129
  testId,
130
130
  logoMaxWidth = 260,
131
+ 'aria-label': ariaLabel,
131
132
  ...rest
132
133
  }) => {
133
134
  const theme = useTheme();
@@ -161,7 +162,8 @@ const ProductHome = ({
161
162
  href: href,
162
163
  onClick: onClick,
163
164
  onMouseDown: preventFocusRing,
164
- "data-testid": testId && `${testId}-container`
165
+ "data-testid": testId && `${testId}-container`,
166
+ "aria-label": ariaLabel
165
167
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
166
168
  }, rest), jsx("div", {
167
169
  css: [customMaxHeightStyles, productLogoStyles],
@@ -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/glyph/search';
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/glyph/settings';
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 SignInIcon from '@atlaskit/icon/glyph/sign-in';
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(SignInIcon, {
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
- secondaryColor: navigation.backgroundColor
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/glyph/app-switcher';
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/glyph/app-switcher';
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/glyph/editor/add';
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/glyph/question-circle';
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
- secondaryColor: navigation.backgroundColor
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/glyph/notification';
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(Bleed, {
34
- xcss: chevronIconStylesWithSpacingFixStyles,
35
- inline: "space.100"
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
  });
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
- var _excluded = ["icon", "logo", "siteTitle", "onClick", "href", "onMouseDown", "testId", "logoMaxWidth"];
4
+ var _excluded = ["icon", "logo", "siteTitle", "onClick", "href", "onMouseDown", "testId", "logoMaxWidth", "aria-label"];
5
5
  var _css;
6
6
  /**
7
7
  * @jsxRuntime classic
@@ -126,6 +126,7 @@ var ProductHome = function ProductHome(_ref) {
126
126
  testId = _ref.testId,
127
127
  _ref$logoMaxWidth = _ref.logoMaxWidth,
128
128
  logoMaxWidth = _ref$logoMaxWidth === void 0 ? 260 : _ref$logoMaxWidth,
129
+ ariaLabel = _ref['aria-label'],
129
130
  rest = _objectWithoutProperties(_ref, _excluded);
130
131
  var theme = useTheme();
131
132
  var primaryButton = theme.mode.primaryButton;
@@ -148,7 +149,8 @@ var ProductHome = function ProductHome(_ref) {
148
149
  href: href,
149
150
  onClick: onClick,
150
151
  onMouseDown: preventFocusRing,
151
- "data-testid": testId && "".concat(testId, "-container")
152
+ "data-testid": testId && "".concat(testId, "-container"),
153
+ "aria-label": ariaLabel
152
154
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
153
155
  }, rest), jsx("div", {
154
156
  css: [customMaxHeightStyles, productLogoStyles],
@@ -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/glyph/search';
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/glyph/settings';
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 SignInIcon from '@atlaskit/icon/glyph/sign-in';
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(SignInIcon, {
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
- secondaryColor: navigation.backgroundColor
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/glyph/app-switcher';
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
  };
@@ -11,5 +11,5 @@ import { type ProductHomeProps } from './types';
11
11
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#product-home)
12
12
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
13
13
  */
14
- declare const ProductHome: ({ icon: Icon, logo: Logo, siteTitle, onClick, href, onMouseDown, testId, logoMaxWidth, ...rest }: ProductHomeProps) => jsx.JSX.Element;
14
+ declare const ProductHome: ({ icon: Icon, logo: Logo, siteTitle, onClick, href, onMouseDown, testId, logoMaxWidth, "aria-label": ariaLabel, ...rest }: ProductHomeProps) => jsx.JSX.Element;
15
15
  export default ProductHome;
@@ -45,6 +45,10 @@ export interface ProductHomeProps {
45
45
  - Site title - `{testId}-site-title`
46
46
  */
47
47
  testId?: string;
48
+ /**
49
+ * Provide an accessible label, often used by screen readers.
50
+ */
51
+ 'aria-label'?: string;
48
52
  }
49
53
  export interface CustomProductHomeProps {
50
54
  /**
@@ -11,5 +11,5 @@ import { type ProductHomeProps } from './types';
11
11
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#product-home)
12
12
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
13
13
  */
14
- declare const ProductHome: ({ icon: Icon, logo: Logo, siteTitle, onClick, href, onMouseDown, testId, logoMaxWidth, ...rest }: ProductHomeProps) => jsx.JSX.Element;
14
+ declare const ProductHome: ({ icon: Icon, logo: Logo, siteTitle, onClick, href, onMouseDown, testId, logoMaxWidth, "aria-label": ariaLabel, ...rest }: ProductHomeProps) => jsx.JSX.Element;
15
15
  export default ProductHome;
@@ -45,6 +45,10 @@ export interface ProductHomeProps {
45
45
  - Site title - `{testId}-site-title`
46
46
  */
47
47
  testId?: string;
48
+ /**
49
+ * Provide an accessible label, often used by screen readers.
50
+ */
51
+ 'aria-label'?: string;
48
52
  }
49
53
  export interface CustomProductHomeProps {
50
54
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "4.7.6",
3
+ "version": "4.9.0",
4
4
  "description": "A horizontal navigation component for Atlassian products.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -41,15 +41,15 @@
41
41
  "dependencies": {
42
42
  "@atlaskit/analytics-namespaced-context": "^6.12.0",
43
43
  "@atlaskit/button": "^20.3.0",
44
- "@atlaskit/ds-lib": "^3.1.0",
44
+ "@atlaskit/ds-lib": "^3.2.0",
45
45
  "@atlaskit/icon": "^22.24.0",
46
46
  "@atlaskit/logo": "*",
47
47
  "@atlaskit/platform-feature-flags": "^0.3.0",
48
48
  "@atlaskit/popup": "^1.29.0",
49
- "@atlaskit/primitives": "^13.0.0",
49
+ "@atlaskit/primitives": "^13.2.0",
50
50
  "@atlaskit/theme": "^14.0.0",
51
- "@atlaskit/tokens": "^2.0.0",
52
- "@atlaskit/tooltip": "^18.8.0",
51
+ "@atlaskit/tokens": "^2.2.0",
52
+ "@atlaskit/tooltip": "^18.9.0",
53
53
  "@atlaskit/width-detector": "^4.3.0",
54
54
  "@babel/runtime": "^7.0.0",
55
55
  "@emotion/react": "^11.7.1",