@atlaskit/navigation-system 2.16.0 → 2.18.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 +31 -0
- package/dist/cjs/ui/page-layout/side-nav/side-nav.compiled.css +1 -1
- package/dist/cjs/ui/page-layout/side-nav/side-nav.js +21 -1
- package/dist/cjs/ui/page-layout/top-nav/top-nav-start.compiled.css +2 -1
- package/dist/cjs/ui/page-layout/top-nav/top-nav-start.js +59 -13
- package/dist/cjs/ui/page-layout/top-nav/top-nav.compiled.css +2 -1
- package/dist/cjs/ui/page-layout/top-nav/top-nav.js +1 -1
- package/dist/es2019/ui/page-layout/side-nav/side-nav.compiled.css +1 -1
- package/dist/es2019/ui/page-layout/side-nav/side-nav.js +21 -1
- package/dist/es2019/ui/page-layout/top-nav/top-nav-start.compiled.css +2 -1
- package/dist/es2019/ui/page-layout/top-nav/top-nav-start.js +57 -7
- package/dist/es2019/ui/page-layout/top-nav/top-nav.compiled.css +2 -1
- package/dist/es2019/ui/page-layout/top-nav/top-nav.js +1 -1
- package/dist/esm/ui/page-layout/side-nav/side-nav.compiled.css +1 -1
- package/dist/esm/ui/page-layout/side-nav/side-nav.js +21 -1
- package/dist/esm/ui/page-layout/top-nav/top-nav-start.compiled.css +2 -1
- package/dist/esm/ui/page-layout/top-nav/top-nav-start.js +60 -13
- package/dist/esm/ui/page-layout/top-nav/top-nav.compiled.css +2 -1
- package/dist/esm/ui/page-layout/top-nav/top-nav.js +1 -1
- package/dist/types/ui/page-layout/top-nav/top-nav-start.d.ts +9 -7
- package/dist/types-ts4.5/ui/page-layout/top-nav/top-nav-start.d.ts +9 -7
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @atlassian/navigation-system
|
|
2
2
|
|
|
3
|
+
## 2.18.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`35dbcb50e7873`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/35dbcb50e7873) -
|
|
8
|
+
Changes TopNavMiddle items (search + create) to now be centred on large desktop screens, when the
|
|
9
|
+
`navx-full-height-sidear` feature gate is enabled.
|
|
10
|
+
|
|
11
|
+
## 2.17.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [`dc96cee1f923a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dc96cee1f923a) -
|
|
16
|
+
Minor improvements to the side nav peek (flyout) animations. These changes are behind the
|
|
17
|
+
`navx-full-height-sidebar` feature flag.
|
|
18
|
+
|
|
19
|
+
- The timing functions for the peek and hide animations have been slightly tweaked to align with
|
|
20
|
+
the new full height sidebar animations
|
|
21
|
+
- The peek animation duration has been increased to 300ms from 200ms to align with the new full
|
|
22
|
+
height sidebar animations
|
|
23
|
+
- During the collapse animation, the flyout will now maintain its background color and box-shadow.
|
|
24
|
+
They were previously unset as soon as the animation started.
|
|
25
|
+
|
|
26
|
+
- [`dc96cee1f923a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dc96cee1f923a) -
|
|
27
|
+
[ux] The sidebar will now animate when expanding and collapsing on supported browsers. Currently
|
|
28
|
+
Firefox is not supported. This change is behind the feature gate `navx-full-height-sidebar`.
|
|
29
|
+
|
|
30
|
+
The sidebar previously only animated when peeking (flyout mode). This change makes it animate on
|
|
31
|
+
regualar toggles as well. The `Main` layout area will still instantly "snap" into its new position
|
|
32
|
+
without any animations.
|
|
33
|
+
|
|
3
34
|
## 2.16.0
|
|
4
35
|
|
|
5
36
|
### Minor Changes
|
|
@@ -16,4 +16,4 @@
|
|
|
16
16
|
._vchhusvi{box-sizing:border-box}
|
|
17
17
|
@media (min-width:48rem){._14b5hc79{width:var(--n_snvRsz,var(--n_sNvw))}}
|
|
18
18
|
@media (min-width:64rem){._165t56xv{height:calc(100vh - var(--n_bnrM, 0px))}._180k1wjm{inset-block-start:calc(var(--n_bnrM, 0px))}._26vxoned{padding-block-start:calc(var(--n_tNvM, 0px))}._1mt19dtb{margin-block-start:calc(var(--n_tNvM, 0px)*-1)}._dm2518uv{display:initial}._dm25glyw{display:none}._qiln1gzg{grid-area:main}._p5clglyw{border-inline-end:none}._4ap31bhr{background-color:var(--ds-surface-overlay,#fff)}._scbp1cd0{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #091e4226,0 0 1px #091e424f)}._qilnk0mc{grid-area:side-nav}._p5cl7r9e{border-inline-end:var(--ds-border-width,1px) solid var(--ds-border,#091e4224)}._4ap3vuon{background-color:var(--ds-surface,#fff)}._scbpglyw{box-shadow:none}}
|
|
19
|
-
@supports not (-moz-appearance:none){@media (prefers-reduced-motion:no-preference){._139f8iot{transition-property:transform,display}._1tpvfnf5{transition-duration:.2s}._sylc1a5r{transition-behavior:allow-discrete}._1uwsjq3t{transform:translateX(-100%)}}@media (prefers-reduced-motion:no-preference){@starting-style{._oyeijq3t{transform:translateX(-100%)}}._139f8iot{transition-property:transform,display}._1tpvfnf5{transition-duration:.2s}._sylc1a5r{transition-behavior:allow-discrete}}}
|
|
19
|
+
@supports not (-moz-appearance:none){@media (prefers-reduced-motion:no-preference) and (min-width:64rem){@starting-style{._121hjq3t{transform:translateX(-100%)}}._1ee1188d{transition-duration:.3s}._1t2c1ku9{transition-timing-function:cubic-bezier(.6,0,0,1)}._14ckglyw{transform:none}}@media (prefers-reduced-motion:no-preference) and (min-width:64rem){._1ee1fnf5{transition-duration:.2s}._1t2c1mm8{transition-timing-function:cubic-bezier(0,.4,0,1)}._14ckjq3t{transform:translateX(-100%)}}@media (prefers-reduced-motion:no-preference) and (min-width:64rem){._2dsh8iot{transition-property:transform,display}._15ld1a5r{transition-behavior:allow-discrete}}@media (prefers-reduced-motion:no-preference) and (min-width:64rem){._kzn71gzg{grid-area:main}._1t2c1mm8{transition-timing-function:cubic-bezier(0,.4,0,1)}._14ckjq3t{transform:translateX(-100%)}}@media (prefers-reduced-motion:no-preference) and (min-width:64rem){@starting-style{._121hjq3t{transform:translateX(-100%)}}._kzn7k0mc{grid-area:side-nav}._1t2c1ku9{transition-timing-function:cubic-bezier(.6,0,0,1)}._14ckglyw{transform:none}}@media (prefers-reduced-motion:no-preference){._139f8iot{transition-property:transform,display}._1tpvfnf5{transition-duration:.2s}._sylc1a5r{transition-behavior:allow-discrete}._1uwsjq3t{transform:translateX(-100%)}}@media (prefers-reduced-motion:no-preference){@starting-style{._oyeijq3t{transform:translateX(-100%)}}._139f8iot{transition-property:transform,display}._1tpvfnf5{transition-duration:.2s}._sylc1a5r{transition-behavior:allow-discrete}}@media (prefers-reduced-motion:no-preference){._139f8iot{transition-property:transform,display}._sylc1a5r{transition-behavior:allow-discrete}._1tpv188d{transition-duration:.3s}}@media (prefers-reduced-motion:no-preference){._1h8i1gzg{grid-area:main}._ik8q1mm8{transition-timing-function:cubic-bezier(0,.4,0,1)}._1uwsjq3t{transform:translateX(-100%)}}@media (prefers-reduced-motion:no-preference){@starting-style{._oyeijq3t{transform:translateX(-100%)}}._ik8q1ku9{transition-timing-function:cubic-bezier(.6,0,0,1)}}}
|
|
@@ -54,10 +54,18 @@ var styles = {
|
|
|
54
54
|
root: "_nd5l1b6c _191wglyw _t51zglyw _bfhk1bhr _16qs1cd0 _vchhusvi _4t3ieqxy _152timx3 _kqsw1if8 _1bsb1ego _1pbycs5v _14b5hc79 _qilnk0mc _p5cl7r9e _4ap3vuon _scbpglyw",
|
|
55
55
|
flyoutOpen: "_qiln1gzg _p5clglyw _4ap31bhr _scbp1cd0 _139f8iot _1tpvfnf5 _sylc1a5r _oyeijq3t",
|
|
56
56
|
flyoutAnimateClosed: "_1e0cglyw _qiln1gzg _139f8iot _1tpvfnf5 _sylc1a5r _1uwsjq3t",
|
|
57
|
+
flyoutBaseStylesFullHeightSidebar: "_qiln1gzg _p5clglyw _4ap31bhr _scbp1cd0 _2dsh8iot _15ld1a5r",
|
|
58
|
+
flyoutOpenFullHeightSidebar: "_1ee1188d _1t2c1ku9 _14ckglyw _121hjq3t",
|
|
59
|
+
flyoutAnimateClosedFullHeightSidebar: "_dm25glyw _1ee1fnf5 _1t2c1mm8 _14ckjq3t",
|
|
57
60
|
flexContainer: "_4t3i1osq _1e0c1txw _2lx21bp4 _1bah1yb4",
|
|
58
61
|
hiddenMobileAndDesktop: "_1e0cglyw",
|
|
59
62
|
hiddenMobileOnly: "_1e0cglyw _dm2518uv",
|
|
60
63
|
hiddenDesktopOnly: "_dm25glyw",
|
|
64
|
+
animationBaseStyles: "_139f8iot _sylc1a5r _1tpv188d",
|
|
65
|
+
expandAnimationMobile: "_ik8q1ku9 _oyeijq3t",
|
|
66
|
+
collapseAnimationMobile: "_1h8i1gzg _ik8q1mm8 _1uwsjq3t",
|
|
67
|
+
expandAnimationDesktop: "_kzn7k0mc _1t2c1ku9 _14ckglyw _121hjq3t",
|
|
68
|
+
collapseAnimationDesktop: "_kzn71gzg _1t2c1mm8 _14ckjq3t",
|
|
61
69
|
fullHeightSidebar: "_165t56xv _180k1wjm _26vxoned _1mt19dtb"
|
|
62
70
|
};
|
|
63
71
|
var fallbackDefaultWidth = 320;
|
|
@@ -572,6 +580,18 @@ function SideNavInternal(_ref) {
|
|
|
572
580
|
panelId: _constants.sideNavPanelSplitterId
|
|
573
581
|
});
|
|
574
582
|
var isFlyoutClosed = (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'closed' || (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === undefined;
|
|
583
|
+
|
|
584
|
+
// Used to prevent sidebar expand animations from running on the initial render.
|
|
585
|
+
// Otherwise, the `@starting-style` rule will cause the sidebar to slide in initially.
|
|
586
|
+
var isFirstRenderRef = (0, _react.useRef)(true);
|
|
587
|
+
(0, _react.useEffect)(function () {
|
|
588
|
+
if (!(0, _platformFeatureFlags.fg)('navx-full-height-sidebar')) {
|
|
589
|
+
return;
|
|
590
|
+
}
|
|
591
|
+
if (isFirstRenderRef.current) {
|
|
592
|
+
isFirstRenderRef.current = false;
|
|
593
|
+
}
|
|
594
|
+
}, []);
|
|
575
595
|
return /*#__PURE__*/React.createElement("nav", (0, _extends2.default)({
|
|
576
596
|
id: id
|
|
577
597
|
}, devTimeOnlyAttributes, {
|
|
@@ -580,7 +600,7 @@ function SideNavInternal(_ref) {
|
|
|
580
600
|
style: (0, _defineProperty2.default)({}, _constants.sideNavVar, clampedWidth),
|
|
581
601
|
ref: mergedRef,
|
|
582
602
|
"data-testid": testId,
|
|
583
|
-
className: (0, _runtime.ax)([styles.root, isExpandedOnDesktop && !isExpandedOnMobile && !isFlyoutVisible && styles.hiddenMobileOnly, !isExpandedOnDesktop && isExpandedOnMobile && !isFlyoutVisible && styles.hiddenDesktopOnly, !isExpandedOnDesktop && !isExpandedOnMobile && !isFlyoutVisible && styles.hiddenMobileAndDesktop, (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'open' && styles.flyoutOpen, (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'triggered-animate-close' && styles.flyoutAnimateClosed, isFlyoutClosed && (0, _platformFeatureFlags.fg)('navx-full-height-sidebar') && styles.fullHeightSidebar])
|
|
603
|
+
className: (0, _runtime.ax)([styles.root, isExpandedOnDesktop && !isExpandedOnMobile && !isFlyoutVisible && styles.hiddenMobileOnly, !isExpandedOnDesktop && isExpandedOnMobile && !isFlyoutVisible && styles.hiddenDesktopOnly, !isExpandedOnDesktop && !isExpandedOnMobile && !isFlyoutVisible && styles.hiddenMobileAndDesktop, !isFirstRenderRef.current && (0, _platformFeatureFlags.fg)('navx-full-height-sidebar') && styles.animationBaseStyles, isExpandedOnMobile && !isFirstRenderRef.current && (0, _platformFeatureFlags.fg)('navx-full-height-sidebar') && styles.expandAnimationMobile, !isExpandedOnMobile && !isFirstRenderRef.current && (0, _platformFeatureFlags.fg)('navx-full-height-sidebar') && styles.collapseAnimationMobile, isExpandedOnDesktop && !isFirstRenderRef.current && (0, _platformFeatureFlags.fg)('navx-full-height-sidebar') && styles.expandAnimationDesktop, !isExpandedOnDesktop && !isFirstRenderRef.current && (0, _platformFeatureFlags.fg)('navx-full-height-sidebar') && styles.collapseAnimationDesktop, (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'open' && !(0, _platformFeatureFlags.fg)('navx-full-height-sidebar') && styles.flyoutOpen, (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'triggered-animate-close' && !(0, _platformFeatureFlags.fg)('navx-full-height-sidebar') && styles.flyoutAnimateClosed, ((sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'open' || (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'triggered-animate-close') && (0, _platformFeatureFlags.fg)('navx-full-height-sidebar') && styles.flyoutBaseStylesFullHeightSidebar, (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'triggered-animate-close' && (0, _platformFeatureFlags.fg)('navx-full-height-sidebar') && styles.flyoutAnimateClosedFullHeightSidebar, (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'open' && (0, _platformFeatureFlags.fg)('navx-full-height-sidebar') && styles.flyoutOpenFullHeightSidebar, (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'triggered-animate-close' && (0, _platformFeatureFlags.fg)('navx-full-height-sidebar') && styles.flyoutAnimateClosedFullHeightSidebar, isFlyoutClosed && (0, _platformFeatureFlags.fg)('navx-full-height-sidebar') && styles.fullHeightSidebar])
|
|
584
604
|
}), /*#__PURE__*/React.createElement(_hoistUtils.DangerouslyHoistCssVarToDocumentRoot, {
|
|
585
605
|
variableName: _constants.sideNavLiveWidthVar,
|
|
586
606
|
value: "0px",
|
|
@@ -5,4 +5,5 @@
|
|
|
5
5
|
._4t3i1osq{height:100%}
|
|
6
6
|
._bozgutpp{padding-inline-start:var(--ds-space-150,9pt)}
|
|
7
7
|
._lcxv1wug{pointer-events:auto}
|
|
8
|
-
|
|
8
|
+
._vchhusvi{box-sizing:border-box}
|
|
9
|
+
@media (min-width:64rem){._15rin7od{min-width:unset}._glte1osq{width:100%}._15rip2n4{min-width:330px}._glte1ris{width:max-content}._15ri1mjv{min-width:300px}._1gs5usvi{box-sizing:border-box}._glte93mn{width:var(--n_sNvlw,100%)}._exxmpxbi{padding-inline-end:var(--ds-space-200,1pc)}}
|
|
@@ -15,13 +15,32 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
|
15
15
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
16
16
|
var _topNavStartContext = require("../../../context/top-nav-start/top-nav-start-context");
|
|
17
17
|
var _toggleButtonProvider = require("../side-nav/toggle-button-provider");
|
|
18
|
-
var
|
|
18
|
+
var _useSideNavVisibility3 = require("../side-nav/use-side-nav-visibility");
|
|
19
19
|
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); }
|
|
20
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Styles for the TopNavStart element.
|
|
22
|
+
*
|
|
23
|
+
* When `navx-full-height-sidebar` is enabled this is the styling for the inner element,
|
|
24
|
+
* which re-enables pointer events.
|
|
25
|
+
*/
|
|
26
|
+
var innerStyles = {
|
|
21
27
|
root: "_zulp1b66 _yyhykb7n _4t3i1osq _4cvr1h6o _1e0c1txw _glte1ris _15ri1mjv _1gs5usvi",
|
|
22
28
|
jiraProductLogoUpdate: "_15rip2n4",
|
|
23
|
-
fullHeightSidebar: "
|
|
24
|
-
fullHeightSidebarExpanded: "_15rin7od _glte1osq
|
|
29
|
+
fullHeightSidebar: "_lcxv1wug",
|
|
30
|
+
fullHeightSidebarExpanded: "_15rin7od _glte1osq"
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Styles for the outer element, that does not have re-enabled pointer events and spans the entire
|
|
35
|
+
* width of the TopNavStart area.
|
|
36
|
+
*
|
|
37
|
+
* This wrapper element is only rendered when `navx-full-height-sidebar` is enabled.
|
|
38
|
+
*/
|
|
39
|
+
var wrapperStyles = {
|
|
40
|
+
root: "_vchhusvi",
|
|
41
|
+
fullHeightSidebar: "_bozgutpp",
|
|
42
|
+
fullHeightSidebarCollapsed: "_15rip2n4",
|
|
43
|
+
fullHeightSidebarExpanded: "_glte93mn _exxmpxbi"
|
|
25
44
|
};
|
|
26
45
|
|
|
27
46
|
/**
|
|
@@ -31,16 +50,43 @@ var styles = {
|
|
|
31
50
|
* This ensures we get focus restoration for free.
|
|
32
51
|
*/
|
|
33
52
|
var sideNavToggleButtonKey = 'side-nav-toggle-button';
|
|
53
|
+
var TopNavStartInnerOld = /*#__PURE__*/(0, _react.forwardRef)(function TopNavStartInner(_ref, ref) {
|
|
54
|
+
var children = _ref.children,
|
|
55
|
+
testId = _ref.testId;
|
|
56
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
57
|
+
ref: ref,
|
|
58
|
+
"data-testid": testId,
|
|
59
|
+
className: (0, _runtime.ax)([innerStyles.root, (0, _platformFeatureFlags.fg)('team25-eu-jira-logo-updates-csm-jsm') && innerStyles.jiraProductLogoUpdate])
|
|
60
|
+
}, children);
|
|
61
|
+
});
|
|
62
|
+
var TopNavStartInnerFHS = /*#__PURE__*/(0, _react.forwardRef)(function TopNavStartInnerFHS(_ref2, ref) {
|
|
63
|
+
var children = _ref2.children,
|
|
64
|
+
testId = _ref2.testId;
|
|
65
|
+
// This needs the real `defaultCollapsed` state or will not SSR properly
|
|
66
|
+
// TODO: lift `defaultCollapsed` state to `Root` (DSP-23683)
|
|
67
|
+
// then context value will be correct in SSR / from initial render
|
|
68
|
+
var _useSideNavVisibility = (0, _useSideNavVisibility3.useSideNavVisibility)({
|
|
69
|
+
defaultCollapsed: true
|
|
70
|
+
}),
|
|
71
|
+
isExpandedOnDesktop = _useSideNavVisibility.isExpandedOnDesktop;
|
|
72
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
73
|
+
ref: ref,
|
|
74
|
+
"data-testid": testId,
|
|
75
|
+
className: (0, _runtime.ax)([wrapperStyles.root, wrapperStyles.fullHeightSidebar, isExpandedOnDesktop && wrapperStyles.fullHeightSidebarExpanded])
|
|
76
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
77
|
+
className: (0, _runtime.ax)([innerStyles.root, innerStyles.fullHeightSidebar, isExpandedOnDesktop && innerStyles.fullHeightSidebarExpanded, (0, _platformFeatureFlags.fg)('team25-eu-jira-logo-updates-csm-jsm') && innerStyles.jiraProductLogoUpdate])
|
|
78
|
+
}, children));
|
|
79
|
+
});
|
|
34
80
|
|
|
35
81
|
/**
|
|
36
82
|
* __TopNavStart__
|
|
37
83
|
*
|
|
38
84
|
* Wrapper for the top navigation actions on the inline-start (left) side of the top navigation.
|
|
39
85
|
*/
|
|
40
|
-
function TopNavStart(
|
|
41
|
-
var children =
|
|
42
|
-
testId =
|
|
43
|
-
sideNavToggleButton =
|
|
86
|
+
function TopNavStart(_ref3) {
|
|
87
|
+
var children = _ref3.children,
|
|
88
|
+
testId = _ref3.testId,
|
|
89
|
+
sideNavToggleButton = _ref3.sideNavToggleButton;
|
|
44
90
|
var ref = (0, _react.useContext)(_topNavStartContext.TopNavStartAttachRef);
|
|
45
91
|
var elementRef = (0, _react.useRef)(null);
|
|
46
92
|
(0, _react.useEffect)(function () {
|
|
@@ -52,10 +98,10 @@ function TopNavStart(_ref) {
|
|
|
52
98
|
// This needs the real `defaultCollapsed` state or will not SSR properly
|
|
53
99
|
// TODO: lift `defaultCollapsed` state to `Root` (DSP-23683)
|
|
54
100
|
// then context value will be correct in SSR / from initial render
|
|
55
|
-
var
|
|
101
|
+
var _useSideNavVisibility2 = (0, _useSideNavVisibility3.useSideNavVisibility)({
|
|
56
102
|
defaultCollapsed: true
|
|
57
103
|
}),
|
|
58
|
-
isExpandedOnDesktop =
|
|
104
|
+
isExpandedOnDesktop = _useSideNavVisibility2.isExpandedOnDesktop;
|
|
59
105
|
|
|
60
106
|
// For SSR assume desktop
|
|
61
107
|
var _useState = (0, _react.useState)(true),
|
|
@@ -75,10 +121,10 @@ function TopNavStart(_ref) {
|
|
|
75
121
|
(0, _compiled.UNSAFE_useMediaQuery)('above.md', function (event) {
|
|
76
122
|
setIsDesktop(event.matches);
|
|
77
123
|
});
|
|
78
|
-
|
|
124
|
+
var TopNavStartInner = (0, _platformFeatureFlags.fg)('navx-full-height-sidebar') ? TopNavStartInnerFHS : TopNavStartInnerOld;
|
|
125
|
+
return /*#__PURE__*/_react.default.createElement(TopNavStartInner, {
|
|
79
126
|
ref: (0, _platformFeatureFlags.fg)('platform_fix_component_state_update_for_suspense') ? elementRef : ref,
|
|
80
|
-
|
|
81
|
-
className: (0, _runtime.ax)([styles.root, (0, _platformFeatureFlags.fg)('navx-full-height-sidebar') && styles.fullHeightSidebar, isExpandedOnDesktop && (0, _platformFeatureFlags.fg)('navx-full-height-sidebar') && styles.fullHeightSidebarExpanded, (0, _platformFeatureFlags.fg)('team25-eu-jira-logo-updates-csm-jsm') && styles.jiraProductLogoUpdate])
|
|
127
|
+
testId: testId
|
|
82
128
|
}, !(0, _platformFeatureFlags.fg)('navx-full-height-sidebar') && /*#__PURE__*/_react.default.createElement(_toggleButtonProvider.SideNavToggleButtonSlotProvider, {
|
|
83
129
|
key: sideNavToggleButtonKey
|
|
84
130
|
}, sideNavToggleButton), sideNavToggleButton && (!isDesktop || !isExpandedOnDesktop) && (0, _platformFeatureFlags.fg)('navx-full-height-sidebar') && /*#__PURE__*/_react.default.createElement(_toggleButtonProvider.SideNavToggleButtonSlotProvider, {
|
|
@@ -20,4 +20,5 @@
|
|
|
20
20
|
._y4tiutpp{padding-inline-end:var(--ds-space-150,9pt)}
|
|
21
21
|
._yv0e1mfv{grid-template-columns:auto 1fr auto}
|
|
22
22
|
@media (min-width:48rem){._1j8b18ax{grid-template-columns:1fr minmax(min-content,max-content) 1fr}}
|
|
23
|
-
@media (min-width:64rem){.
|
|
23
|
+
@media (min-width:64rem){._1rqt16a9{grid-template-columns:0fr minmax(min-content,max-content) 1fr}._hyzqcs5v{z-index:2}._pdlmutpp{gap:var(--ds-space-150,9pt)}}
|
|
24
|
+
@media (min-width:110.5rem){._jh1g18ax{grid-template-columns:1fr minmax(min-content,max-content) 1fr}}
|
|
@@ -34,7 +34,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
34
34
|
var styles = {
|
|
35
35
|
root: "_nd5l8cbt _zulpu2gc _18zrutpp _179r7r9e _1e0c11p5 _yv0e1mfv _4cvr1h6o _bfhkvuon _vchhusvi _4t3i1dgc _152t1nws _kqsw1if8 _1pbyegat _d6vu1bgi _1j8b18ax",
|
|
36
36
|
fullHeightSidebar: "_179rglyw _bozgze3t _y4tiutpp _bfhkglyw _lcxvglyw _pdlmutpp",
|
|
37
|
-
fullHeightSidebarExpanded: "
|
|
37
|
+
fullHeightSidebarExpanded: "_1rqt16a9 _jh1g18ax"
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
/**
|
|
@@ -16,4 +16,4 @@
|
|
|
16
16
|
._vchhusvi{box-sizing:border-box}
|
|
17
17
|
@media (min-width:48rem){._14b5hc79{width:var(--n_snvRsz,var(--n_sNvw))}}
|
|
18
18
|
@media (min-width:64rem){._165t56xv{height:calc(100vh - var(--n_bnrM, 0px))}._180k1wjm{inset-block-start:calc(var(--n_bnrM, 0px))}._26vxoned{padding-block-start:calc(var(--n_tNvM, 0px))}._1mt19dtb{margin-block-start:calc(var(--n_tNvM, 0px)*-1)}._dm2518uv{display:initial}._dm25glyw{display:none}._qiln1gzg{grid-area:main}._p5clglyw{border-inline-end:none}._4ap31bhr{background-color:var(--ds-surface-overlay,#fff)}._scbp1cd0{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #091e4226,0 0 1px #091e424f)}._qilnk0mc{grid-area:side-nav}._p5cl7r9e{border-inline-end:var(--ds-border-width,1px) solid var(--ds-border,#091e4224)}._4ap3vuon{background-color:var(--ds-surface,#fff)}._scbpglyw{box-shadow:none}}
|
|
19
|
-
@supports not (-moz-appearance:none){@media (prefers-reduced-motion:no-preference){._139f8iot{transition-property:transform,display}._1tpvfnf5{transition-duration:.2s}._sylc1a5r{transition-behavior:allow-discrete}._1uwsjq3t{transform:translateX(-100%)}}@media (prefers-reduced-motion:no-preference){@starting-style{._oyeijq3t{transform:translateX(-100%)}}._139f8iot{transition-property:transform,display}._1tpvfnf5{transition-duration:.2s}._sylc1a5r{transition-behavior:allow-discrete}}}
|
|
19
|
+
@supports not (-moz-appearance:none){@media (prefers-reduced-motion:no-preference) and (min-width:64rem){@starting-style{._121hjq3t{transform:translateX(-100%)}}._1ee1188d{transition-duration:.3s}._1t2c1ku9{transition-timing-function:cubic-bezier(.6,0,0,1)}._14ckglyw{transform:none}}@media (prefers-reduced-motion:no-preference) and (min-width:64rem){._1ee1fnf5{transition-duration:.2s}._1t2c1mm8{transition-timing-function:cubic-bezier(0,.4,0,1)}._14ckjq3t{transform:translateX(-100%)}}@media (prefers-reduced-motion:no-preference) and (min-width:64rem){._2dsh8iot{transition-property:transform,display}._15ld1a5r{transition-behavior:allow-discrete}}@media (prefers-reduced-motion:no-preference) and (min-width:64rem){._kzn71gzg{grid-area:main}._1t2c1mm8{transition-timing-function:cubic-bezier(0,.4,0,1)}._14ckjq3t{transform:translateX(-100%)}}@media (prefers-reduced-motion:no-preference) and (min-width:64rem){@starting-style{._121hjq3t{transform:translateX(-100%)}}._kzn7k0mc{grid-area:side-nav}._1t2c1ku9{transition-timing-function:cubic-bezier(.6,0,0,1)}._14ckglyw{transform:none}}@media (prefers-reduced-motion:no-preference){._139f8iot{transition-property:transform,display}._1tpvfnf5{transition-duration:.2s}._sylc1a5r{transition-behavior:allow-discrete}._1uwsjq3t{transform:translateX(-100%)}}@media (prefers-reduced-motion:no-preference){@starting-style{._oyeijq3t{transform:translateX(-100%)}}._139f8iot{transition-property:transform,display}._1tpvfnf5{transition-duration:.2s}._sylc1a5r{transition-behavior:allow-discrete}}@media (prefers-reduced-motion:no-preference){._139f8iot{transition-property:transform,display}._sylc1a5r{transition-behavior:allow-discrete}._1tpv188d{transition-duration:.3s}}@media (prefers-reduced-motion:no-preference){._1h8i1gzg{grid-area:main}._ik8q1mm8{transition-timing-function:cubic-bezier(0,.4,0,1)}._1uwsjq3t{transform:translateX(-100%)}}@media (prefers-reduced-motion:no-preference){@starting-style{._oyeijq3t{transform:translateX(-100%)}}._ik8q1ku9{transition-timing-function:cubic-bezier(.6,0,0,1)}}}
|
|
@@ -41,10 +41,18 @@ const styles = {
|
|
|
41
41
|
root: "_nd5l1b6c _191wglyw _t51zglyw _bfhk1bhr _16qs1cd0 _vchhusvi _4t3ieqxy _152timx3 _kqsw1if8 _1bsb1ego _1pbycs5v _14b5hc79 _qilnk0mc _p5cl7r9e _4ap3vuon _scbpglyw",
|
|
42
42
|
flyoutOpen: "_qiln1gzg _p5clglyw _4ap31bhr _scbp1cd0 _139f8iot _1tpvfnf5 _sylc1a5r _oyeijq3t",
|
|
43
43
|
flyoutAnimateClosed: "_1e0cglyw _qiln1gzg _139f8iot _1tpvfnf5 _sylc1a5r _1uwsjq3t",
|
|
44
|
+
flyoutBaseStylesFullHeightSidebar: "_qiln1gzg _p5clglyw _4ap31bhr _scbp1cd0 _2dsh8iot _15ld1a5r",
|
|
45
|
+
flyoutOpenFullHeightSidebar: "_1ee1188d _1t2c1ku9 _14ckglyw _121hjq3t",
|
|
46
|
+
flyoutAnimateClosedFullHeightSidebar: "_dm25glyw _1ee1fnf5 _1t2c1mm8 _14ckjq3t",
|
|
44
47
|
flexContainer: "_4t3i1osq _1e0c1txw _2lx21bp4 _1bah1yb4",
|
|
45
48
|
hiddenMobileAndDesktop: "_1e0cglyw",
|
|
46
49
|
hiddenMobileOnly: "_1e0cglyw _dm2518uv",
|
|
47
50
|
hiddenDesktopOnly: "_dm25glyw",
|
|
51
|
+
animationBaseStyles: "_139f8iot _sylc1a5r _1tpv188d",
|
|
52
|
+
expandAnimationMobile: "_ik8q1ku9 _oyeijq3t",
|
|
53
|
+
collapseAnimationMobile: "_1h8i1gzg _ik8q1mm8 _1uwsjq3t",
|
|
54
|
+
expandAnimationDesktop: "_kzn7k0mc _1t2c1ku9 _14ckglyw _121hjq3t",
|
|
55
|
+
collapseAnimationDesktop: "_kzn71gzg _1t2c1mm8 _14ckjq3t",
|
|
48
56
|
fullHeightSidebar: "_165t56xv _180k1wjm _26vxoned _1mt19dtb"
|
|
49
57
|
};
|
|
50
58
|
const fallbackDefaultWidth = 320;
|
|
@@ -561,6 +569,18 @@ function SideNavInternal({
|
|
|
561
569
|
panelId: sideNavPanelSplitterId
|
|
562
570
|
});
|
|
563
571
|
const isFlyoutClosed = (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'closed' || (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === undefined;
|
|
572
|
+
|
|
573
|
+
// Used to prevent sidebar expand animations from running on the initial render.
|
|
574
|
+
// Otherwise, the `@starting-style` rule will cause the sidebar to slide in initially.
|
|
575
|
+
const isFirstRenderRef = useRef(true);
|
|
576
|
+
useEffect(() => {
|
|
577
|
+
if (!fg('navx-full-height-sidebar')) {
|
|
578
|
+
return;
|
|
579
|
+
}
|
|
580
|
+
if (isFirstRenderRef.current) {
|
|
581
|
+
isFirstRenderRef.current = false;
|
|
582
|
+
}
|
|
583
|
+
}, []);
|
|
564
584
|
return /*#__PURE__*/React.createElement("nav", _extends({
|
|
565
585
|
id: id
|
|
566
586
|
}, devTimeOnlyAttributes, {
|
|
@@ -572,7 +592,7 @@ function SideNavInternal({
|
|
|
572
592
|
},
|
|
573
593
|
ref: mergedRef,
|
|
574
594
|
"data-testid": testId,
|
|
575
|
-
className: ax([styles.root, isExpandedOnDesktop && !isExpandedOnMobile && !isFlyoutVisible && styles.hiddenMobileOnly, !isExpandedOnDesktop && isExpandedOnMobile && !isFlyoutVisible && styles.hiddenDesktopOnly, !isExpandedOnDesktop && !isExpandedOnMobile && !isFlyoutVisible && styles.hiddenMobileAndDesktop, (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'open' && styles.flyoutOpen, (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'triggered-animate-close' && styles.flyoutAnimateClosed, isFlyoutClosed && fg('navx-full-height-sidebar') && styles.fullHeightSidebar])
|
|
595
|
+
className: ax([styles.root, isExpandedOnDesktop && !isExpandedOnMobile && !isFlyoutVisible && styles.hiddenMobileOnly, !isExpandedOnDesktop && isExpandedOnMobile && !isFlyoutVisible && styles.hiddenDesktopOnly, !isExpandedOnDesktop && !isExpandedOnMobile && !isFlyoutVisible && styles.hiddenMobileAndDesktop, !isFirstRenderRef.current && fg('navx-full-height-sidebar') && styles.animationBaseStyles, isExpandedOnMobile && !isFirstRenderRef.current && fg('navx-full-height-sidebar') && styles.expandAnimationMobile, !isExpandedOnMobile && !isFirstRenderRef.current && fg('navx-full-height-sidebar') && styles.collapseAnimationMobile, isExpandedOnDesktop && !isFirstRenderRef.current && fg('navx-full-height-sidebar') && styles.expandAnimationDesktop, !isExpandedOnDesktop && !isFirstRenderRef.current && fg('navx-full-height-sidebar') && styles.collapseAnimationDesktop, (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'open' && !fg('navx-full-height-sidebar') && styles.flyoutOpen, (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'triggered-animate-close' && !fg('navx-full-height-sidebar') && styles.flyoutAnimateClosed, ((sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'open' || (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'triggered-animate-close') && fg('navx-full-height-sidebar') && styles.flyoutBaseStylesFullHeightSidebar, (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'triggered-animate-close' && fg('navx-full-height-sidebar') && styles.flyoutAnimateClosedFullHeightSidebar, (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'open' && fg('navx-full-height-sidebar') && styles.flyoutOpenFullHeightSidebar, (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'triggered-animate-close' && fg('navx-full-height-sidebar') && styles.flyoutAnimateClosedFullHeightSidebar, isFlyoutClosed && fg('navx-full-height-sidebar') && styles.fullHeightSidebar])
|
|
576
596
|
}), /*#__PURE__*/React.createElement(DangerouslyHoistCssVarToDocumentRoot, {
|
|
577
597
|
variableName: sideNavLiveWidthVar,
|
|
578
598
|
value: "0px",
|
|
@@ -5,4 +5,5 @@
|
|
|
5
5
|
._4t3i1osq{height:100%}
|
|
6
6
|
._bozgutpp{padding-inline-start:var(--ds-space-150,9pt)}
|
|
7
7
|
._lcxv1wug{pointer-events:auto}
|
|
8
|
-
|
|
8
|
+
._vchhusvi{box-sizing:border-box}
|
|
9
|
+
@media (min-width:64rem){._15rin7od{min-width:unset}._glte1osq{width:100%}._15rip2n4{min-width:330px}._glte1ris{width:max-content}._15ri1mjv{min-width:300px}._1gs5usvi{box-sizing:border-box}._glte93mn{width:var(--n_sNvlw,100%)}._exxmpxbi{padding-inline-end:var(--ds-space-200,1pc)}}
|
|
@@ -1,17 +1,37 @@
|
|
|
1
1
|
/* top-nav-start.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
import "./top-nav-start.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
-
import React, { useContext, useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
4
|
+
import React, { forwardRef, useContext, useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
6
|
import { UNSAFE_useMediaQuery } from '@atlaskit/primitives/compiled';
|
|
7
7
|
import { TopNavStartAttachRef } from '../../../context/top-nav-start/top-nav-start-context';
|
|
8
8
|
import { SideNavToggleButtonSlotProvider } from '../side-nav/toggle-button-provider';
|
|
9
9
|
import { useSideNavVisibility } from '../side-nav/use-side-nav-visibility';
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Styles for the TopNavStart element.
|
|
13
|
+
*
|
|
14
|
+
* When `navx-full-height-sidebar` is enabled this is the styling for the inner element,
|
|
15
|
+
* which re-enables pointer events.
|
|
16
|
+
*/
|
|
17
|
+
const innerStyles = {
|
|
11
18
|
root: "_zulp1b66 _yyhykb7n _4t3i1osq _4cvr1h6o _1e0c1txw _glte1ris _15ri1mjv _1gs5usvi",
|
|
12
19
|
jiraProductLogoUpdate: "_15rip2n4",
|
|
13
|
-
fullHeightSidebar: "
|
|
14
|
-
fullHeightSidebarExpanded: "_15rin7od _glte1osq
|
|
20
|
+
fullHeightSidebar: "_lcxv1wug",
|
|
21
|
+
fullHeightSidebarExpanded: "_15rin7od _glte1osq"
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Styles for the outer element, that does not have re-enabled pointer events and spans the entire
|
|
26
|
+
* width of the TopNavStart area.
|
|
27
|
+
*
|
|
28
|
+
* This wrapper element is only rendered when `navx-full-height-sidebar` is enabled.
|
|
29
|
+
*/
|
|
30
|
+
const wrapperStyles = {
|
|
31
|
+
root: "_vchhusvi",
|
|
32
|
+
fullHeightSidebar: "_bozgutpp",
|
|
33
|
+
fullHeightSidebarCollapsed: "_15rip2n4",
|
|
34
|
+
fullHeightSidebarExpanded: "_glte93mn _exxmpxbi"
|
|
15
35
|
};
|
|
16
36
|
|
|
17
37
|
/**
|
|
@@ -21,6 +41,36 @@ const styles = {
|
|
|
21
41
|
* This ensures we get focus restoration for free.
|
|
22
42
|
*/
|
|
23
43
|
const sideNavToggleButtonKey = 'side-nav-toggle-button';
|
|
44
|
+
const TopNavStartInnerOld = /*#__PURE__*/forwardRef(function TopNavStartInner({
|
|
45
|
+
children,
|
|
46
|
+
testId
|
|
47
|
+
}, ref) {
|
|
48
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
49
|
+
ref: ref,
|
|
50
|
+
"data-testid": testId,
|
|
51
|
+
className: ax([innerStyles.root, fg('team25-eu-jira-logo-updates-csm-jsm') && innerStyles.jiraProductLogoUpdate])
|
|
52
|
+
}, children);
|
|
53
|
+
});
|
|
54
|
+
const TopNavStartInnerFHS = /*#__PURE__*/forwardRef(function TopNavStartInnerFHS({
|
|
55
|
+
children,
|
|
56
|
+
testId
|
|
57
|
+
}, ref) {
|
|
58
|
+
// This needs the real `defaultCollapsed` state or will not SSR properly
|
|
59
|
+
// TODO: lift `defaultCollapsed` state to `Root` (DSP-23683)
|
|
60
|
+
// then context value will be correct in SSR / from initial render
|
|
61
|
+
const {
|
|
62
|
+
isExpandedOnDesktop
|
|
63
|
+
} = useSideNavVisibility({
|
|
64
|
+
defaultCollapsed: true
|
|
65
|
+
});
|
|
66
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
67
|
+
ref: ref,
|
|
68
|
+
"data-testid": testId,
|
|
69
|
+
className: ax([wrapperStyles.root, wrapperStyles.fullHeightSidebar, isExpandedOnDesktop && wrapperStyles.fullHeightSidebarExpanded])
|
|
70
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
71
|
+
className: ax([innerStyles.root, innerStyles.fullHeightSidebar, isExpandedOnDesktop && innerStyles.fullHeightSidebarExpanded, fg('team25-eu-jira-logo-updates-csm-jsm') && innerStyles.jiraProductLogoUpdate])
|
|
72
|
+
}, children));
|
|
73
|
+
});
|
|
24
74
|
|
|
25
75
|
/**
|
|
26
76
|
* __TopNavStart__
|
|
@@ -64,10 +114,10 @@ export function TopNavStart({
|
|
|
64
114
|
UNSAFE_useMediaQuery('above.md', event => {
|
|
65
115
|
setIsDesktop(event.matches);
|
|
66
116
|
});
|
|
67
|
-
|
|
117
|
+
const TopNavStartInner = fg('navx-full-height-sidebar') ? TopNavStartInnerFHS : TopNavStartInnerOld;
|
|
118
|
+
return /*#__PURE__*/React.createElement(TopNavStartInner, {
|
|
68
119
|
ref: fg('platform_fix_component_state_update_for_suspense') ? elementRef : ref,
|
|
69
|
-
|
|
70
|
-
className: ax([styles.root, fg('navx-full-height-sidebar') && styles.fullHeightSidebar, isExpandedOnDesktop && fg('navx-full-height-sidebar') && styles.fullHeightSidebarExpanded, fg('team25-eu-jira-logo-updates-csm-jsm') && styles.jiraProductLogoUpdate])
|
|
120
|
+
testId: testId
|
|
71
121
|
}, !fg('navx-full-height-sidebar') && /*#__PURE__*/React.createElement(SideNavToggleButtonSlotProvider, {
|
|
72
122
|
key: sideNavToggleButtonKey
|
|
73
123
|
}, sideNavToggleButton), sideNavToggleButton && (!isDesktop || !isExpandedOnDesktop) && fg('navx-full-height-sidebar') && /*#__PURE__*/React.createElement(SideNavToggleButtonSlotProvider, {
|
|
@@ -20,4 +20,5 @@
|
|
|
20
20
|
._y4tiutpp{padding-inline-end:var(--ds-space-150,9pt)}
|
|
21
21
|
._yv0e1mfv{grid-template-columns:auto 1fr auto}
|
|
22
22
|
@media (min-width:48rem){._1j8b18ax{grid-template-columns:1fr minmax(min-content,max-content) 1fr}}
|
|
23
|
-
@media (min-width:64rem){.
|
|
23
|
+
@media (min-width:64rem){._1rqt16a9{grid-template-columns:0fr minmax(min-content,max-content) 1fr}._hyzqcs5v{z-index:2}._pdlmutpp{gap:var(--ds-space-150,9pt)}}
|
|
24
|
+
@media (min-width:110.5rem){._jh1g18ax{grid-template-columns:1fr minmax(min-content,max-content) 1fr}}
|
|
@@ -23,7 +23,7 @@ import { useSideNavVisibility } from '../side-nav/use-side-nav-visibility';
|
|
|
23
23
|
const styles = {
|
|
24
24
|
root: "_nd5l8cbt _zulpu2gc _18zrutpp _179r7r9e _1e0c11p5 _yv0e1mfv _4cvr1h6o _bfhkvuon _vchhusvi _4t3i1dgc _152t1nws _kqsw1if8 _1pbyegat _d6vu1bgi _1j8b18ax",
|
|
25
25
|
fullHeightSidebar: "_179rglyw _bozgze3t _y4tiutpp _bfhkglyw _lcxvglyw _pdlmutpp",
|
|
26
|
-
fullHeightSidebarExpanded: "
|
|
26
|
+
fullHeightSidebarExpanded: "_1rqt16a9 _jh1g18ax"
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
/**
|
|
@@ -16,4 +16,4 @@
|
|
|
16
16
|
._vchhusvi{box-sizing:border-box}
|
|
17
17
|
@media (min-width:48rem){._14b5hc79{width:var(--n_snvRsz,var(--n_sNvw))}}
|
|
18
18
|
@media (min-width:64rem){._165t56xv{height:calc(100vh - var(--n_bnrM, 0px))}._180k1wjm{inset-block-start:calc(var(--n_bnrM, 0px))}._26vxoned{padding-block-start:calc(var(--n_tNvM, 0px))}._1mt19dtb{margin-block-start:calc(var(--n_tNvM, 0px)*-1)}._dm2518uv{display:initial}._dm25glyw{display:none}._qiln1gzg{grid-area:main}._p5clglyw{border-inline-end:none}._4ap31bhr{background-color:var(--ds-surface-overlay,#fff)}._scbp1cd0{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #091e4226,0 0 1px #091e424f)}._qilnk0mc{grid-area:side-nav}._p5cl7r9e{border-inline-end:var(--ds-border-width,1px) solid var(--ds-border,#091e4224)}._4ap3vuon{background-color:var(--ds-surface,#fff)}._scbpglyw{box-shadow:none}}
|
|
19
|
-
@supports not (-moz-appearance:none){@media (prefers-reduced-motion:no-preference){._139f8iot{transition-property:transform,display}._1tpvfnf5{transition-duration:.2s}._sylc1a5r{transition-behavior:allow-discrete}._1uwsjq3t{transform:translateX(-100%)}}@media (prefers-reduced-motion:no-preference){@starting-style{._oyeijq3t{transform:translateX(-100%)}}._139f8iot{transition-property:transform,display}._1tpvfnf5{transition-duration:.2s}._sylc1a5r{transition-behavior:allow-discrete}}}
|
|
19
|
+
@supports not (-moz-appearance:none){@media (prefers-reduced-motion:no-preference) and (min-width:64rem){@starting-style{._121hjq3t{transform:translateX(-100%)}}._1ee1188d{transition-duration:.3s}._1t2c1ku9{transition-timing-function:cubic-bezier(.6,0,0,1)}._14ckglyw{transform:none}}@media (prefers-reduced-motion:no-preference) and (min-width:64rem){._1ee1fnf5{transition-duration:.2s}._1t2c1mm8{transition-timing-function:cubic-bezier(0,.4,0,1)}._14ckjq3t{transform:translateX(-100%)}}@media (prefers-reduced-motion:no-preference) and (min-width:64rem){._2dsh8iot{transition-property:transform,display}._15ld1a5r{transition-behavior:allow-discrete}}@media (prefers-reduced-motion:no-preference) and (min-width:64rem){._kzn71gzg{grid-area:main}._1t2c1mm8{transition-timing-function:cubic-bezier(0,.4,0,1)}._14ckjq3t{transform:translateX(-100%)}}@media (prefers-reduced-motion:no-preference) and (min-width:64rem){@starting-style{._121hjq3t{transform:translateX(-100%)}}._kzn7k0mc{grid-area:side-nav}._1t2c1ku9{transition-timing-function:cubic-bezier(.6,0,0,1)}._14ckglyw{transform:none}}@media (prefers-reduced-motion:no-preference){._139f8iot{transition-property:transform,display}._1tpvfnf5{transition-duration:.2s}._sylc1a5r{transition-behavior:allow-discrete}._1uwsjq3t{transform:translateX(-100%)}}@media (prefers-reduced-motion:no-preference){@starting-style{._oyeijq3t{transform:translateX(-100%)}}._139f8iot{transition-property:transform,display}._1tpvfnf5{transition-duration:.2s}._sylc1a5r{transition-behavior:allow-discrete}}@media (prefers-reduced-motion:no-preference){._139f8iot{transition-property:transform,display}._sylc1a5r{transition-behavior:allow-discrete}._1tpv188d{transition-duration:.3s}}@media (prefers-reduced-motion:no-preference){._1h8i1gzg{grid-area:main}._ik8q1mm8{transition-timing-function:cubic-bezier(0,.4,0,1)}._1uwsjq3t{transform:translateX(-100%)}}@media (prefers-reduced-motion:no-preference){@starting-style{._oyeijq3t{transform:translateX(-100%)}}._ik8q1ku9{transition-timing-function:cubic-bezier(.6,0,0,1)}}}
|
|
@@ -45,10 +45,18 @@ var styles = {
|
|
|
45
45
|
root: "_nd5l1b6c _191wglyw _t51zglyw _bfhk1bhr _16qs1cd0 _vchhusvi _4t3ieqxy _152timx3 _kqsw1if8 _1bsb1ego _1pbycs5v _14b5hc79 _qilnk0mc _p5cl7r9e _4ap3vuon _scbpglyw",
|
|
46
46
|
flyoutOpen: "_qiln1gzg _p5clglyw _4ap31bhr _scbp1cd0 _139f8iot _1tpvfnf5 _sylc1a5r _oyeijq3t",
|
|
47
47
|
flyoutAnimateClosed: "_1e0cglyw _qiln1gzg _139f8iot _1tpvfnf5 _sylc1a5r _1uwsjq3t",
|
|
48
|
+
flyoutBaseStylesFullHeightSidebar: "_qiln1gzg _p5clglyw _4ap31bhr _scbp1cd0 _2dsh8iot _15ld1a5r",
|
|
49
|
+
flyoutOpenFullHeightSidebar: "_1ee1188d _1t2c1ku9 _14ckglyw _121hjq3t",
|
|
50
|
+
flyoutAnimateClosedFullHeightSidebar: "_dm25glyw _1ee1fnf5 _1t2c1mm8 _14ckjq3t",
|
|
48
51
|
flexContainer: "_4t3i1osq _1e0c1txw _2lx21bp4 _1bah1yb4",
|
|
49
52
|
hiddenMobileAndDesktop: "_1e0cglyw",
|
|
50
53
|
hiddenMobileOnly: "_1e0cglyw _dm2518uv",
|
|
51
54
|
hiddenDesktopOnly: "_dm25glyw",
|
|
55
|
+
animationBaseStyles: "_139f8iot _sylc1a5r _1tpv188d",
|
|
56
|
+
expandAnimationMobile: "_ik8q1ku9 _oyeijq3t",
|
|
57
|
+
collapseAnimationMobile: "_1h8i1gzg _ik8q1mm8 _1uwsjq3t",
|
|
58
|
+
expandAnimationDesktop: "_kzn7k0mc _1t2c1ku9 _14ckglyw _121hjq3t",
|
|
59
|
+
collapseAnimationDesktop: "_kzn71gzg _1t2c1mm8 _14ckjq3t",
|
|
52
60
|
fullHeightSidebar: "_165t56xv _180k1wjm _26vxoned _1mt19dtb"
|
|
53
61
|
};
|
|
54
62
|
var fallbackDefaultWidth = 320;
|
|
@@ -563,6 +571,18 @@ function SideNavInternal(_ref) {
|
|
|
563
571
|
panelId: sideNavPanelSplitterId
|
|
564
572
|
});
|
|
565
573
|
var isFlyoutClosed = (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'closed' || (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === undefined;
|
|
574
|
+
|
|
575
|
+
// Used to prevent sidebar expand animations from running on the initial render.
|
|
576
|
+
// Otherwise, the `@starting-style` rule will cause the sidebar to slide in initially.
|
|
577
|
+
var isFirstRenderRef = useRef(true);
|
|
578
|
+
useEffect(function () {
|
|
579
|
+
if (!fg('navx-full-height-sidebar')) {
|
|
580
|
+
return;
|
|
581
|
+
}
|
|
582
|
+
if (isFirstRenderRef.current) {
|
|
583
|
+
isFirstRenderRef.current = false;
|
|
584
|
+
}
|
|
585
|
+
}, []);
|
|
566
586
|
return /*#__PURE__*/React.createElement("nav", _extends({
|
|
567
587
|
id: id
|
|
568
588
|
}, devTimeOnlyAttributes, {
|
|
@@ -571,7 +591,7 @@ function SideNavInternal(_ref) {
|
|
|
571
591
|
style: _defineProperty({}, sideNavVar, clampedWidth),
|
|
572
592
|
ref: mergedRef,
|
|
573
593
|
"data-testid": testId,
|
|
574
|
-
className: ax([styles.root, isExpandedOnDesktop && !isExpandedOnMobile && !isFlyoutVisible && styles.hiddenMobileOnly, !isExpandedOnDesktop && isExpandedOnMobile && !isFlyoutVisible && styles.hiddenDesktopOnly, !isExpandedOnDesktop && !isExpandedOnMobile && !isFlyoutVisible && styles.hiddenMobileAndDesktop, (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'open' && styles.flyoutOpen, (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'triggered-animate-close' && styles.flyoutAnimateClosed, isFlyoutClosed && fg('navx-full-height-sidebar') && styles.fullHeightSidebar])
|
|
594
|
+
className: ax([styles.root, isExpandedOnDesktop && !isExpandedOnMobile && !isFlyoutVisible && styles.hiddenMobileOnly, !isExpandedOnDesktop && isExpandedOnMobile && !isFlyoutVisible && styles.hiddenDesktopOnly, !isExpandedOnDesktop && !isExpandedOnMobile && !isFlyoutVisible && styles.hiddenMobileAndDesktop, !isFirstRenderRef.current && fg('navx-full-height-sidebar') && styles.animationBaseStyles, isExpandedOnMobile && !isFirstRenderRef.current && fg('navx-full-height-sidebar') && styles.expandAnimationMobile, !isExpandedOnMobile && !isFirstRenderRef.current && fg('navx-full-height-sidebar') && styles.collapseAnimationMobile, isExpandedOnDesktop && !isFirstRenderRef.current && fg('navx-full-height-sidebar') && styles.expandAnimationDesktop, !isExpandedOnDesktop && !isFirstRenderRef.current && fg('navx-full-height-sidebar') && styles.collapseAnimationDesktop, (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'open' && !fg('navx-full-height-sidebar') && styles.flyoutOpen, (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'triggered-animate-close' && !fg('navx-full-height-sidebar') && styles.flyoutAnimateClosed, ((sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'open' || (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'triggered-animate-close') && fg('navx-full-height-sidebar') && styles.flyoutBaseStylesFullHeightSidebar, (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'triggered-animate-close' && fg('navx-full-height-sidebar') && styles.flyoutAnimateClosedFullHeightSidebar, (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'open' && fg('navx-full-height-sidebar') && styles.flyoutOpenFullHeightSidebar, (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'triggered-animate-close' && fg('navx-full-height-sidebar') && styles.flyoutAnimateClosedFullHeightSidebar, isFlyoutClosed && fg('navx-full-height-sidebar') && styles.fullHeightSidebar])
|
|
575
595
|
}), /*#__PURE__*/React.createElement(DangerouslyHoistCssVarToDocumentRoot, {
|
|
576
596
|
variableName: sideNavLiveWidthVar,
|
|
577
597
|
value: "0px",
|
|
@@ -5,4 +5,5 @@
|
|
|
5
5
|
._4t3i1osq{height:100%}
|
|
6
6
|
._bozgutpp{padding-inline-start:var(--ds-space-150,9pt)}
|
|
7
7
|
._lcxv1wug{pointer-events:auto}
|
|
8
|
-
|
|
8
|
+
._vchhusvi{box-sizing:border-box}
|
|
9
|
+
@media (min-width:64rem){._15rin7od{min-width:unset}._glte1osq{width:100%}._15rip2n4{min-width:330px}._glte1ris{width:max-content}._15ri1mjv{min-width:300px}._1gs5usvi{box-sizing:border-box}._glte93mn{width:var(--n_sNvlw,100%)}._exxmpxbi{padding-inline-end:var(--ds-space-200,1pc)}}
|
|
@@ -2,17 +2,37 @@
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import "./top-nav-start.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import React, { useContext, useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
5
|
+
import React, { forwardRef, useContext, useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
7
|
import { UNSAFE_useMediaQuery } from '@atlaskit/primitives/compiled';
|
|
8
8
|
import { TopNavStartAttachRef } from '../../../context/top-nav-start/top-nav-start-context';
|
|
9
9
|
import { SideNavToggleButtonSlotProvider } from '../side-nav/toggle-button-provider';
|
|
10
10
|
import { useSideNavVisibility } from '../side-nav/use-side-nav-visibility';
|
|
11
|
-
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Styles for the TopNavStart element.
|
|
14
|
+
*
|
|
15
|
+
* When `navx-full-height-sidebar` is enabled this is the styling for the inner element,
|
|
16
|
+
* which re-enables pointer events.
|
|
17
|
+
*/
|
|
18
|
+
var innerStyles = {
|
|
12
19
|
root: "_zulp1b66 _yyhykb7n _4t3i1osq _4cvr1h6o _1e0c1txw _glte1ris _15ri1mjv _1gs5usvi",
|
|
13
20
|
jiraProductLogoUpdate: "_15rip2n4",
|
|
14
|
-
fullHeightSidebar: "
|
|
15
|
-
fullHeightSidebarExpanded: "_15rin7od _glte1osq
|
|
21
|
+
fullHeightSidebar: "_lcxv1wug",
|
|
22
|
+
fullHeightSidebarExpanded: "_15rin7od _glte1osq"
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Styles for the outer element, that does not have re-enabled pointer events and spans the entire
|
|
27
|
+
* width of the TopNavStart area.
|
|
28
|
+
*
|
|
29
|
+
* This wrapper element is only rendered when `navx-full-height-sidebar` is enabled.
|
|
30
|
+
*/
|
|
31
|
+
var wrapperStyles = {
|
|
32
|
+
root: "_vchhusvi",
|
|
33
|
+
fullHeightSidebar: "_bozgutpp",
|
|
34
|
+
fullHeightSidebarCollapsed: "_15rip2n4",
|
|
35
|
+
fullHeightSidebarExpanded: "_glte93mn _exxmpxbi"
|
|
16
36
|
};
|
|
17
37
|
|
|
18
38
|
/**
|
|
@@ -22,16 +42,43 @@ var styles = {
|
|
|
22
42
|
* This ensures we get focus restoration for free.
|
|
23
43
|
*/
|
|
24
44
|
var sideNavToggleButtonKey = 'side-nav-toggle-button';
|
|
45
|
+
var TopNavStartInnerOld = /*#__PURE__*/forwardRef(function TopNavStartInner(_ref, ref) {
|
|
46
|
+
var children = _ref.children,
|
|
47
|
+
testId = _ref.testId;
|
|
48
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
49
|
+
ref: ref,
|
|
50
|
+
"data-testid": testId,
|
|
51
|
+
className: ax([innerStyles.root, fg('team25-eu-jira-logo-updates-csm-jsm') && innerStyles.jiraProductLogoUpdate])
|
|
52
|
+
}, children);
|
|
53
|
+
});
|
|
54
|
+
var TopNavStartInnerFHS = /*#__PURE__*/forwardRef(function TopNavStartInnerFHS(_ref2, ref) {
|
|
55
|
+
var children = _ref2.children,
|
|
56
|
+
testId = _ref2.testId;
|
|
57
|
+
// This needs the real `defaultCollapsed` state or will not SSR properly
|
|
58
|
+
// TODO: lift `defaultCollapsed` state to `Root` (DSP-23683)
|
|
59
|
+
// then context value will be correct in SSR / from initial render
|
|
60
|
+
var _useSideNavVisibility = useSideNavVisibility({
|
|
61
|
+
defaultCollapsed: true
|
|
62
|
+
}),
|
|
63
|
+
isExpandedOnDesktop = _useSideNavVisibility.isExpandedOnDesktop;
|
|
64
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
65
|
+
ref: ref,
|
|
66
|
+
"data-testid": testId,
|
|
67
|
+
className: ax([wrapperStyles.root, wrapperStyles.fullHeightSidebar, isExpandedOnDesktop && wrapperStyles.fullHeightSidebarExpanded])
|
|
68
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
69
|
+
className: ax([innerStyles.root, innerStyles.fullHeightSidebar, isExpandedOnDesktop && innerStyles.fullHeightSidebarExpanded, fg('team25-eu-jira-logo-updates-csm-jsm') && innerStyles.jiraProductLogoUpdate])
|
|
70
|
+
}, children));
|
|
71
|
+
});
|
|
25
72
|
|
|
26
73
|
/**
|
|
27
74
|
* __TopNavStart__
|
|
28
75
|
*
|
|
29
76
|
* Wrapper for the top navigation actions on the inline-start (left) side of the top navigation.
|
|
30
77
|
*/
|
|
31
|
-
export function TopNavStart(
|
|
32
|
-
var children =
|
|
33
|
-
testId =
|
|
34
|
-
sideNavToggleButton =
|
|
78
|
+
export function TopNavStart(_ref3) {
|
|
79
|
+
var children = _ref3.children,
|
|
80
|
+
testId = _ref3.testId,
|
|
81
|
+
sideNavToggleButton = _ref3.sideNavToggleButton;
|
|
35
82
|
var ref = useContext(TopNavStartAttachRef);
|
|
36
83
|
var elementRef = useRef(null);
|
|
37
84
|
useEffect(function () {
|
|
@@ -43,10 +90,10 @@ export function TopNavStart(_ref) {
|
|
|
43
90
|
// This needs the real `defaultCollapsed` state or will not SSR properly
|
|
44
91
|
// TODO: lift `defaultCollapsed` state to `Root` (DSP-23683)
|
|
45
92
|
// then context value will be correct in SSR / from initial render
|
|
46
|
-
var
|
|
93
|
+
var _useSideNavVisibility2 = useSideNavVisibility({
|
|
47
94
|
defaultCollapsed: true
|
|
48
95
|
}),
|
|
49
|
-
isExpandedOnDesktop =
|
|
96
|
+
isExpandedOnDesktop = _useSideNavVisibility2.isExpandedOnDesktop;
|
|
50
97
|
|
|
51
98
|
// For SSR assume desktop
|
|
52
99
|
var _useState = useState(true),
|
|
@@ -66,10 +113,10 @@ export function TopNavStart(_ref) {
|
|
|
66
113
|
UNSAFE_useMediaQuery('above.md', function (event) {
|
|
67
114
|
setIsDesktop(event.matches);
|
|
68
115
|
});
|
|
69
|
-
|
|
116
|
+
var TopNavStartInner = fg('navx-full-height-sidebar') ? TopNavStartInnerFHS : TopNavStartInnerOld;
|
|
117
|
+
return /*#__PURE__*/React.createElement(TopNavStartInner, {
|
|
70
118
|
ref: fg('platform_fix_component_state_update_for_suspense') ? elementRef : ref,
|
|
71
|
-
|
|
72
|
-
className: ax([styles.root, fg('navx-full-height-sidebar') && styles.fullHeightSidebar, isExpandedOnDesktop && fg('navx-full-height-sidebar') && styles.fullHeightSidebarExpanded, fg('team25-eu-jira-logo-updates-csm-jsm') && styles.jiraProductLogoUpdate])
|
|
119
|
+
testId: testId
|
|
73
120
|
}, !fg('navx-full-height-sidebar') && /*#__PURE__*/React.createElement(SideNavToggleButtonSlotProvider, {
|
|
74
121
|
key: sideNavToggleButtonKey
|
|
75
122
|
}, sideNavToggleButton), sideNavToggleButton && (!isDesktop || !isExpandedOnDesktop) && fg('navx-full-height-sidebar') && /*#__PURE__*/React.createElement(SideNavToggleButtonSlotProvider, {
|
|
@@ -20,4 +20,5 @@
|
|
|
20
20
|
._y4tiutpp{padding-inline-end:var(--ds-space-150,9pt)}
|
|
21
21
|
._yv0e1mfv{grid-template-columns:auto 1fr auto}
|
|
22
22
|
@media (min-width:48rem){._1j8b18ax{grid-template-columns:1fr minmax(min-content,max-content) 1fr}}
|
|
23
|
-
@media (min-width:64rem){.
|
|
23
|
+
@media (min-width:64rem){._1rqt16a9{grid-template-columns:0fr minmax(min-content,max-content) 1fr}._hyzqcs5v{z-index:2}._pdlmutpp{gap:var(--ds-space-150,9pt)}}
|
|
24
|
+
@media (min-width:110.5rem){._jh1g18ax{grid-template-columns:1fr minmax(min-content,max-content) 1fr}}
|
|
@@ -25,7 +25,7 @@ import { useSideNavVisibility } from '../side-nav/use-side-nav-visibility';
|
|
|
25
25
|
var styles = {
|
|
26
26
|
root: "_nd5l8cbt _zulpu2gc _18zrutpp _179r7r9e _1e0c11p5 _yv0e1mfv _4cvr1h6o _bfhkvuon _vchhusvi _4t3i1dgc _152t1nws _kqsw1if8 _1pbyegat _d6vu1bgi _1j8b18ax",
|
|
27
27
|
fullHeightSidebar: "_179rglyw _bozgze3t _y4tiutpp _bfhkglyw _lcxvglyw _pdlmutpp",
|
|
28
|
-
fullHeightSidebarExpanded: "
|
|
28
|
+
fullHeightSidebarExpanded: "_1rqt16a9 _jh1g18ax"
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
/**
|
|
@@ -3,12 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
|
|
7
|
-
* __TopNavStart__
|
|
8
|
-
*
|
|
9
|
-
* Wrapper for the top navigation actions on the inline-start (left) side of the top navigation.
|
|
10
|
-
*/
|
|
11
|
-
export declare function TopNavStart({ children, testId, sideNavToggleButton, }: {
|
|
6
|
+
type TopNavStartProps = {
|
|
12
7
|
/**
|
|
13
8
|
* The content of the layout area.
|
|
14
9
|
*
|
|
@@ -30,4 +25,11 @@ export declare function TopNavStart({ children, testId, sideNavToggleButton, }:
|
|
|
30
25
|
* Consumers that do not need a toggle button can explicitly pass `null`.
|
|
31
26
|
*/
|
|
32
27
|
sideNavToggleButton?: React.ReactNode;
|
|
33
|
-
}
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* __TopNavStart__
|
|
31
|
+
*
|
|
32
|
+
* Wrapper for the top navigation actions on the inline-start (left) side of the top navigation.
|
|
33
|
+
*/
|
|
34
|
+
export declare function TopNavStart({ children, testId, sideNavToggleButton }: TopNavStartProps): JSX.Element;
|
|
35
|
+
export {};
|
|
@@ -3,12 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
|
|
7
|
-
* __TopNavStart__
|
|
8
|
-
*
|
|
9
|
-
* Wrapper for the top navigation actions on the inline-start (left) side of the top navigation.
|
|
10
|
-
*/
|
|
11
|
-
export declare function TopNavStart({ children, testId, sideNavToggleButton, }: {
|
|
6
|
+
type TopNavStartProps = {
|
|
12
7
|
/**
|
|
13
8
|
* The content of the layout area.
|
|
14
9
|
*
|
|
@@ -30,4 +25,11 @@ export declare function TopNavStart({ children, testId, sideNavToggleButton, }:
|
|
|
30
25
|
* Consumers that do not need a toggle button can explicitly pass `null`.
|
|
31
26
|
*/
|
|
32
27
|
sideNavToggleButton?: React.ReactNode;
|
|
33
|
-
}
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* __TopNavStart__
|
|
31
|
+
*
|
|
32
|
+
* Wrapper for the top navigation actions on the inline-start (left) side of the top navigation.
|
|
33
|
+
*/
|
|
34
|
+
export declare function TopNavStart({ children, testId, sideNavToggleButton }: TopNavStartProps): JSX.Element;
|
|
35
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/navigation-system",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.18.0",
|
|
4
4
|
"description": "The latest navigation system for Atlassian apps.",
|
|
5
5
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
6
6
|
"author": "Atlassian Pty Ltd",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@atlaskit/button": "^23.5.0",
|
|
72
72
|
"@atlaskit/css": "^0.14.0",
|
|
73
73
|
"@atlaskit/ds-lib": "^5.1.0",
|
|
74
|
-
"@atlaskit/icon": "^28.
|
|
74
|
+
"@atlaskit/icon": "^28.5.0",
|
|
75
75
|
"@atlaskit/layering": "^3.0.0",
|
|
76
76
|
"@atlaskit/logo": "^19.9.0",
|
|
77
77
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|