@atlaskit/navigation-system 11.2.2 → 11.3.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 +36 -0
- package/dist/cjs/components/skip-links/skip-link.js +2 -2
- package/dist/cjs/components/skip-links/skip-links-container.js +2 -2
- package/dist/cjs/ui/fhs-rollout/is-custom-is-fhs-enabled-context.js +2 -2
- package/dist/cjs/ui/fhs-rollout/is-fhs-enabled-context.js +6 -6
- package/dist/cjs/ui/fhs-rollout/is-fhs-enabled-provider.js +14 -18
- package/dist/cjs/ui/fhs-rollout/use-is-fhs-enabled.js +5 -5
- package/dist/cjs/ui/page-layout/banner.compiled.css +0 -1
- package/dist/cjs/ui/page-layout/banner.js +2 -5
- package/dist/cjs/ui/page-layout/constants.js +1 -13
- package/dist/cjs/ui/page-layout/panel-splitter/panel-splitter.compiled.css +0 -1
- package/dist/cjs/ui/page-layout/panel-splitter/panel-splitter.js +2 -5
- package/dist/cjs/ui/page-layout/panel-splitter/side-nav-panel-splitter.js +0 -68
- package/dist/cjs/ui/page-layout/ribbon.js +0 -7
- package/dist/cjs/ui/page-layout/side-nav/side-nav-content.js +1 -9
- package/dist/cjs/ui/page-layout/side-nav/side-nav.compiled.css +3 -10
- package/dist/cjs/ui/page-layout/side-nav/side-nav.js +21 -54
- package/dist/cjs/ui/page-layout/top-nav/top-nav-end.compiled.css +0 -1
- package/dist/cjs/ui/page-layout/top-nav/top-nav-end.js +4 -7
- package/dist/cjs/ui/page-layout/top-nav/top-nav-start.compiled.css +2 -12
- package/dist/cjs/ui/page-layout/top-nav/top-nav-start.js +9 -250
- package/dist/cjs/ui/page-layout/top-nav/top-nav.compiled.css +1 -15
- package/dist/cjs/ui/page-layout/top-nav/top-nav.js +5 -16
- package/dist/cjs/ui/top-nav-items/nav-logo/app-logo.compiled.css +0 -2
- package/dist/cjs/ui/top-nav-items/nav-logo/app-logo.js +13 -16
- package/dist/cjs/ui/top-nav-items/nav-logo/custom-logo.compiled.css +0 -2
- package/dist/cjs/ui/top-nav-items/nav-logo/custom-logo.js +5 -8
- package/dist/cjs/ui/top-nav-items/search.compiled.css +3 -2
- package/dist/cjs/ui/top-nav-items/search.js +9 -11
- package/dist/cjs/ui/top-nav-items/themed/themed-anchor.js +2 -2
- package/dist/cjs/ui/top-nav-items/themed/themed-pressable.js +2 -2
- package/dist/es2019/components/skip-links/skip-link.js +1 -1
- package/dist/es2019/components/skip-links/skip-links-container.js +1 -1
- package/dist/es2019/ui/fhs-rollout/is-custom-is-fhs-enabled-context.js +2 -2
- package/dist/es2019/ui/fhs-rollout/is-fhs-enabled-context.js +6 -4
- package/dist/es2019/ui/fhs-rollout/is-fhs-enabled-provider.js +12 -17
- package/dist/es2019/ui/fhs-rollout/use-is-fhs-enabled.js +5 -8
- package/dist/es2019/ui/page-layout/banner.compiled.css +0 -1
- package/dist/es2019/ui/page-layout/banner.js +2 -5
- package/dist/es2019/ui/page-layout/chat-panel.js +1 -1
- package/dist/es2019/ui/page-layout/constants.js +0 -12
- package/dist/es2019/ui/page-layout/panel-splitter/panel-splitter.compiled.css +0 -1
- package/dist/es2019/ui/page-layout/panel-splitter/panel-splitter.js +2 -5
- package/dist/es2019/ui/page-layout/panel-splitter/side-nav-panel-splitter.js +2 -61
- package/dist/es2019/ui/page-layout/ribbon.js +0 -7
- package/dist/es2019/ui/page-layout/side-nav/side-nav-content.js +2 -8
- package/dist/es2019/ui/page-layout/side-nav/side-nav.compiled.css +3 -10
- package/dist/es2019/ui/page-layout/side-nav/side-nav.js +5 -44
- package/dist/es2019/ui/page-layout/top-nav/top-nav-end.compiled.css +0 -1
- package/dist/es2019/ui/page-layout/top-nav/top-nav-end.js +3 -6
- package/dist/es2019/ui/page-layout/top-nav/top-nav-start.compiled.css +2 -12
- package/dist/es2019/ui/page-layout/top-nav/top-nav-start.js +6 -243
- package/dist/es2019/ui/page-layout/top-nav/top-nav.compiled.css +1 -15
- package/dist/es2019/ui/page-layout/top-nav/top-nav.js +5 -18
- package/dist/es2019/ui/top-nav-items/nav-logo/app-logo.compiled.css +0 -2
- package/dist/es2019/ui/top-nav-items/nav-logo/app-logo.js +9 -12
- package/dist/es2019/ui/top-nav-items/nav-logo/custom-logo.compiled.css +0 -2
- package/dist/es2019/ui/top-nav-items/nav-logo/custom-logo.js +4 -7
- package/dist/es2019/ui/top-nav-items/search.compiled.css +3 -2
- package/dist/es2019/ui/top-nav-items/search.js +6 -8
- package/dist/es2019/ui/top-nav-items/themed/themed-anchor.js +1 -1
- package/dist/es2019/ui/top-nav-items/themed/themed-pressable.js +1 -1
- package/dist/esm/components/skip-links/skip-link.js +1 -1
- package/dist/esm/components/skip-links/skip-links-container.js +1 -1
- package/dist/esm/ui/fhs-rollout/is-custom-is-fhs-enabled-context.js +2 -2
- package/dist/esm/ui/fhs-rollout/is-fhs-enabled-context.js +6 -6
- package/dist/esm/ui/fhs-rollout/is-fhs-enabled-provider.js +13 -16
- package/dist/esm/ui/fhs-rollout/use-is-fhs-enabled.js +5 -6
- package/dist/esm/ui/page-layout/banner.compiled.css +0 -1
- package/dist/esm/ui/page-layout/banner.js +2 -5
- package/dist/esm/ui/page-layout/chat-panel.js +1 -1
- package/dist/esm/ui/page-layout/constants.js +0 -12
- package/dist/esm/ui/page-layout/panel-splitter/panel-splitter.compiled.css +0 -1
- package/dist/esm/ui/page-layout/panel-splitter/panel-splitter.js +2 -5
- package/dist/esm/ui/page-layout/panel-splitter/side-nav-panel-splitter.js +2 -71
- package/dist/esm/ui/page-layout/ribbon.js +0 -7
- package/dist/esm/ui/page-layout/side-nav/side-nav-content.js +2 -10
- package/dist/esm/ui/page-layout/side-nav/side-nav.compiled.css +3 -10
- package/dist/esm/ui/page-layout/side-nav/side-nav.js +22 -55
- package/dist/esm/ui/page-layout/top-nav/top-nav-end.compiled.css +0 -1
- package/dist/esm/ui/page-layout/top-nav/top-nav-end.js +3 -6
- package/dist/esm/ui/page-layout/top-nav/top-nav-start.compiled.css +2 -12
- package/dist/esm/ui/page-layout/top-nav/top-nav-start.js +10 -250
- package/dist/esm/ui/page-layout/top-nav/top-nav.compiled.css +1 -15
- package/dist/esm/ui/page-layout/top-nav/top-nav.js +5 -16
- package/dist/esm/ui/top-nav-items/nav-logo/app-logo.compiled.css +0 -2
- package/dist/esm/ui/top-nav-items/nav-logo/app-logo.js +9 -12
- package/dist/esm/ui/top-nav-items/nav-logo/custom-logo.compiled.css +0 -2
- package/dist/esm/ui/top-nav-items/nav-logo/custom-logo.js +4 -7
- package/dist/esm/ui/top-nav-items/search.compiled.css +3 -2
- package/dist/esm/ui/top-nav-items/search.js +6 -8
- package/dist/esm/ui/top-nav-items/themed/themed-anchor.js +1 -1
- package/dist/esm/ui/top-nav-items/themed/themed-pressable.js +1 -1
- package/dist/types/ui/fhs-rollout/is-custom-is-fhs-enabled-context.d.ts +2 -2
- package/dist/types/ui/fhs-rollout/is-fhs-enabled-context.d.ts +5 -2
- package/dist/types/ui/fhs-rollout/is-fhs-enabled-provider.d.ts +9 -2
- package/dist/types/ui/fhs-rollout/use-is-fhs-enabled.d.ts +4 -1
- package/dist/types/ui/page-layout/constants.d.ts +0 -4
- package/dist/types/ui/page-layout/dangerously-hoist-css-var-to-document-root.d.ts +1 -1
- package/dist/types/ui/page-layout/panel-splitter/get-width-from-drag-location.d.ts +1 -1
- package/dist/types/ui/page-layout/panel-splitter/panel-splitter.d.ts +0 -2
- package/dist/types/ui/page-layout/side-nav/side-nav.d.ts +0 -1
- package/dist/types/ui/top-nav-items/themed/themed-anchor.d.ts +1 -1
- package/dist/types/ui/top-nav-items/themed/themed-button.d.ts +1 -1
- package/dist/types/ui/top-nav-items/themed/themed-icon-button.d.ts +1 -1
- package/dist/types/ui/top-nav-items/themed/themed-link-button.d.ts +1 -1
- package/dist/types/ui/top-nav-items/themed/themed-link-icon-button.d.ts +1 -1
- package/dist/types/ui/top-nav-items/themed/themed-pressable.d.ts +1 -1
- package/package.json +8 -10
|
@@ -6,7 +6,6 @@ import { useContext } from 'react';
|
|
|
6
6
|
import { componentWithFG } from '@atlaskit/platform-feature-flags-react/component-with-fg';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
import { useSkipLinkInternal } from '../../../context/skip-links/use-skip-link-internal';
|
|
9
|
-
import { useIsFhsEnabled } from '../../fhs-rollout/use-is-fhs-enabled';
|
|
10
9
|
import { HasCustomThemeContext } from '../../top-nav-items/themed/has-custom-theme-context';
|
|
11
10
|
import { HasDefaultBackgroundColorContext } from '../../top-nav-items/themed/has-default-background-color-context';
|
|
12
11
|
import { useCustomTheme } from '../../top-nav-items/themed/use-custom-theme';
|
|
@@ -15,7 +14,6 @@ import { UNSAFE_topNavVar, topNavMountedVar } from '../constants';
|
|
|
15
14
|
import { DangerouslyHoistCssVarToDocumentRoot } from '../dangerously-hoist-css-var-to-document-root';
|
|
16
15
|
import { HoistCssVarToLocalGrid } from '../hoist-css-var-to-local-grid';
|
|
17
16
|
import { DangerouslyHoistSlotSizes } from '../hoist-slot-sizes-context';
|
|
18
|
-
import { useSideNavVisibility } from '../side-nav/use-side-nav-visibility';
|
|
19
17
|
import { useLayoutId } from '../use-layout-id';
|
|
20
18
|
|
|
21
19
|
/**
|
|
@@ -27,10 +25,7 @@ import { useLayoutId } from '../use-layout-id';
|
|
|
27
25
|
* - The background sits below the expanded side nav
|
|
28
26
|
*/
|
|
29
27
|
var styles = {
|
|
30
|
-
root: "_nd5l8cbt _zulpu2gc _18zrutpp _179ria51 _1e0c11p5 _yv0e1mfv _4cvr1h6o _bfhkvuon _vchhusvi _4t3i1dgc _152t1nws _kqsw1if8 _1pbyegat _d6vu1bgi _1j8b18ax"
|
|
31
|
-
fullHeightSidebar: "_18zrze3t _179rglyw _lcxv1wug _bfhkvuon _1pby11wp _aetrb3bt _18postnw _1gufidpf _1czdidpf _g0nf3tht _1beue4h9 _uaeunqa1 _1cte1l7x _pdlmutpp",
|
|
32
|
-
fullHeightSidebarExpanded: "_1rqt16a9 _jh1g18ax",
|
|
33
|
-
fullHeightSidebarCustomTheming: "_1m5lglyw"
|
|
28
|
+
root: "_nd5l8cbt _zulpu2gc _18zrutpp _179ria51 _1e0c11p5 _yv0e1mfv _4cvr1h6o _bfhkvuon _vchhusvi _4t3i1dgc _152t1nws _kqsw1if8 _1pbyegat _d6vu1bgi _1j8b18ax"
|
|
34
29
|
};
|
|
35
30
|
/**
|
|
36
31
|
* The top nav layout area. It will display at the top of the screen, below the banner if one is present.
|
|
@@ -44,7 +39,6 @@ function TopNavOld(_ref) {
|
|
|
44
39
|
testId = _ref.testId,
|
|
45
40
|
providedId = _ref.id,
|
|
46
41
|
customThemeConfig = _ref.customTheme;
|
|
47
|
-
var isFhsEnabled = useIsFhsEnabled();
|
|
48
42
|
var dangerouslyHoistSlotSizes = useContext(DangerouslyHoistSlotSizes);
|
|
49
43
|
var id = useLayoutId({
|
|
50
44
|
providedId: providedId
|
|
@@ -54,16 +48,14 @@ function TopNavOld(_ref) {
|
|
|
54
48
|
label: skipLinkLabel,
|
|
55
49
|
isHidden: fg('platform_dst_nav4_skip_link_a11y_1')
|
|
56
50
|
});
|
|
57
|
-
var height = heightProp !== null && heightProp !== void 0 ? heightProp :
|
|
51
|
+
var height = heightProp !== null && heightProp !== void 0 ? heightProp : fg('platform_dst_ads_appswitcher_improvements') ? 56 : 48;
|
|
58
52
|
var customTheme = useCustomTheme(customThemeConfig);
|
|
59
|
-
var _useSideNavVisibility = useSideNavVisibility(),
|
|
60
|
-
isExpandedOnDesktop = _useSideNavVisibility.isExpandedOnDesktop;
|
|
61
53
|
return /*#__PURE__*/React.createElement(HasCustomThemeContext.Provider, {
|
|
62
54
|
value: customTheme.isEnabled
|
|
63
55
|
}, /*#__PURE__*/React.createElement("header", {
|
|
64
56
|
id: id,
|
|
65
57
|
"data-layout-slot": true,
|
|
66
|
-
className: ax([styles.root,
|
|
58
|
+
className: ax([styles.root, xcss]),
|
|
67
59
|
"data-testid": testId
|
|
68
60
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
69
61
|
,
|
|
@@ -96,7 +88,6 @@ function TopNavNew(_ref2) {
|
|
|
96
88
|
testId = _ref2.testId,
|
|
97
89
|
providedId = _ref2.id,
|
|
98
90
|
customThemeConfig = _ref2.customTheme;
|
|
99
|
-
var isFhsEnabled = useIsFhsEnabled();
|
|
100
91
|
var dangerouslyHoistSlotSizes = useContext(DangerouslyHoistSlotSizes);
|
|
101
92
|
var id = useLayoutId({
|
|
102
93
|
providedId: providedId
|
|
@@ -106,11 +97,9 @@ function TopNavNew(_ref2) {
|
|
|
106
97
|
label: skipLinkLabel,
|
|
107
98
|
isHidden: fg('platform_dst_nav4_skip_link_a11y_1')
|
|
108
99
|
});
|
|
109
|
-
var height = heightProp !== null && heightProp !== void 0 ? heightProp :
|
|
100
|
+
var height = heightProp !== null && heightProp !== void 0 ? heightProp : fg('platform_dst_ads_appswitcher_improvements') ? 56 : 48;
|
|
110
101
|
var customTheme = useCustomThemeNew(customThemeConfig);
|
|
111
102
|
var hasDefaultBackground = customTheme.isEnabled ? customTheme.hasDefaultBackground : true;
|
|
112
|
-
var _useSideNavVisibility2 = useSideNavVisibility(),
|
|
113
|
-
isExpandedOnDesktop = _useSideNavVisibility2.isExpandedOnDesktop;
|
|
114
103
|
return /*#__PURE__*/React.createElement(HasCustomThemeContext.Provider, {
|
|
115
104
|
value: customTheme.isEnabled
|
|
116
105
|
}, /*#__PURE__*/React.createElement(HasDefaultBackgroundColorContext.Provider, {
|
|
@@ -118,7 +107,7 @@ function TopNavNew(_ref2) {
|
|
|
118
107
|
}, /*#__PURE__*/React.createElement("header", {
|
|
119
108
|
id: id,
|
|
120
109
|
"data-layout-slot": true,
|
|
121
|
-
className: ax([styles.root,
|
|
110
|
+
className: ax([styles.root, xcss]),
|
|
122
111
|
"data-testid": testId
|
|
123
112
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
124
113
|
,
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
._1e0c1txw{display:flex}
|
|
6
6
|
._1e0cglyw{display:none}
|
|
7
7
|
._1o9zidpf{flex-shrink:0}
|
|
8
|
-
._1o9zkb7n{flex-shrink:1}
|
|
9
8
|
._1pfh1i6y{margin-block-start:var(--ds-space-negative-025,-2px)}
|
|
10
9
|
._1reo15vq{overflow-x:hidden}
|
|
11
10
|
._1toh1r31._1toh1r31{text-decoration-color:currentColor}
|
|
@@ -17,7 +16,6 @@
|
|
|
17
16
|
._ahbq1b66{margin-inline-start:var(--ds-space-050,4px)}
|
|
18
17
|
._c71l1tcg{max-height:24px}
|
|
19
18
|
._mrqmnqa1._mrqmnqa1{text-decoration-style:solid}
|
|
20
|
-
._p12f1osq{max-width:100%}
|
|
21
19
|
._p12f1tcg{max-width:24px}
|
|
22
20
|
._p12fnklw{max-width:20pc}
|
|
23
21
|
._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
|
|
@@ -4,24 +4,22 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React, { useCallback, useRef } from 'react';
|
|
5
5
|
import { cx } from '@compiled/react';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
|
-
import { Anchor
|
|
7
|
+
import { Anchor } from '@atlaskit/primitives/compiled/anchor';
|
|
8
|
+
import { Inline } from '@atlaskit/primitives/compiled/inline';
|
|
9
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
8
10
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
9
|
-
import { useIsFhsEnabled } from '../../fhs-rollout/use-is-fhs-enabled';
|
|
10
11
|
import { useHasCustomTheme } from '../themed/has-custom-theme-context';
|
|
11
12
|
import { LogoRenderer } from './logo-renderer';
|
|
12
13
|
var anchorStyles = {
|
|
13
14
|
root: "_2rko1mok _1e0c1txw _4cvr1h6o _4t3izwfg _1o9zidpf _ahbq1b66 _1toh1r31 _5jyqglyw _mrqmnqa1 _1w901kw7",
|
|
14
15
|
interactionStates: "_irr31dpa _1di69yc7",
|
|
15
|
-
interactionStatesCustomTheming: "_irr31rps _1di6yhlj"
|
|
16
|
-
fullHeightSidebar: "_1reo15vq _18m915vq _1o9zkb7n"
|
|
16
|
+
interactionStatesCustomTheming: "_irr31rps _1di6yhlj"
|
|
17
17
|
};
|
|
18
18
|
var logoWrapperStyles = {
|
|
19
|
-
root: "_18zr1b66"
|
|
20
|
-
fullHeightSidebar: "_p12f1osq"
|
|
19
|
+
root: "_18zr1b66"
|
|
21
20
|
};
|
|
22
21
|
var iconContainerStyles = {
|
|
23
|
-
root: "_1reo15vq _18m915vq _1e0c1txw _p12f1tcg _c71l1tcg"
|
|
24
|
-
fullHeightSidebar: "_1o9zidpf"
|
|
22
|
+
root: "_1reo15vq _18m915vq _1e0c1txw _p12f1tcg _c71l1tcg"
|
|
25
23
|
};
|
|
26
24
|
var logoTextStyles = {
|
|
27
25
|
root: "_1bsb1ris _p12fnklw _uiztglyw _y4tiv77o _1e0cglyw _2lx21bp4 _1bah1h6o _10y41txw"
|
|
@@ -48,7 +46,6 @@ export var AppLogo = function AppLogo(_ref) {
|
|
|
48
46
|
href = _ref.href,
|
|
49
47
|
icon = _ref.icon,
|
|
50
48
|
onClick = _ref.onClick;
|
|
51
|
-
var isFhsEnabled = useIsFhsEnabled();
|
|
52
49
|
var ref = useRef(null);
|
|
53
50
|
var nameRef = useRef(null);
|
|
54
51
|
var hasCustomTheme = useHasCustomTheme();
|
|
@@ -68,14 +65,14 @@ export var AppLogo = function AppLogo(_ref) {
|
|
|
68
65
|
// @ts-expect-error - non-standard values for `borderRadius` and the custom theming interaction states
|
|
69
66
|
// eslint-disable-next-line @compiled/no-suppress-xcss
|
|
70
67
|
,
|
|
71
|
-
xcss: cx(anchorStyles.root, hasCustomTheme ? anchorStyles.interactionStatesCustomTheming : anchorStyles.interactionStates
|
|
68
|
+
xcss: cx(anchorStyles.root, hasCustomTheme ? anchorStyles.interactionStatesCustomTheming : anchorStyles.interactionStates),
|
|
72
69
|
onClick: onClick
|
|
73
70
|
}, /*#__PURE__*/React.createElement(Inline, {
|
|
74
71
|
space: "space.075",
|
|
75
72
|
alignBlock: "center",
|
|
76
|
-
xcss:
|
|
73
|
+
xcss: logoWrapperStyles.root
|
|
77
74
|
}, /*#__PURE__*/React.createElement("div", {
|
|
78
|
-
className: ax([iconContainerStyles.root
|
|
75
|
+
className: ax([iconContainerStyles.root])
|
|
79
76
|
}, /*#__PURE__*/React.createElement(LogoRenderer, {
|
|
80
77
|
logoOrIcon: icon
|
|
81
78
|
})), /*#__PURE__*/React.createElement("span", {
|
|
@@ -5,12 +5,10 @@
|
|
|
5
5
|
._1e0cglyw{display:none}
|
|
6
6
|
._1jpx1f51 img{object-fit:contain}
|
|
7
7
|
._1reo15vq{overflow-x:hidden}
|
|
8
|
-
._1ul91tcg{min-width:24px}
|
|
9
8
|
._4cvr1h6o{align-items:center}
|
|
10
9
|
._4t3izwfg{height:2pc}
|
|
11
10
|
._ahbq1b66{margin-inline-start:var(--ds-space-050,4px)}
|
|
12
11
|
._bna71tcg img{height:24px}
|
|
13
|
-
._p12f1osq{max-width:100%}
|
|
14
12
|
._p12f1tcg{max-width:24px}
|
|
15
13
|
._p12fnklw{max-width:20pc}
|
|
16
14
|
._rtys1kw7 img{max-width:inherit}
|
|
@@ -3,8 +3,7 @@ import "./custom-logo.compiled.css";
|
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useEffect, useRef } from 'react';
|
|
5
5
|
import { cx } from '@compiled/react';
|
|
6
|
-
import { Anchor } from '@atlaskit/primitives/compiled';
|
|
7
|
-
import { useIsFhsEnabled } from '../../fhs-rollout/use-is-fhs-enabled';
|
|
6
|
+
import { Anchor } from '@atlaskit/primitives/compiled/anchor';
|
|
8
7
|
import { useHasCustomTheme } from '../themed/has-custom-theme-context';
|
|
9
8
|
import { LogoRenderer } from './logo-renderer';
|
|
10
9
|
var anchorStyles = {
|
|
@@ -15,8 +14,7 @@ var anchorStyles = {
|
|
|
15
14
|
newInteractionStatesCustomTheming: "_irr31rps _1di6yhlj"
|
|
16
15
|
};
|
|
17
16
|
var sharedIconOrLogoContainerStyles = {
|
|
18
|
-
root: "_1reo15vq _18m915vq _18zr1b66 _bna71tcg _rtys1kw7 _1jpx1f51"
|
|
19
|
-
withFullHeightSidebar: "_p12f1osq _1ul91tcg"
|
|
17
|
+
root: "_1reo15vq _18m915vq _18zr1b66 _bna71tcg _rtys1kw7 _1jpx1f51"
|
|
20
18
|
};
|
|
21
19
|
var iconContainerStyles = {
|
|
22
20
|
root: "_1e0c1txw _p12f1tcg _vchh1ntv _10y4glyw"
|
|
@@ -71,7 +69,6 @@ export var CustomLogo = function CustomLogo(_ref) {
|
|
|
71
69
|
}
|
|
72
70
|
}, []);
|
|
73
71
|
var hasCustomTheme = useHasCustomTheme();
|
|
74
|
-
var isFhsEnabled = useIsFhsEnabled();
|
|
75
72
|
return /*#__PURE__*/React.createElement(Anchor, {
|
|
76
73
|
ref: ref,
|
|
77
74
|
"aria-label": label,
|
|
@@ -82,11 +79,11 @@ export var CustomLogo = function CustomLogo(_ref) {
|
|
|
82
79
|
xcss: cx(anchorStyles.root, anchorStyles.customLogoBorderRadius, anchorStyles.newMargin, hasCustomTheme ? anchorStyles.newInteractionStatesCustomTheming : anchorStyles.newInteractionStates),
|
|
83
80
|
onClick: onClick
|
|
84
81
|
}, /*#__PURE__*/React.createElement("div", {
|
|
85
|
-
className: ax([sharedIconOrLogoContainerStyles.root, iconContainerStyles.root
|
|
82
|
+
className: ax([sharedIconOrLogoContainerStyles.root, iconContainerStyles.root])
|
|
86
83
|
}, /*#__PURE__*/React.createElement(LogoRenderer, {
|
|
87
84
|
logoOrIcon: icon
|
|
88
85
|
})), /*#__PURE__*/React.createElement("div", {
|
|
89
|
-
className: ax([sharedIconOrLogoContainerStyles.root, logoContainerStyles.root
|
|
86
|
+
className: ax([sharedIconOrLogoContainerStyles.root, logoContainerStyles.root])
|
|
90
87
|
}, /*#__PURE__*/React.createElement(LogoRenderer, {
|
|
91
88
|
logoOrIcon: logo
|
|
92
89
|
})));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
._2rko1qi0{border-radius:var(--ds-radius-medium,6px)}
|
|
1
|
+
._2rko1qi0{border-radius:var(--ds-radius-medium,6px)}
|
|
2
|
+
._v564k6bl{transition:var(--ds-button-hovered,background-color border-color .15s cubic-bezier(.4,1,.6,1))}._18zr12x7{padding-inline:var(--ds-space-075,6px)}
|
|
2
3
|
._1ii7kb7n{grid-row:1}
|
|
3
4
|
._1rjcze3t{padding-block:var(--ds-space-0,0)}
|
|
4
5
|
._yyhy11wp{grid-column:3}
|
|
@@ -12,9 +13,9 @@
|
|
|
12
13
|
._80om1kdv{cursor:text}
|
|
13
14
|
._bfhk1j9a{background-color:var(--ds-background-input,#fff)}
|
|
14
15
|
._p12f1kvu{max-width:680px}
|
|
15
|
-
._p12fktbq{max-width:780px}
|
|
16
16
|
._vchhusvi{box-sizing:border-box}
|
|
17
17
|
._yv0e1mfv{grid-template-columns:auto 1fr auto}
|
|
18
18
|
._irr3l4ek:hover{background-color:var(--ds-background-input-hovered,#f8f8f8)}
|
|
19
|
+
._1ggl5xtf:active{transition:var(--ds-button-pressed,background-color border-color .15s cubic-bezier(.4,1,.6,1))}
|
|
19
20
|
._1di6r01l:active{background-color:var(--ds-background-input-pressed,#fff)}
|
|
20
21
|
@media (min-width:30rem){._114b11p5{display:grid}}
|
|
@@ -2,18 +2,17 @@
|
|
|
2
2
|
import "./search.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { Fragment } from 'react';
|
|
5
|
-
import { cx } from '@atlaskit/css';
|
|
6
5
|
import SearchIcon from '@atlaskit/icon/core/search';
|
|
7
6
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
|
-
import { Pressable
|
|
9
|
-
import {
|
|
7
|
+
import { Pressable } from '@atlaskit/primitives/compiled/pressable';
|
|
8
|
+
import { Show } from '@atlaskit/primitives/compiled/show';
|
|
9
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
10
10
|
import { IconButton } from './themed/icon-button';
|
|
11
11
|
var styles = {
|
|
12
|
-
root: "_2rko1qi0 _1rjcze3t _18zr12x7 _yv0e1mfv _4cvr1h6o _bfhk1j9a _vchhusvi _80om1kdv _1e0cglyw _4t3izwfg _p12f1kvu _1bsb1osq _irr3l4ek _1di6r01l _114b11p5",
|
|
12
|
+
root: "_2rko1qi0 _v564k6bl _1rjcze3t _18zr12x7 _yv0e1mfv _4cvr1h6o _bfhk1j9a _vchhusvi _80om1kdv _1e0cglyw _4t3izwfg _p12f1kvu _1bsb1osq _irr3l4ek _1ggl5xtf _1di6r01l _114b11p5",
|
|
13
13
|
buttonText: "_yyhyjvu9 _1ii7kb7n",
|
|
14
14
|
iconBefore: "_yyhykb7n _1ii7kb7n _1e0c1txw",
|
|
15
|
-
elemAfter: "_yyhy11wp _1ii7kb7n _1e0c1txw"
|
|
16
|
-
fullHeightSidebar: "_p12fktbq"
|
|
15
|
+
elemAfter: "_yyhy11wp _1ii7kb7n _1e0c1txw"
|
|
17
16
|
};
|
|
18
17
|
/**
|
|
19
18
|
* __Search__
|
|
@@ -28,7 +27,6 @@ export var Search = function Search(_ref) {
|
|
|
28
27
|
elemAfter = _ref.elemAfter,
|
|
29
28
|
interactionName = _ref.interactionName,
|
|
30
29
|
ariaHaspopup = _ref['aria-haspopup'];
|
|
31
|
-
var isFhsEnabled = useIsFhsEnabled();
|
|
32
30
|
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Pressable, {
|
|
33
31
|
style: {
|
|
34
32
|
// To win the specificity war against Emotion we move this into inline styles
|
|
@@ -38,7 +36,7 @@ export var Search = function Search(_ref) {
|
|
|
38
36
|
border: "var(--ds-border-width, 1px)".concat(" solid ", fg('platform-dst-tokens-finesse') ? "var(--ds-border-input-search, #0B120E24)" : "var(--ds-border-input, #8C8F97)")
|
|
39
37
|
},
|
|
40
38
|
onClick: onClick,
|
|
41
|
-
xcss:
|
|
39
|
+
xcss: styles.root,
|
|
42
40
|
interactionName: interactionName,
|
|
43
41
|
"aria-haspopup": ariaHaspopup
|
|
44
42
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -7,7 +7,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { cx } from '@compiled/react';
|
|
9
9
|
import forwardRefWithGeneric from '@atlaskit/ds-lib/forward-ref-with-generic';
|
|
10
|
-
import { Anchor } from '@atlaskit/primitives/compiled';
|
|
10
|
+
import { Anchor } from '@atlaskit/primitives/compiled/anchor';
|
|
11
11
|
import { getPrimitiveSpreadProps } from './get-primitives-spread-props';
|
|
12
12
|
var styles = {
|
|
13
13
|
root: "_zulp12x7 _11c8fhey _2rko1qi0 _v564k6bl _4bfu1r31 _1hmsglyw _ajmmnqa1 _1rjcze3t _1e0c1txw _4cvr1h6o _1bah1h6o _4t3i5r7u _kqswh2mm _1nrm1r31 _1a3b1r31 _9oik1r31 _c2waglyw _4fprglyw _1bnxglyw _1iohnqa1 _5goinqa1 _jf4cnqa1 _1ggl5xtf",
|
|
@@ -6,7 +6,7 @@ import "./themed-pressable.compiled.css";
|
|
|
6
6
|
import { ax, ix } from "@compiled/react/runtime";
|
|
7
7
|
import React, { forwardRef } from 'react';
|
|
8
8
|
import { cx } from '@compiled/react';
|
|
9
|
-
import { Pressable } from '@atlaskit/primitives/compiled';
|
|
9
|
+
import { Pressable } from '@atlaskit/primitives/compiled/pressable';
|
|
10
10
|
import { getPrimitiveSpreadProps } from './get-primitives-spread-props';
|
|
11
11
|
var styles = {
|
|
12
12
|
root: "_zulp12x7 _11c8fhey _2rko1qi0 _v564k6bl _4bfu1r31 _1hmsglyw _ajmmnqa1 _1rjcze3t _1e0c1txw _4cvr1h6o _1bah1h6o _4t3i5r7u _kqswh2mm _1nrm1r31 _1a3b1r31 _9oik1r31 _c2waglyw _4fprglyw _1bnxglyw _1iohnqa1 _5goinqa1 _jf4cnqa1 _1ggl5xtf",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* __Is custom is fhs enabled context__
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* @deprecated Full height sidebar (FHS) has been rolled back. This context is no longer used and
|
|
5
|
+
* will be deleted in a future major release.
|
|
6
6
|
*/
|
|
7
7
|
export declare const IsCustomIsFhsEnabledContext: import('react').Context<boolean>;
|
|
@@ -2,7 +2,10 @@ import type { Get } from './types';
|
|
|
2
2
|
/**
|
|
3
3
|
* __Is fhs enabled context__
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* @deprecated Full height sidebar (FHS) has been rolled back and this context is no longer read by
|
|
6
|
+
* any platform component. Its value is ignored. Remove usages of it; it will be deleted in a future
|
|
7
|
+
* major release.
|
|
8
|
+
*
|
|
9
|
+
* See https://hello.atlassian.net/wiki/spaces/navx/pages/7189669176/Full+Height+Sidebar+FHS+Rollback+Plan
|
|
7
10
|
*/
|
|
8
11
|
export declare const IsFhsEnabledContext: import('react').Context<boolean | Get<boolean>>;
|
|
@@ -2,9 +2,16 @@ import React, { type PropsWithChildren } from 'react';
|
|
|
2
2
|
/**
|
|
3
3
|
* __Is fhs enabled provider__
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* @deprecated Full height sidebar (FHS) has been rolled back. This provider is now a passthrough:
|
|
6
|
+
* it renders its children and ignores `value`. Remove it from your app; it will be deleted in a
|
|
7
|
+
* future major release.
|
|
8
|
+
*
|
|
9
|
+
* See https://hello.atlassian.net/wiki/spaces/navx/pages/7189669176/Full+Height+Sidebar+FHS+Rollback+Plan
|
|
10
|
+
*/
|
|
11
|
+
export declare const IsFhsEnabledProvider: ({ children, }: IsFhsEnabledProviderProps) => React.JSX.Element;
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated Full height sidebar (FHS) has been rolled back. `value` is ignored.
|
|
6
14
|
*/
|
|
7
|
-
export declare const IsFhsEnabledProvider: ({ children, value, }: IsFhsEnabledProviderProps) => React.JSX.Element;
|
|
8
15
|
export type IsFhsEnabledProviderProps = PropsWithChildren<{
|
|
9
16
|
value: boolean;
|
|
10
17
|
}>;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* __Use is fhs enabled__
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* @deprecated Full height sidebar (FHS) has been rolled back. This hook always returns `false`.
|
|
5
|
+
* Remove usages of it (treat it as `false`); it will be deleted in a future major release.
|
|
6
|
+
*
|
|
7
|
+
* See https://hello.atlassian.net/wiki/spaces/navx/pages/7189669176/Full+Height+Sidebar+FHS+Rollback+Plan
|
|
5
8
|
*/
|
|
6
9
|
export declare const useIsFhsEnabled: () => boolean;
|
|
@@ -40,15 +40,11 @@ export declare const UNSAFE_MAIN_INLINE_END_FOR_LEGACY_PAGES_ONLY: 'calc(var(--r
|
|
|
40
40
|
export declare const localSlotLayers: {
|
|
41
41
|
chatPanelOverlay: number;
|
|
42
42
|
ribbon: number;
|
|
43
|
-
sideNavPanelSplitterFHS: number;
|
|
44
43
|
topBar: number;
|
|
45
44
|
banner: number;
|
|
46
|
-
bannerFHS: number;
|
|
47
|
-
topNavFHS: number;
|
|
48
45
|
sideNav: number;
|
|
49
46
|
panelSmallViewports: number;
|
|
50
47
|
};
|
|
51
48
|
export declare const openLayerObserverSideNavNamespace = "side-nav";
|
|
52
|
-
export declare const openLayerObserverTopNavStartNamespace = "top-nav-start";
|
|
53
49
|
export declare const openLayerObserverTopNavMiddleNamespace = "top-nav-middle";
|
|
54
50
|
export declare const openLayerObserverTopNavEndNamespace = "top-nav-end";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { MediaQuery } from '@atlaskit/primitives/responsive/types';
|
|
3
3
|
export declare const DangerouslyHoistCssVarToDocumentRoot: ({ variableName, value, mediaQuery, responsiveValue, }: {
|
|
4
4
|
variableName: string;
|
|
5
5
|
value: string | number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DragLocationHistory } from '@atlaskit/pragmatic-drag-and-drop/types';
|
|
1
|
+
import type { DragLocationHistory } from '@atlaskit/pragmatic-drag-and-drop/internal-types';
|
|
2
2
|
export declare const getWidthFromDragLocation: ({ initialWidth, location, initialClientX, direction, position, }: {
|
|
3
3
|
initialWidth: number;
|
|
4
4
|
location: DragLocationHistory;
|
|
@@ -28,8 +28,6 @@ export type PanelSplitterProps = {
|
|
|
28
28
|
*
|
|
29
29
|
* The `tooltipContent` will not be announced by screen readers because it pertains to the draggable element, which lacks keyboard functionality.
|
|
30
30
|
* Use the `label` prop to provide accessible information about the panel splitter.
|
|
31
|
-
*
|
|
32
|
-
* Only used if `useIsFhsEnabled` is true.
|
|
33
31
|
*/
|
|
34
32
|
tooltipContent?: TooltipProps['content'];
|
|
35
33
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import { type AnchorProps } from '@atlaskit/primitives/compiled';
|
|
6
|
+
import { type AnchorProps } from '@atlaskit/primitives/compiled/anchor';
|
|
7
7
|
import type { CommonProps, OverriddenPrimitiveProps } from './types';
|
|
8
8
|
/**
|
|
9
9
|
* Props that are common between link buttons.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type { PressableProps } from '@atlaskit/primitives/compiled';
|
|
6
|
+
import type { PressableProps } from '@atlaskit/primitives/compiled/pressable';
|
|
7
7
|
import type { CommonProps, OverriddenPrimitiveProps, TextButtonCommonProps } from './types';
|
|
8
8
|
export interface ThemedButtonProps extends CommonProps, Omit<PressableProps, OverriddenPrimitiveProps>, TextButtonCommonProps {
|
|
9
9
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type { PressableProps } from '@atlaskit/primitives/compiled';
|
|
6
|
+
import type { PressableProps } from '@atlaskit/primitives/compiled/pressable';
|
|
7
7
|
import type { CommonProps, IconButtonCommonProps, OverriddenPrimitiveProps } from './types';
|
|
8
8
|
export interface ThemedIconButtonProps extends CommonProps, Omit<PressableProps, OverriddenPrimitiveProps>, IconButtonCommonProps {
|
|
9
9
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type { AnchorProps } from '@atlaskit/primitives/compiled';
|
|
6
|
+
import type { AnchorProps } from '@atlaskit/primitives/compiled/anchor';
|
|
7
7
|
import type { CommonProps, OverriddenPrimitiveProps, TextButtonCommonProps } from './types';
|
|
8
8
|
/**
|
|
9
9
|
* Props that are common between link buttons.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { AnchorProps } from '@atlaskit/primitives/compiled';
|
|
2
|
+
import type { AnchorProps } from '@atlaskit/primitives/compiled/anchor';
|
|
3
3
|
import type { CommonProps, IconButtonCommonProps, OverriddenPrimitiveProps } from './types';
|
|
4
4
|
/**
|
|
5
5
|
* Props that are common between link buttons.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import { type PressableProps } from '@atlaskit/primitives/compiled';
|
|
6
|
+
import { type PressableProps } from '@atlaskit/primitives/compiled/pressable';
|
|
7
7
|
import type { CommonProps, OverriddenPrimitiveProps } from './types';
|
|
8
8
|
/**
|
|
9
9
|
* Props shared by `ThemedPressable` and `ThemedAnchor`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/navigation-system",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.3.0",
|
|
4
4
|
"description": "The latest navigation system for Atlassian apps.",
|
|
5
5
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -66,15 +66,15 @@
|
|
|
66
66
|
"@atlaskit/icon": "^38.0.0",
|
|
67
67
|
"@atlaskit/layering": "^6.0.0",
|
|
68
68
|
"@atlaskit/logo": "^23.3.0",
|
|
69
|
-
"@atlaskit/motion": "^9.
|
|
69
|
+
"@atlaskit/motion": "^9.4.0",
|
|
70
70
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
71
71
|
"@atlaskit/platform-feature-flags-react": "^1.2.0",
|
|
72
72
|
"@atlaskit/popup": "^9.0.0",
|
|
73
73
|
"@atlaskit/pragmatic-drag-and-drop": "^4.0.0",
|
|
74
|
-
"@atlaskit/primitives": "^22.
|
|
74
|
+
"@atlaskit/primitives": "^22.6.0",
|
|
75
75
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
76
76
|
"@atlaskit/side-nav-items": "^2.5.0",
|
|
77
|
-
"@atlaskit/tokens": "^20.
|
|
77
|
+
"@atlaskit/tokens": "^20.6.0",
|
|
78
78
|
"@atlaskit/tooltip": "^24.4.0",
|
|
79
79
|
"@atlaskit/visually-hidden": "^4.4.0",
|
|
80
80
|
"@babel/runtime": "^7.0.0",
|
|
@@ -98,6 +98,7 @@
|
|
|
98
98
|
"@atlaskit/flag": "^19.0.0",
|
|
99
99
|
"@atlaskit/form": "^18.2.0",
|
|
100
100
|
"@atlaskit/heading": "^8.0.0",
|
|
101
|
+
"@atlaskit/icon-lab": "^7.11.0",
|
|
101
102
|
"@atlaskit/image": "^5.2.0",
|
|
102
103
|
"@atlaskit/inline-dialog": "^20.3.0",
|
|
103
104
|
"@atlaskit/link": "^5.1.0",
|
|
@@ -119,13 +120,13 @@
|
|
|
119
120
|
"@atlaskit/top-layer": "^6.2.0",
|
|
120
121
|
"@atlassian/feature-flags-test-utils": "^1.3.0",
|
|
121
122
|
"@atlassian/gemini": "^1.54.0",
|
|
122
|
-
"@atlassian/panel-system": "^1.
|
|
123
|
+
"@atlassian/panel-system": "^1.14.0",
|
|
123
124
|
"@atlassian/react-async": "^0.23.0",
|
|
124
125
|
"@atlassian/react-entrypoint": "^1.1.0",
|
|
125
|
-
"@atlassian/search-dialog": "^10.
|
|
126
|
+
"@atlassian/search-dialog": "^10.21.0",
|
|
126
127
|
"@atlassian/ssr-tests": "workspace:^",
|
|
127
128
|
"@atlassian/test-utils": "^1.1.0",
|
|
128
|
-
"@atlassian/testing-library": "^0.
|
|
129
|
+
"@atlassian/testing-library": "^0.12.0",
|
|
129
130
|
"@atlassian/workbench": "workspace:^",
|
|
130
131
|
"@axe-core/playwright": "^4.11.1",
|
|
131
132
|
"raf-stub": "^2.0.1",
|
|
@@ -149,9 +150,6 @@
|
|
|
149
150
|
"type": "boolean",
|
|
150
151
|
"referenceOnly": true
|
|
151
152
|
},
|
|
152
|
-
"navx-full-height-sidebar": {
|
|
153
|
-
"type": "boolean"
|
|
154
|
-
},
|
|
155
153
|
"platform_dst_button_chevron_sizing": {
|
|
156
154
|
"type": "boolean"
|
|
157
155
|
},
|