@atlaskit/navigation-system 0.168.0 → 0.169.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 +12 -0
- package/dist/cjs/ui/top-nav-items/nav-logo/app-logo.js +1 -1
- package/dist/es2019/ui/top-nav-items/nav-logo/app-logo.js +1 -1
- package/dist/esm/ui/top-nav-items/nav-logo/app-logo.js +1 -1
- package/examples/company-hub-mock.tsx +1 -1
- package/examples/confluence-mock.tsx +1 -1
- package/examples/page-layout.tsx +2 -2
- package/examples/top-navigation-stress.tsx +2 -5
- package/examples/top-navigation-theming.tsx +2 -2
- package/package.json +3 -3
- package/src/ui/top-nav-items/nav-logo/app-logo.tsx +4 -8
- package/src/ui/top-nav-items/nav-logo/nav-logo.tsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlassian/navigation-system
|
|
2
2
|
|
|
3
|
+
## 0.169.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#175869](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/175869)
|
|
8
|
+
[`e7f822af7edc1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e7f822af7edc1) -
|
|
9
|
+
Updated usages of deprecated icons with replacement icons
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 0.168.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -56,7 +56,7 @@ var AppLogo = exports.AppLogo = function AppLogo(_ref) {
|
|
|
56
56
|
var hasCustomTheme = (0, _hasCustomThemeContext.useHasCustomTheme)();
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
|
-
|
|
59
|
+
* Show the tooltip if the name is truncated
|
|
60
60
|
*/
|
|
61
61
|
var canTooltipAppear = (0, _react.useCallback)(function () {
|
|
62
62
|
var text = nameRef.current;
|
|
@@ -48,7 +48,7 @@ export const AppLogo = ({
|
|
|
48
48
|
const hasCustomTheme = useHasCustomTheme();
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
|
|
51
|
+
* Show the tooltip if the name is truncated
|
|
52
52
|
*/
|
|
53
53
|
const canTooltipAppear = useCallback(() => {
|
|
54
54
|
const text = nameRef.current;
|
|
@@ -47,7 +47,7 @@ export var AppLogo = function AppLogo(_ref) {
|
|
|
47
47
|
var hasCustomTheme = useHasCustomTheme();
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
|
-
|
|
50
|
+
* Show the tooltip if the name is truncated
|
|
51
51
|
*/
|
|
52
52
|
var canTooltipAppear = useCallback(function () {
|
|
53
53
|
var text = nameRef.current;
|
|
@@ -14,7 +14,7 @@ import { cssMap } from '@atlaskit/css';
|
|
|
14
14
|
import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
15
15
|
import Heading from '@atlaskit/heading';
|
|
16
16
|
import AiChatIcon from '@atlaskit/icon/core/ai-chat';
|
|
17
|
-
import CrossIcon from '@atlaskit/icon/core/
|
|
17
|
+
import CrossIcon from '@atlaskit/icon/core/cross';
|
|
18
18
|
import GrowDiagonalIcon from '@atlaskit/icon/core/grow-diagonal';
|
|
19
19
|
import { ConfluenceIcon, ConfluenceLogo } from '@atlaskit/logo';
|
|
20
20
|
import { TopNavButton } from '@atlaskit/navigation-system/experimental/top-nav-button';
|
|
@@ -19,7 +19,7 @@ import AppsIcon from '@atlaskit/icon/core/apps';
|
|
|
19
19
|
import BoardIcon from '@atlaskit/icon/core/board';
|
|
20
20
|
import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
|
|
21
21
|
import ClockIcon from '@atlaskit/icon/core/clock';
|
|
22
|
-
import CrossIcon from '@atlaskit/icon/core/
|
|
22
|
+
import CrossIcon from '@atlaskit/icon/core/cross';
|
|
23
23
|
import GrowDiagonalIcon from '@atlaskit/icon/core/grow-diagonal';
|
|
24
24
|
import InboxIcon from '@atlaskit/icon/core/inbox';
|
|
25
25
|
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
package/examples/page-layout.tsx
CHANGED
|
@@ -11,7 +11,7 @@ import { IconButton } from '@atlaskit/button/new';
|
|
|
11
11
|
import AddIcon from '@atlaskit/icon/core/add';
|
|
12
12
|
import HomeIcon from '@atlaskit/icon/core/home';
|
|
13
13
|
import MoreIcon from '@atlaskit/icon/core/show-more-horizontal';
|
|
14
|
-
import
|
|
14
|
+
import StatusWarningIcon from '@atlaskit/icon/core/status-warning';
|
|
15
15
|
import BoardIcon from '@atlaskit/icon/glyph/board';
|
|
16
16
|
import { MenuList } from '@atlaskit/navigation-system';
|
|
17
17
|
import { Aside } from '@atlaskit/navigation-system/layout/aside';
|
|
@@ -156,7 +156,7 @@ function BannerToggleAction({
|
|
|
156
156
|
return (
|
|
157
157
|
<Hide below="sm">
|
|
158
158
|
<MenuListItem>
|
|
159
|
-
<IconButton icon={
|
|
159
|
+
<IconButton icon={StatusWarningIcon} label={label} onClick={onClick} isSelected={isSelected} />
|
|
160
160
|
</MenuListItem>
|
|
161
161
|
</Hide>
|
|
162
162
|
);
|
|
@@ -41,10 +41,7 @@ import { WithResponsiveViewport } from './utils/example-utils';
|
|
|
41
41
|
import { MockRoot } from './utils/mock-root';
|
|
42
42
|
import { MockSearch } from './utils/mock-search';
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
const connieNavLogo = (
|
|
46
|
-
<AppLogo href="" icon={ConfluenceIcon} name="Confluence" label="Home page" />
|
|
47
|
-
);
|
|
44
|
+
const connieNavLogo = <AppLogo href="" icon={ConfluenceIcon} name="Confluence" label="Home page" />;
|
|
48
45
|
// Stress test nav responsive behaviour with a wide logo
|
|
49
46
|
const wideNavLogo = (
|
|
50
47
|
<NavLogo
|
|
@@ -53,7 +50,7 @@ const wideNavLogo = (
|
|
|
53
50
|
logo={() => <img alt="" src={placeholder200x20} />}
|
|
54
51
|
label="Home page"
|
|
55
52
|
/>
|
|
56
|
-
)
|
|
53
|
+
);
|
|
57
54
|
|
|
58
55
|
const defaultTopNavEnd = (
|
|
59
56
|
<Fragment>
|
|
@@ -73,8 +73,8 @@ const TopNavigationThemingInstance = ({ customTheme }: { customTheme?: CustomThe
|
|
|
73
73
|
isSelected={isAppSwitcherSelected}
|
|
74
74
|
/>
|
|
75
75
|
{fg('platform-team25-app-icon-tiles') ? (
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
<AppLogo
|
|
77
|
+
href="http://www.atlassian.design"
|
|
78
78
|
icon={JiraIcon}
|
|
79
79
|
name="Jira"
|
|
80
80
|
label="Home page"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/navigation-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.169.0",
|
|
4
4
|
"description": "The latest navigation system for Atlassian products.",
|
|
5
5
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
6
6
|
"author": "Atlassian Pty Ltd",
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"@atlaskit/button": "^23.2.0",
|
|
117
117
|
"@atlaskit/css": "^0.12.0",
|
|
118
118
|
"@atlaskit/ds-lib": "^4.0.0",
|
|
119
|
-
"@atlaskit/icon": "^27.
|
|
119
|
+
"@atlaskit/icon": "^27.3.0",
|
|
120
120
|
"@atlaskit/layering": "^3.0.0",
|
|
121
121
|
"@atlaskit/logo": "^19.5.0",
|
|
122
122
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
"@atlaskit/page-header": "^12.0.0",
|
|
157
157
|
"@atlaskit/page-layout": "^4.2.0",
|
|
158
158
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.1.0",
|
|
159
|
-
"@atlaskit/select": "^21.
|
|
159
|
+
"@atlaskit/select": "^21.1.0",
|
|
160
160
|
"@atlaskit/skeleton": "^2.0.0",
|
|
161
161
|
"@atlaskit/textfield": "^8.0.0",
|
|
162
162
|
"@atlassian/feature-flags-test-utils": "^0.3.0",
|
|
@@ -9,9 +9,7 @@ import { cssMap, cx, jsx } from '@compiled/react';
|
|
|
9
9
|
import type { LogoProps } from '@atlaskit/logo';
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
11
|
import { Anchor, Inline, Text } from '@atlaskit/primitives';
|
|
12
|
-
import type {
|
|
13
|
-
IconProps as TempIconProps
|
|
14
|
-
} from '@atlaskit/temp-nav-app-icons/types';
|
|
12
|
+
import type { IconProps as TempIconProps } from '@atlaskit/temp-nav-app-icons/types';
|
|
15
13
|
import { token } from '@atlaskit/tokens';
|
|
16
14
|
import Tooltip from '@atlaskit/tooltip';
|
|
17
15
|
|
|
@@ -19,7 +17,6 @@ import { useHasCustomTheme } from '../themed/has-custom-theme-context';
|
|
|
19
17
|
|
|
20
18
|
import { LogoRenderer } from './logo-renderer';
|
|
21
19
|
|
|
22
|
-
|
|
23
20
|
const anchorStyles = cssMap({
|
|
24
21
|
root: {
|
|
25
22
|
display: 'flex',
|
|
@@ -104,7 +101,6 @@ function isTextClamped(element: HTMLElement): boolean {
|
|
|
104
101
|
return element.scrollHeight > element.clientHeight;
|
|
105
102
|
}
|
|
106
103
|
|
|
107
|
-
|
|
108
104
|
/**
|
|
109
105
|
* __App logo__
|
|
110
106
|
*
|
|
@@ -148,7 +144,7 @@ export const AppLogo = ({
|
|
|
148
144
|
const hasCustomTheme = useHasCustomTheme();
|
|
149
145
|
|
|
150
146
|
/**
|
|
151
|
-
|
|
147
|
+
* Show the tooltip if the name is truncated
|
|
152
148
|
*/
|
|
153
149
|
const canTooltipAppear = useCallback((): boolean => {
|
|
154
150
|
const text = nameRef.current;
|
|
@@ -188,7 +184,7 @@ export const AppLogo = ({
|
|
|
188
184
|
ignoreTooltipPointerEvents
|
|
189
185
|
hideTooltipOnMouseDown
|
|
190
186
|
// We don't need a duplicate hidden element containing tooltip content
|
|
191
|
-
|
|
187
|
+
// as the content of the tooltip matches what is rendered in the nav item.
|
|
192
188
|
isScreenReaderAnnouncementDisabled
|
|
193
189
|
canAppear={canTooltipAppear}
|
|
194
190
|
>
|
|
@@ -210,4 +206,4 @@ export const AppLogo = ({
|
|
|
210
206
|
</Inline>
|
|
211
207
|
</Anchor>
|
|
212
208
|
);
|
|
213
|
-
};
|
|
209
|
+
};
|
|
@@ -222,7 +222,7 @@ export const NavLogo = ({
|
|
|
222
222
|
xcss={cx(
|
|
223
223
|
anchorStyles.root,
|
|
224
224
|
fg('platform_design_system_nav_logo_interaction_states') &&
|
|
225
|
-
|
|
225
|
+
anchorStyles.customLogoBorderRadius,
|
|
226
226
|
fg('platform_design_system_nav_logo_interaction_states') && anchorStyles.newMargin,
|
|
227
227
|
fg('platform_design_system_nav_logo_interaction_states') &&
|
|
228
228
|
(hasCustomTheme
|