@atlaskit/navigation-system 6.1.0 → 6.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/cjs/ui/page-layout/banner.js +2 -3
  3. package/dist/cjs/ui/page-layout/constants.js +2 -2
  4. package/dist/cjs/ui/page-layout/panel-splitter/panel-splitter.js +2 -3
  5. package/dist/cjs/ui/page-layout/panel-splitter/provider.js +2 -3
  6. package/dist/cjs/ui/page-layout/panel-splitter/side-nav-panel-splitter.js +2 -3
  7. package/dist/cjs/ui/page-layout/root.js +1 -1
  8. package/dist/cjs/ui/page-layout/side-nav/side-nav-content.compiled.css +1 -5
  9. package/dist/cjs/ui/page-layout/side-nav/side-nav-content.js +2 -4
  10. package/dist/cjs/ui/page-layout/side-nav/side-nav-header.js +1 -1
  11. package/dist/cjs/ui/page-layout/side-nav/side-nav.compiled.css +1 -1
  12. package/dist/cjs/ui/page-layout/side-nav/side-nav.js +5 -10
  13. package/dist/cjs/ui/page-layout/top-nav/top-nav-end.compiled.css +0 -1
  14. package/dist/cjs/ui/page-layout/top-nav/top-nav-end.js +14 -18
  15. package/dist/cjs/ui/page-layout/top-nav/top-nav-middle.compiled.css +0 -1
  16. package/dist/cjs/ui/page-layout/top-nav/top-nav-middle.js +4 -8
  17. package/dist/cjs/ui/page-layout/top-nav/top-nav-start.compiled.css +1 -2
  18. package/dist/cjs/ui/page-layout/top-nav/top-nav-start.js +10 -14
  19. package/dist/cjs/ui/page-layout/top-nav/top-nav.compiled.css +1 -5
  20. package/dist/cjs/ui/page-layout/top-nav/top-nav.js +5 -57
  21. package/dist/es2019/ui/page-layout/banner.js +2 -3
  22. package/dist/es2019/ui/page-layout/constants.js +2 -2
  23. package/dist/es2019/ui/page-layout/panel-splitter/panel-splitter.js +2 -3
  24. package/dist/es2019/ui/page-layout/panel-splitter/provider.js +2 -3
  25. package/dist/es2019/ui/page-layout/panel-splitter/side-nav-panel-splitter.js +2 -3
  26. package/dist/es2019/ui/page-layout/root.js +1 -1
  27. package/dist/es2019/ui/page-layout/side-nav/side-nav-content.compiled.css +1 -5
  28. package/dist/es2019/ui/page-layout/side-nav/side-nav-content.js +2 -4
  29. package/dist/es2019/ui/page-layout/side-nav/side-nav-header.js +1 -1
  30. package/dist/es2019/ui/page-layout/side-nav/side-nav.compiled.css +1 -1
  31. package/dist/es2019/ui/page-layout/side-nav/side-nav.js +6 -11
  32. package/dist/es2019/ui/page-layout/top-nav/top-nav-end.compiled.css +0 -1
  33. package/dist/es2019/ui/page-layout/top-nav/top-nav-end.js +8 -13
  34. package/dist/es2019/ui/page-layout/top-nav/top-nav-middle.compiled.css +0 -1
  35. package/dist/es2019/ui/page-layout/top-nav/top-nav-middle.js +4 -8
  36. package/dist/es2019/ui/page-layout/top-nav/top-nav-start.compiled.css +1 -2
  37. package/dist/es2019/ui/page-layout/top-nav/top-nav-start.js +11 -15
  38. package/dist/es2019/ui/page-layout/top-nav/top-nav.compiled.css +1 -5
  39. package/dist/es2019/ui/page-layout/top-nav/top-nav.js +6 -57
  40. package/dist/esm/ui/page-layout/banner.js +2 -3
  41. package/dist/esm/ui/page-layout/constants.js +2 -2
  42. package/dist/esm/ui/page-layout/panel-splitter/panel-splitter.js +2 -3
  43. package/dist/esm/ui/page-layout/panel-splitter/provider.js +2 -3
  44. package/dist/esm/ui/page-layout/panel-splitter/side-nav-panel-splitter.js +2 -3
  45. package/dist/esm/ui/page-layout/root.js +1 -1
  46. package/dist/esm/ui/page-layout/side-nav/side-nav-content.compiled.css +1 -5
  47. package/dist/esm/ui/page-layout/side-nav/side-nav-content.js +2 -4
  48. package/dist/esm/ui/page-layout/side-nav/side-nav-header.js +1 -1
  49. package/dist/esm/ui/page-layout/side-nav/side-nav.compiled.css +1 -1
  50. package/dist/esm/ui/page-layout/side-nav/side-nav.js +6 -11
  51. package/dist/esm/ui/page-layout/top-nav/top-nav-end.compiled.css +0 -1
  52. package/dist/esm/ui/page-layout/top-nav/top-nav-end.js +14 -18
  53. package/dist/esm/ui/page-layout/top-nav/top-nav-middle.compiled.css +0 -1
  54. package/dist/esm/ui/page-layout/top-nav/top-nav-middle.js +4 -8
  55. package/dist/esm/ui/page-layout/top-nav/top-nav-start.compiled.css +1 -2
  56. package/dist/esm/ui/page-layout/top-nav/top-nav-start.js +10 -14
  57. package/dist/esm/ui/page-layout/top-nav/top-nav.compiled.css +1 -5
  58. package/dist/esm/ui/page-layout/top-nav/top-nav.js +6 -57
  59. package/dist/types/ui/page-layout/constants.d.ts +3 -3
  60. package/dist/types/ui/page-layout/panel-splitter/context.d.ts +0 -2
  61. package/dist/types/ui/page-layout/panel-splitter/provider.d.ts +0 -2
  62. package/dist/types/ui/page-layout/ribbon.d.ts +1 -1
  63. package/dist/types/ui/top-nav-items/themed/search.d.ts +2 -2
  64. package/dist/types-ts4.5/ui/page-layout/constants.d.ts +3 -3
  65. package/dist/types-ts4.5/ui/page-layout/panel-splitter/context.d.ts +0 -2
  66. package/dist/types-ts4.5/ui/page-layout/panel-splitter/provider.d.ts +0 -2
  67. package/dist/types-ts4.5/ui/page-layout/ribbon.d.ts +1 -1
  68. package/dist/types-ts4.5/ui/top-nav-items/themed/search.d.ts +2 -2
  69. package/package.json +11 -11
@@ -47,8 +47,7 @@ var lineStyles = {
47
47
  root: "_kqswstnw _1e0c1ule _1bsb1l7b _4t3i1osq _syaz1kw7 _bfhk1r31 _1e021v6z"
48
48
  };
49
49
  var tooltipStyles = {
50
- root: "_ahbq196n",
51
- fullHeightSidebarWithLayeringFixes: "_1bsb1ris"
50
+ root: "_ahbq196n _1bsb1ris"
52
51
  };
53
52
  var panelSplitterDragDataSymbol = Symbol('panel-splitter-drag-data');
54
53
  function signPanelSplitterDragData(data) {
@@ -90,7 +89,7 @@ var PanelSplitterTooltip = /*#__PURE__*/forwardRef(function (_ref, ref) {
90
89
  // Must be statically passed
91
90
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/design-system/no-unsafe-style-overrides
92
91
  ,
93
- className: ax([tooltipStyles.root, fg('platform-dst-side-nav-layering-fixes') && tooltipStyles.fullHeightSidebarWithLayeringFixes, className])
92
+ className: ax([tooltipStyles.root, className])
94
93
  // eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides
95
94
  ,
96
95
 
@@ -1,5 +1,4 @@
1
1
  import React, { Fragment, useMemo, useRef } from 'react';
2
- import { fg } from '@atlaskit/platform-feature-flags';
3
2
  import { PanelSplitterContext } from './context';
4
3
  /**
5
4
  * Provides the context required for the panel splitter to work within a page layout slot.
@@ -31,13 +30,13 @@ export var PanelSplitterProvider = function PanelSplitterProvider(_ref) {
31
30
  position: position,
32
31
  panelRef: panelRef,
33
32
  isEnabled: isEnabled,
34
- portalRef: typeof providedPortalRef !== 'undefined' && fg('platform-dst-side-nav-layering-fixes') ? providedPortalRef : portalRef,
33
+ portalRef: typeof providedPortalRef !== 'undefined' ? providedPortalRef : portalRef,
35
34
  shortcut: shortcut
36
35
  };
37
36
  }, [panelId, panelWidth, onCompleteResize, getResizeBounds, resizingCssVar, position, panelRef, isEnabled, providedPortalRef, shortcut]);
38
37
  return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(PanelSplitterContext.Provider, {
39
38
  value: context
40
- }, children), typeof providedPortalRef !== 'undefined' && fg('platform-dst-side-nav-layering-fixes') ? null : /*#__PURE__*/React.createElement("div", {
39
+ }, children), typeof providedPortalRef !== 'undefined' ? null : /*#__PURE__*/React.createElement("div", {
41
40
  ref: portalRef
42
41
  }));
43
42
  };
@@ -2,7 +2,6 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import React, { useContext, useEffect, useState } from 'react';
3
3
  import invariant from 'tiny-invariant';
4
4
  import { useOpenLayerObserver } from '@atlaskit/layering/experimental/open-layer-observer';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { useIsFhsEnabled } from '../../fhs-rollout/use-is-fhs-enabled';
7
6
  import { openLayerObserverSideNavNamespace, openLayerObserverTopNavEndNamespace, openLayerObserverTopNavMiddleNamespace, openLayerObserverTopNavStartNamespace, sideNavPanelSplitterId } from '../constants';
8
7
  import { useToggleSideNav } from '../side-nav/use-toggle-side-nav';
@@ -32,7 +31,7 @@ function useHasOpenPopupsInSideNavOrTopNav() {
32
31
  hasOpenPopups = _useState2[0],
33
32
  setHasOpenPopups = _useState2[1];
34
33
  useEffect(function () {
35
- if (!openLayerObserver || !isFhsEnabled || !fg('platform-dst-side-nav-layering-fixes')) {
34
+ if (!openLayerObserver || !isFhsEnabled) {
36
35
  return;
37
36
  }
38
37
  function updateState() {
@@ -97,7 +96,7 @@ export var SideNavPanelSplitter = function SideNavPanelSplitter(_ref) {
97
96
  // in the side nav or top nav is being placed here, instead of in `SideNav`, to prevent
98
97
  // re-rendering the side nav anytime the number of open popups changes.
99
98
  var hasOpenLayersInSideNavOrTopNav = useHasOpenPopupsInSideNavOrTopNav();
100
- if (hasOpenLayersInSideNavOrTopNav && isFhsEnabled && fg('platform-dst-side-nav-layering-fixes')) {
99
+ if (hasOpenLayersInSideNavOrTopNav && isFhsEnabled) {
101
100
  return null;
102
101
  }
103
102
  return /*#__PURE__*/React.createElement(OnDoubleClickContext.Provider, {
@@ -63,7 +63,7 @@ export function Root(_ref) {
63
63
  testId: testId
64
64
  }, /*#__PURE__*/React.createElement("div", {
65
65
  ref: ref,
66
- className: ax([styles.root, isFhsEnabled && fg('platform-dst-side-nav-layering-fixes') && !fg('platform_dst_nav4_fhs_feedback_1') && styles.sideNavScrollTimeline, fg('platform_dst_nav4_ribbon_slot') && styles.ribbon, xcss]),
66
+ className: ax([styles.root, isFhsEnabled && !fg('platform_dst_nav4_fhs_feedback_1') && styles.sideNavScrollTimeline, fg('platform_dst_nav4_ribbon_slot') && styles.ribbon, xcss]),
67
67
  id: gridRootId,
68
68
  "data-testid": testId
69
69
  }, children)))))))));
@@ -1,14 +1,10 @@
1
-
2
- ._1un9baqb{scroll-timeline:--sNcst block}._16jlkb7n{flex-grow:1}
1
+ ._16jlkb7n{flex-grow:1}
3
2
  ._18m91wug{overflow-y:auto}
4
3
  ._1o9zkb7n{flex-shrink:1}
5
4
  ._1q51utpp{padding-block-start:var(--ds-space-150,9pt)}
6
5
  ._1reo1wug{overflow-x:auto}
7
- ._21o1gc9s{animation-timeline:--sNcst}
8
6
  ._85i5utpp{padding-block-end:var(--ds-space-150,9pt)}
9
7
  ._bozgutpp{padding-inline-start:var(--ds-space-150,9pt)}
10
8
  ._i0dlf1ug{flex-basis:0%}
11
- ._j7hq4n8p{animation-name:k1gwhnxc}
12
9
  ._y4tiutpp{padding-inline-end:var(--ds-space-150,9pt)}
13
- @keyframes k1gwhnxc{0%{box-shadow:none}0.1%{box-shadow:0 -1px var(--ds-border,#0b120e24)}to{box-shadow:0 -1px var(--ds-border,#0b120e24)}}
14
10
  @media (min-width:64rem){@supports (scroll-timeline-axis:block){._1sfqgc9s{scroll-timeline-name:--sNcst}._1q1x1ule{scroll-timeline-axis:block}html:has([data-private-side-nav-header]) ._8pm2gc9s{animation-timeline:--sNcst}html:has([data-private-side-nav-header]) ._1gd94n8p{animation-name:k1gwhnxc}}@supports (scroll-timeline-axis:block){@keyframes k1gwhnxc{0%{box-shadow:none}0.1%{box-shadow:0 -1px var(--ds-border,#0b120e24)}to{box-shadow:0 -1px var(--ds-border,#0b120e24)}}}}
@@ -32,10 +32,8 @@ var styles = {
32
32
  * whereas this CSS approach should show even before hydration.
33
33
  */
34
34
  var scrolledBorder = null;
35
- var scrollTimelineVar = '--sNcst';
36
35
  var fullHeightSidebarStyles = {
37
- scrollContainer: "_1un9baqb _21o1gc9s _j7hq4n8p",
38
- scrollContainerWithLayeringFixes: "_1sfqgc9s _1q1x1ule _8pm2gc9s _1gd94n8p"
36
+ scrollContainer: "_1sfqgc9s _1q1x1ule _8pm2gc9s _1gd94n8p"
39
37
  };
40
38
  function _SideNavContent(_ref, forwardedRef) {
41
39
  var children = _ref.children,
@@ -50,7 +48,7 @@ function _SideNavContent(_ref, forwardedRef) {
50
48
  return /*#__PURE__*/React.createElement("div", {
51
49
  ref: isFhsEnabled ? mergedRef : forwardedRef,
52
50
  "data-testid": testId,
53
- className: ax([styles.scrollContainer, isFhsEnabled && !fg('platform-dst-side-nav-layering-fixes') && !fg('platform_dst_nav4_fhs_feedback_1') && fullHeightSidebarStyles.scrollContainer, isFhsEnabled && isExpandedOnDesktop && fg('platform-dst-side-nav-layering-fixes') && !fg('platform_dst_nav4_fhs_feedback_1') && fullHeightSidebarStyles.scrollContainerWithLayeringFixes])
51
+ className: ax([styles.scrollContainer, isFhsEnabled && isExpandedOnDesktop && !fg('platform_dst_nav4_fhs_feedback_1') && fullHeightSidebarStyles.scrollContainer])
54
52
  }, /*#__PURE__*/React.createElement("div", {
55
53
  className: ax([styles.paddingContainer])
56
54
  }, children));
@@ -28,7 +28,7 @@ export var SideNavHeader = function SideNavHeader(_ref) {
28
28
  * - If SideNavHeader does not exist, the scroll indicator line is applied to TopNavStart. This ensures
29
29
  * the scroll indicator line is visible even when the top nav has a z-index higher than the side nav.
30
30
  */
31
- "data-private-side-nav-header": fg('platform-dst-side-nav-layering-fixes') ? 'true' : undefined,
31
+ "data-private-side-nav-header": fg('platform_dst_nav4_fhs_feedback_1') ? undefined : 'true',
32
32
  className: ax([styles.root])
33
33
  }, children);
34
34
  };
@@ -22,7 +22,7 @@
22
22
  [dir=rtl] ._65m41mrw{--animation-direction:-1}
23
23
  @media (prefers-reduced-motion:no-preference){._10t88iot{transition-property:transform,display}._1vrh1a5r{transition-behavior:allow-discrete}._xrrpfnf5{transition-duration:.2s}._1lh81gzg{grid-area:main}._1xq51mm8{transition-timing-function:cubic-bezier(0,.4,0,1)}@starting-style{._1nu51p9u{transform:translateX(calc(-100%*var(--animation-direction)))}}._1xq51ku9{transition-timing-function:cubic-bezier(.6,0,0,1)}}
24
24
  @media (min-width:48rem){._14b5hc79{width:var(--n_snvRsz,var(--n_sNvw))}}
25
- @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)}._p0az1elq{transform:translateX(calc(var(--n_snvRsz, var(--n_snvW, 0px)) - var(--ds-border-width, 1px)))}._dm2518uv{display:initial}._dm25glyw{display:none}._qiln1gzg{grid-area:main}._p5clglyw{border-inline-end:none}._4ap31bhr{background-color:var(--ds-surface-overlay,#fff)}._scbp130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}._qilnk0mc{grid-area:side-nav}._p5clia51{border-inline-end:var(--ds-border-width,1px) solid var(--ds-border,#0b120e24)}._4ap3vuon{background-color:var(--ds-surface,#fff)}._scbpglyw{box-shadow:none}}
25
+ @media (min-width:64rem){._165t56xv{height:calc(100vh - var(--n_bnrM, 0px))}._p0az1elq{transform:translateX(calc(var(--n_snvRsz, var(--n_snvW, 0px)) - var(--ds-border-width, 1px)))}._dm2518uv{display:initial}._dm25glyw{display:none}._qiln1gzg{grid-area:main}._p5clglyw{border-inline-end:none}._4ap31bhr{background-color:var(--ds-surface-overlay,#fff)}._scbp130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}._qilnk0mc{grid-area:side-nav}._p5clia51{border-inline-end:var(--ds-border-width,1px) solid var(--ds-border,#0b120e24)}._4ap3vuon{background-color:var(--ds-surface,#fff)}._scbpglyw{box-shadow:none}}
26
26
  @media (prefers-reduced-motion:no-preference) and (min-width:64rem){._17ly8iot{transition-property:transform,display}._177m1a5r{transition-behavior:allow-discrete}._1sg81gzg{grid-area:main}._vgub1mm8{transition-timing-function:cubic-bezier(0,.4,0,1)}._hh1u1p9u{transform:translateX(calc(-100%*var(--animation-direction)))}@starting-style{._s2eg1p9u{transform:translateX(calc(-100%*var(--animation-direction)))}}._1sg8k0mc{grid-area:side-nav}._vgub1ku9{transition-timing-function:cubic-bezier(.6,0,0,1)}._hjoifnf5{transition-duration:.2s}}
27
27
  @media (prefers-reduced-motion:no-preference) and (not (min-width:64rem)){._aadi1p9u{transform:translateX(calc(-100%*var(--animation-direction)))}}
28
28
  @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,7 +19,7 @@ import { media } from '@atlaskit/primitives/responsive';
19
19
  import { useSkipLinkInternal } from '../../../context/skip-links/skip-links-context';
20
20
  import { TopNavStartElement } from '../../../context/top-nav-start/top-nav-start-context';
21
21
  import { useIsFhsEnabled } from '../../fhs-rollout/use-is-fhs-enabled';
22
- import { bannerMountedVar, contentHeightWhenFixed, contentInsetBlockStart, localSlotLayers, openLayerObserverSideNavNamespace, openLayerObserverTopNavStartNamespace, sideNavLiveWidthVar, sideNavPanelSplitterId, sideNavVar, topNavMountedVar, UNSAFE_sideNavLayoutVar } from '../constants';
22
+ import { bannerMountedVar, contentHeightWhenFixed, contentInsetBlockStart, localSlotLayers, openLayerObserverSideNavNamespace, openLayerObserverTopNavStartNamespace, sideNavLiveWidthVar, sideNavPanelSplitterId, sideNavVar, UNSAFE_sideNavLayoutVar } from '../constants';
23
23
  import { DangerouslyHoistSlotSizes } from '../hoist-slot-sizes-context';
24
24
  import { DangerouslyHoistCssVarToDocumentRoot } from '../hoist-utils';
25
25
  import { useLayoutId } from '../id-utils';
@@ -74,8 +74,7 @@ var styles = {
74
74
  expandAnimationMobile: "_1xq51ku9 _1nu51p9u",
75
75
  collapseAnimationMobile: "_1lh81gzg _1xq51mm8 _aadi1p9u",
76
76
  expandAnimationDesktop: "_1sg8k0mc _vgub1ku9 _s2eg1p9u",
77
- collapseAnimationDesktop: "_1sg81gzg _vgub1mm8 _hh1u1p9u",
78
- fullHeightSidebar: "_165t56xv _180k1wjm _26vxoned _1mt19dtb"
77
+ collapseAnimationDesktop: "_1sg81gzg _vgub1mm8 _hh1u1p9u"
79
78
  };
80
79
  var fallbackDefaultWidth = 320;
81
80
  export var onPeekStartDelayMs = 500;
@@ -681,7 +680,6 @@ function SideNavInternal(_ref) {
681
680
  cssVar: panelSplitterResizingVar,
682
681
  panelId: sideNavPanelSplitterId
683
682
  });
684
- var isFlyoutClosed = (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'closed' || (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === undefined;
685
683
  var isExpandedStateDifferentFromInitial = isExpandedOnMobile || isExpandedOnDesktop !== initialIsExpandedOnDesktop;
686
684
 
687
685
  /**
@@ -739,7 +737,7 @@ function SideNavInternal(_ref) {
739
737
  style: _defineProperty({}, sideNavVar, clampedWidth),
740
738
  ref: mergedRef,
741
739
  "data-testid": testId,
742
- className: ax([styles.root, isExpandedOnDesktop && !isExpandedOnMobile && !isFlyoutVisible && styles.hiddenMobileOnly, !isExpandedOnDesktop && isExpandedOnMobile && !isFlyoutVisible && styles.hiddenDesktopOnly, !isExpandedOnDesktop && !isExpandedOnMobile && !isFlyoutVisible && styles.hiddenMobileAndDesktop, isFhsEnabled && styles.animationRTLSupport, shouldShowSidebarToggleAnimation && styles.animationBaseStyles, isExpandedOnMobile && shouldShowSidebarToggleAnimation && styles.expandAnimationMobile, !isExpandedOnMobile && shouldShowSidebarToggleAnimation && styles.collapseAnimationMobile, isExpandedOnDesktop && shouldShowSidebarToggleAnimation && styles.expandAnimationDesktop, !isExpandedOnDesktop && shouldShowSidebarToggleAnimation && styles.collapseAnimationDesktop, (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'open' && !isFhsEnabled && styles.flyoutOpen, (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'triggered-animate-close' && !isFhsEnabled && styles.flyoutAnimateClosed, ((sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'open' || (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'triggered-animate-close') && !isFirefox && isFhsEnabled && styles.flyoutBaseStylesFullHeightSidebar, (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'triggered-animate-close' && !isFirefox && isFhsEnabled && styles.flyoutAnimateClosedFullHeightSidebar, (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'open' && !isFirefox && isFhsEnabled && styles.flyoutOpenFullHeightSidebar, (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'triggered-animate-close' && !isFirefox && isFhsEnabled && styles.flyoutAnimateClosedFullHeightSidebar, isFlyoutClosed && isFhsEnabled && !fg('platform-dst-side-nav-layering-fixes') && styles.fullHeightSidebar])
740
+ className: ax([styles.root, isExpandedOnDesktop && !isExpandedOnMobile && !isFlyoutVisible && styles.hiddenMobileOnly, !isExpandedOnDesktop && isExpandedOnMobile && !isFlyoutVisible && styles.hiddenDesktopOnly, !isExpandedOnDesktop && !isExpandedOnMobile && !isFlyoutVisible && styles.hiddenMobileAndDesktop, isFhsEnabled && styles.animationRTLSupport, shouldShowSidebarToggleAnimation && styles.animationBaseStyles, isExpandedOnMobile && shouldShowSidebarToggleAnimation && styles.expandAnimationMobile, !isExpandedOnMobile && shouldShowSidebarToggleAnimation && styles.collapseAnimationMobile, isExpandedOnDesktop && shouldShowSidebarToggleAnimation && styles.expandAnimationDesktop, !isExpandedOnDesktop && shouldShowSidebarToggleAnimation && styles.collapseAnimationDesktop, (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'open' && !isFhsEnabled && styles.flyoutOpen, (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'triggered-animate-close' && !isFhsEnabled && styles.flyoutAnimateClosed, ((sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'open' || (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'triggered-animate-close') && !isFirefox && isFhsEnabled && styles.flyoutBaseStylesFullHeightSidebar, (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'triggered-animate-close' && !isFirefox && isFhsEnabled && styles.flyoutAnimateClosedFullHeightSidebar, (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'open' && !isFirefox && isFhsEnabled && styles.flyoutOpenFullHeightSidebar, (sideNavState === null || sideNavState === void 0 ? void 0 : sideNavState.flyout) === 'triggered-animate-close' && !isFirefox && isFhsEnabled && styles.flyoutAnimateClosedFullHeightSidebar])
743
741
  }), /*#__PURE__*/React.createElement(DangerouslyHoistCssVarToDocumentRoot, {
744
742
  variableName: sideNavLiveWidthVar,
745
743
  value: "0px",
@@ -758,21 +756,18 @@ function SideNavInternal(_ref) {
758
756
  , /*#__PURE__*/React.createElement(PanelSplitterProvider, {
759
757
  panelId: sideNavPanelSplitterId,
760
758
  panelRef: navRef,
761
- portalRef: isFhsEnabled && fg('platform-dst-side-nav-layering-fixes') ? panelSplitterPortalTargetRef : undefined,
759
+ portalRef: isFhsEnabled ? panelSplitterPortalTargetRef : undefined,
762
760
  panelWidth: width,
763
761
  onCompleteResize: setWidth,
764
762
  getResizeBounds: getResizeBounds,
765
763
  resizingCssVar: panelSplitterResizingVar
766
764
  // Not resizable when in peek (flyout) mode.
767
765
  ,
768
- isEnabled: fg('platform-dst-side-nav-layering-fixes') ? !isFlyoutVisible :
769
- // Old behaviour has a bug: the panel splitter would only be visible on sm screens (between 48rem and 64rem)
770
- // if the side nav was expanded on desktop.
771
- isExpandedOnDesktop && !isFlyoutVisible,
766
+ isEnabled: !isFlyoutVisible,
772
767
  shortcut: isShortcutEnabled ? sideNavToggleTooltipKeyboardShortcut : undefined
773
768
  }, /*#__PURE__*/React.createElement("div", {
774
769
  className: ax([styles.flexContainer])
775
- }, children))), isFhsEnabled && fg('platform-dst-side-nav-layering-fixes') && /*#__PURE__*/React.createElement("div", {
770
+ }, children))), isFhsEnabled && /*#__PURE__*/React.createElement("div", {
776
771
  ref: panelSplitterPortalTargetRef,
777
772
  "data-layout-slot": true,
778
773
  style: _defineProperty({}, sideNavClampedWidthVar, clampedWidth),
@@ -6,7 +6,6 @@
6
6
  ._1e0cglyw{display:none}
7
7
  ._1ul9zwfg{min-width:2pc}
8
8
  ._4cvr1h6o{align-items:center}
9
- ._lcxv1wug{pointer-events:auto}
10
9
  ._y4tiutpp{padding-inline-end:var(--ds-space-150,9pt)}
11
10
  @media (min-width:48rem){._181n1txw{display:flex}._1d2y1ris{min-width:max-content}}
12
11
  @media (min-width:64rem){._glte1ris{width:max-content}._15rip2n4{min-width:330px}._1gs5usvi{box-sizing:border-box}._ndwch9n0{justify-self:end}}
@@ -8,7 +8,6 @@ import { cx } from '@compiled/react';
8
8
  import { useLayoutEffect } from '@atlaskit/ds-lib/use-layout-effect';
9
9
  import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
10
10
  import { OpenLayerObserverNamespaceProvider } from '@atlaskit/layering/experimental/open-layer-observer';
11
- import { fg } from '@atlaskit/platform-feature-flags';
12
11
  import Popup from '@atlaskit/popup';
13
12
  import { UNSAFE_useMediaQuery as useMediaQuery } from '@atlaskit/primitives/compiled';
14
13
  import { List } from '../../../components/list';
@@ -18,20 +17,13 @@ import { IconButton } from '../../top-nav-items/themed/migration';
18
17
  import { openLayerObserverTopNavEndNamespace } from '../constants';
19
18
  var containerStyles = {
20
19
  root: "_yyhy11wp _1e0c1txw _1bahh9n0 _1ul9zwfg _1d2y1ris _glte1ris _15rip2n4 _1gs5usvi _ndwch9n0",
21
- fullHeightSidebar: "_y4tiutpp _lcxv1wug",
22
- fullHeightSidebarWithLayeringFixes: "_y4tiutpp"
20
+ fullHeightSidebar: "_y4tiutpp"
23
21
  };
24
22
  var listStyles = {
25
23
  root: "_zulp1b66 _4cvr1h6o _1e0c1txw",
26
24
  hideOnSmallViewport: "_1e0cglyw _181n1txw",
27
25
  popupContainer: "_1yt4u2gc"
28
26
  };
29
- function OpenLayerObserverNamespaceProviderBehindFG(_ref) {
30
- var children = _ref.children;
31
- return fg('platform-dst-side-nav-layering-fixes') ? /*#__PURE__*/React.createElement(OpenLayerObserverNamespaceProvider, {
32
- namespace: openLayerObserverTopNavEndNamespace
33
- }, children) : children;
34
- }
35
27
 
36
28
  /**
37
29
  * __TopNavEnd__
@@ -41,12 +33,12 @@ function OpenLayerObserverNamespaceProviderBehindFG(_ref) {
41
33
  * On small viewports, the children will be placed inside a popup, and a button will be rendered to open the popup.
42
34
  * This is to prevent the actions from overflowing the top navigation.
43
35
  */
44
- export function TopNavEnd(_ref2) {
45
- var children = _ref2.children,
46
- _ref2$label = _ref2.label,
47
- label = _ref2$label === void 0 ? 'Actions' : _ref2$label,
48
- _ref2$showMoreButtonL = _ref2.showMoreButtonLabel,
49
- showMoreButtonLabel = _ref2$showMoreButtonL === void 0 ? 'Show more' : _ref2$showMoreButtonL;
36
+ export function TopNavEnd(_ref) {
37
+ var children = _ref.children,
38
+ _ref$label = _ref.label,
39
+ label = _ref$label === void 0 ? 'Actions' : _ref$label,
40
+ _ref$showMoreButtonLa = _ref.showMoreButtonLabel,
41
+ showMoreButtonLabel = _ref$showMoreButtonLa === void 0 ? 'Show more' : _ref$showMoreButtonLa;
50
42
  var isFhsEnabled = useIsFhsEnabled();
51
43
  var _useState = useState(false),
52
44
  _useState2 = _slicedToArray(_useState, 2),
@@ -72,7 +64,7 @@ export function TopNavEnd(_ref2) {
72
64
  }, [query]);
73
65
  return /*#__PURE__*/React.createElement("nav", {
74
66
  "aria-label": label,
75
- className: ax([containerStyles.root, isFhsEnabled && !fg('platform-dst-side-nav-layering-fixes') && containerStyles.fullHeightSidebar, isFhsEnabled && fg('platform-dst-side-nav-layering-fixes') && containerStyles.fullHeightSidebarWithLayeringFixes])
67
+ className: ax([containerStyles.root, isFhsEnabled && containerStyles.fullHeightSidebar])
76
68
  }, isMobile ? /*#__PURE__*/React.createElement(Popup, {
77
69
  isOpen: isOpen,
78
70
  onClose: function onClose() {
@@ -85,7 +77,9 @@ export function TopNavEnd(_ref2) {
85
77
  value: false
86
78
  }, /*#__PURE__*/React.createElement(List, {
87
79
  xcss: cx(listStyles.root, listStyles.popupContainer)
88
- }, /*#__PURE__*/React.createElement(OpenLayerObserverNamespaceProviderBehindFG, null, children)));
80
+ }, /*#__PURE__*/React.createElement(OpenLayerObserverNamespaceProvider, {
81
+ namespace: openLayerObserverTopNavEndNamespace
82
+ }, children)));
89
83
  },
90
84
  trigger: function trigger(triggerProps) {
91
85
  return /*#__PURE__*/React.createElement(IconButton, _extends({}, triggerProps, {
@@ -100,5 +94,7 @@ export function TopNavEnd(_ref2) {
100
94
  }
101
95
  }) : /*#__PURE__*/React.createElement(List, {
102
96
  xcss: cx(listStyles.root, listStyles.hideOnSmallViewport)
103
- }, /*#__PURE__*/React.createElement(OpenLayerObserverNamespaceProviderBehindFG, null, children)));
97
+ }, /*#__PURE__*/React.createElement(OpenLayerObserverNamespaceProvider, {
98
+ namespace: openLayerObserverTopNavEndNamespace
99
+ }, children)));
104
100
  }
@@ -4,5 +4,4 @@
4
4
  ._1bsb1osq{width:100%}
5
5
  ._1e0c1txw{display:flex}
6
6
  ._4cvr1h6o{align-items:center}
7
- ._lcxv1wug{pointer-events:auto}
8
7
  @media (min-width:48rem){._181n11p5{display:grid}._1j8b15b0{grid-template-columns:minmax(min-content,780px)}._lagd1bp4{grid-auto-flow:column}._1t4c1ris{grid-auto-columns:max-content}._12e8h9n0{justify-items:end}}
@@ -3,12 +3,9 @@ import "./top-nav-middle.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
5
5
  import { OpenLayerObserverNamespaceProvider } from '@atlaskit/layering/experimental/open-layer-observer';
6
- import { fg } from '@atlaskit/platform-feature-flags';
7
- import { useIsFhsEnabled } from '../../fhs-rollout/use-is-fhs-enabled';
8
6
  import { openLayerObserverTopNavMiddleNamespace } from '../constants';
9
7
  var styles = {
10
- root: "_zulpu2gc _yyhycs5v _1bsb1osq _4cvr1h6o _1e0c1txw _1bahh9n0 _181n11p5 _1j8b15b0 _lagd1bp4 _1t4c1ris _12e8h9n0",
11
- fullHeightSidebar: "_lcxv1wug"
8
+ root: "_zulpu2gc _yyhycs5v _1bsb1osq _4cvr1h6o _1e0c1txw _1bahh9n0 _181n11p5 _1j8b15b0 _lagd1bp4 _1t4c1ris _12e8h9n0"
12
9
  };
13
10
 
14
11
  /**
@@ -21,10 +18,9 @@ var styles = {
21
18
  */
22
19
  export function TopNavMiddle(_ref) {
23
20
  var children = _ref.children;
24
- var isFhsEnabled = useIsFhsEnabled();
25
21
  return /*#__PURE__*/React.createElement("div", {
26
- className: ax([styles.root, isFhsEnabled && !fg('platform-dst-side-nav-layering-fixes') && styles.fullHeightSidebar])
27
- }, fg('platform-dst-side-nav-layering-fixes') ? /*#__PURE__*/React.createElement(OpenLayerObserverNamespaceProvider, {
22
+ className: ax([styles.root])
23
+ }, /*#__PURE__*/React.createElement(OpenLayerObserverNamespaceProvider, {
28
24
  namespace: openLayerObserverTopNavMiddleNamespace
29
- }, children) : children);
25
+ }, children));
30
26
  }
@@ -9,10 +9,9 @@
9
9
  ._4t3i1osq{height:100%}
10
10
  ._ahbq1wug{margin-inline-start:auto}
11
11
  ._bozgutpp{padding-inline-start:var(--ds-space-150,9pt)}
12
- ._lcxv1wug{pointer-events:auto}
13
12
  ._vchhusvi{box-sizing:border-box}
14
13
  [dir=rtl] ._65m41mrw{--animation-direction:-1}
15
14
  @media (prefers-reduced-motion:no-preference){._10t81e03{transition-property:transform}._10t81rjc{transition-property:transform,opacity}._1xq51ytf{transition-timing-function:ease-in-out}._1xq55ucs{transition-timing-function:ease}._mjvc1efy{transform:translateX(calc(100%*var(--animation-direction)))}._bgpzidpf{opacity:0}._mjvc1p9u{transform:translateX(calc(-100%*var(--animation-direction)))}._mjvco0k7{transform:translateX(calc((-2rem + var(--ds-space-050, 4px)*-1)*var(--animation-direction)))}._mjvcyrjp{transform:translateX(calc((2rem + var(--ds-space-050, 4px))*var(--animation-direction)))}._mjvcz12g{transform:translateX(0)}._xrrpfnf5{transition-duration:.2s}._bgpzkb7n{opacity:1}}
16
- @media (min-width:64rem){._13wnh2mm{position:relative}._1l3vb3bt:after{content:""}._juxdstnw:after{position:absolute}._1vinidpf:after{inset-block-start:0}._1719idpf:after{inset-block-end:0}._e6znidpf:after{inset-inline-end:0}._1kyhe4h9:after{border-inline-end-width:var(--ds-border-width,1px)}._4cwynqa1:after{border-inline-end-style:solid}._435s1l7x:after{border-inline-end-color:var(--ds-border,#0b120e24)}._m7c3idpf:after{opacity:0}._15rin7od{min-width:unset}._glte1osq{width:100%}._4ap3vuon{background-color:var(--ds-surface,#fff)}._m7c3kb7n:after{opacity:1}._exxmutpp{padding-inline-end:var(--ds-space-150,9pt)}._glte1ris{width:max-content}._15rip2n4{min-width:330px}._1gs5usvi{box-sizing:border-box}._glte93mn{width:var(--n_sNvlw,100%)}._exxmpxbi{padding-inline-end:var(--ds-space-200,1pc)}}
15
+ @media (min-width:64rem){._13wnh2mm{position:relative}._1l3vb3bt:after{content:""}._juxdstnw:after{position:absolute}._1vinidpf:after{inset-block-start:0}._1719idpf:after{inset-block-end:0}._e6znidpf:after{inset-inline-end:0}._1kyhe4h9:after{border-inline-end-width:var(--ds-border-width,1px)}._4cwynqa1:after{border-inline-end-style:solid}._435s1l7x:after{border-inline-end-color:var(--ds-border,#0b120e24)}._m7c3idpf:after{opacity:0}._15rin7od{min-width:unset}._glte1osq{width:100%}._exxmutpp{padding-inline-end:var(--ds-space-150,9pt)}._glte1ris{width:max-content}._15rip2n4{min-width:330px}._1gs5usvi{box-sizing:border-box}._glte93mn{width:var(--n_sNvlw,100%)}._exxmpxbi{padding-inline-end:var(--ds-space-200,1pc)}._4ap3vuon{background-color:var(--ds-surface,#fff)}._m7c3kb7n:after{opacity:1}}
17
16
  @media (prefers-reduced-motion:no-preference) and (min-width:64rem){._n8qabrmi:after{transition-property:opacity}._wc72fnf5:after{transition-duration:.2s}._j3mr1v42:after{transition-timing-function:ease-in}}
18
17
  @supports (scroll-timeline-axis:block){@keyframes khj1qz3{0%{box-shadow:inset 0 -1px 0 0 transparent}0.1%{box-shadow:inset 0 -1px 0 0 var(--ds-border,#0b120e24)}to{box-shadow:inset 0 -1px 0 0 var(--ds-border,#0b120e24)}}html:not(:has([data-private-side-nav-header])) ._5gdsgc9s{animation-timeline:--sNcst}html:not(:has([data-private-side-nav-header])) ._53fr1ybg{animation-name:khj1qz3}html:not(:has([data-private-side-nav-header])) ._bt1c1hrf{animation-fill-mode:both}}
@@ -33,7 +33,6 @@ var flexGap = "var(--ds-space-050, 4px)";
33
33
  */
34
34
  var innerStyles = {
35
35
  root: "_zulp1b66 _yyhykb7n _4t3i1osq _4cvr1h6o _1e0c1txw _glte1ris _15rip2n4 _1gs5usvi",
36
- fullHeightSidebar: "_lcxv1wug",
37
36
  fullHeightSidebarExpanded: "_15rin7od _glte1osq"
38
37
  };
39
38
 
@@ -50,11 +49,9 @@ var scrolledShadow = null;
50
49
  * This wrapper element is only rendered when `useIsFhsEnabled` is true.
51
50
  */
52
51
  var wrapperStyles = {
53
- root: "_vchhusvi _bozgutpp _4t3i1osq",
54
- fullHeightSidebarExpanded: "_glte93mn _exxmpxbi",
55
- fullHeightSidebarWithLayeringFixes: "_13wnh2mm _1l3vb3bt _juxdstnw _1vinidpf _1719idpf _e6znidpf _1kyhe4h9 _4cwynqa1 _435s1l7x _m7c3idpf",
56
- fullHeightSidebarExpandedWithLayeringFixes: "_4ap3vuon _m7c3kb7n",
57
- fullHeightSidebarExpandedWithLayeringFixesScrollTimeline: "_5gdsgc9s _53fr1ybg _bt1c1hrf",
52
+ root: "_vchhusvi _bozgutpp _4t3i1osq _13wnh2mm _1l3vb3bt _juxdstnw _1vinidpf _1719idpf _e6znidpf _1kyhe4h9 _4cwynqa1 _435s1l7x _m7c3idpf",
53
+ fullHeightSidebarExpanded: "_glte93mn _exxmpxbi _4ap3vuon _m7c3kb7n",
54
+ fullHeightSidebarExpandedScrollTimeline: "_5gdsgc9s _53fr1ybg _bt1c1hrf",
58
55
  fullHeightSidebarBorderTransition: "_n8qabrmi _wc72fnf5 _j3mr1v42",
59
56
  fullHeightSidebarExpandedWithFeedback: "_exxmutpp"
60
57
  };
@@ -127,10 +124,6 @@ var TopNavStartInnerFHS = /*#__PURE__*/forwardRef(function TopNavStartInnerFHS(_
127
124
  var sideNavState = useContext(SideNavVisibilityState);
128
125
  var isFirstRenderRef = useRef(true);
129
126
  useEffect(function () {
130
- if (!fg('platform-dst-side-nav-layering-fixes')) {
131
- return;
132
- }
133
-
134
127
  // Ignore renders until the side nav state is initialized
135
128
  // So that apps using the legacy API for setting side nav default state do not see
136
129
  // animations when they shouldn't
@@ -142,14 +135,14 @@ var TopNavStartInnerFHS = /*#__PURE__*/forwardRef(function TopNavStartInnerFHS(_
142
135
  }
143
136
  }, [sideNavState]);
144
137
  return /*#__PURE__*/React.createElement("div", {
145
- className: ax([wrapperStyles.root, isExpandedOnDesktop && wrapperStyles.fullHeightSidebarExpanded, isExpandedOnDesktop && fg('platform_dst_nav4_fhs_feedback_1') && wrapperStyles.fullHeightSidebarExpandedWithFeedback, fg('platform-dst-side-nav-layering-fixes') && wrapperStyles.fullHeightSidebarWithLayeringFixes, !isFirstRenderRef.current && isExpandedOnDesktop && fg('platform-dst-side-nav-layering-fixes') && wrapperStyles.fullHeightSidebarBorderTransition, isExpandedOnDesktop && fg('platform-dst-side-nav-layering-fixes') && wrapperStyles.fullHeightSidebarExpandedWithLayeringFixes, isExpandedOnDesktop && fg('platform-dst-side-nav-layering-fixes') && !fg('platform_dst_nav4_fhs_feedback_1') && wrapperStyles.fullHeightSidebarExpandedWithLayeringFixesScrollTimeline])
138
+ className: ax([wrapperStyles.root, isExpandedOnDesktop && wrapperStyles.fullHeightSidebarExpanded, isExpandedOnDesktop && fg('platform_dst_nav4_fhs_feedback_1') && wrapperStyles.fullHeightSidebarExpandedWithFeedback, !isFirstRenderRef.current && isExpandedOnDesktop && wrapperStyles.fullHeightSidebarBorderTransition, isExpandedOnDesktop && !fg('platform_dst_nav4_fhs_feedback_1') && wrapperStyles.fullHeightSidebarExpandedScrollTimeline])
146
139
  }, /*#__PURE__*/React.createElement("div", {
147
140
  ref: ref,
148
141
  "data-testid": testId,
149
- className: ax([innerStyles.root, !fg('platform-dst-side-nav-layering-fixes') && innerStyles.fullHeightSidebar, isExpandedOnDesktop && innerStyles.fullHeightSidebarExpanded])
150
- }, fg('platform-dst-side-nav-layering-fixes') ? /*#__PURE__*/React.createElement(OpenLayerObserverNamespaceProvider, {
142
+ className: ax([innerStyles.root, isExpandedOnDesktop && innerStyles.fullHeightSidebarExpanded])
143
+ }, /*#__PURE__*/React.createElement(OpenLayerObserverNamespaceProvider, {
151
144
  namespace: openLayerObserverTopNavStartNamespace
152
- }, children) : children));
145
+ }, children)));
153
146
  });
154
147
 
155
148
  /**
@@ -161,6 +154,9 @@ export function TopNavStart(_ref3) {
161
154
  var children = _ref3.children,
162
155
  testId = _ref3.testId,
163
156
  sideNavToggleButton = _ref3.sideNavToggleButton;
157
+ if (fg('platform_editor_topnavstart_delay_browser_check')) {
158
+ isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
159
+ }
164
160
  var isFhsEnabled = useIsFhsEnabled();
165
161
  var ref = useContext(TopNavStartAttachRef);
166
162
  var elementRef = useRef(null);
@@ -7,7 +7,6 @@
7
7
  ._179ria51{border-block-end:var(--ds-border-width,1px) solid var(--ds-border,#0b120e24)}._152t1nws{inset-block-start:var(--n_bnrM,0)}
8
8
  ._18postnw:after{position:absolute}
9
9
  ._1beue4h9:after{border-block-end-width:var(--ds-border-width,1px)}
10
- ._1bsb1osq{width:100%}
11
10
  ._1cte1l7x:after{border-block-end-color:var(--ds-border,#0b120e24)}
12
11
  ._1czdidpf:after{inset-inline-end:0}
13
12
  ._1e0c11p5{display:grid}
@@ -16,18 +15,15 @@
16
15
  ._1pbyegat{z-index:4}
17
16
  ._4cvr1h6o{align-items:center}
18
17
  ._4t3i1dgc{height:var(--n_tNvM)}
19
- ._4t3i1osq{height:100%}
20
18
  ._aetrb3bt:after{content:""}
21
- ._bfhkglyw{background-color:none}
22
19
  ._bfhkvuon{background-color:var(--ds-surface,#fff)}
23
20
  ._d6vu1bgi >span[data-ep-placeholder-id=top_navigation_skeleton]{display:contents}
24
21
  ._g0nf3tht:after{inset-inline-start:var(--n_sNvlw,0)}
25
22
  ._kqsw1if8{position:sticky}
26
23
  ._lcxv1wug{pointer-events:auto}
27
- ._lcxvglyw{pointer-events:none}
28
24
  ._uaeunqa1:after{border-block-end-style:solid}
29
25
  ._vchhusvi{box-sizing:border-box}
30
26
  ._yv0e1mfv{grid-template-columns:auto 1fr auto}
31
27
  @media (min-width:48rem){._1j8b18ax{grid-template-columns:1fr minmax(min-content,max-content) 1fr}}
32
- @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)}}
28
+ @media (min-width:64rem){._1rqt16a9{grid-template-columns:0fr minmax(min-content,max-content) 1fr}._pdlmutpp{gap:var(--ds-space-150,9pt)}}
33
29
  @media (min-width:110.5rem){._jh1g18ax{grid-template-columns:1fr minmax(min-content,max-content) 1fr}}
@@ -1,10 +1,8 @@
1
1
  /* top-nav.tsx generated by @compiled/babel-plugin v0.39.1 */
2
- import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["backgroundColor"];
4
2
  import "./top-nav.compiled.css";
5
3
  import * as React from 'react';
6
4
  import { ax, ix } from "@compiled/react/runtime";
7
- import { useContext, useMemo } from 'react';
5
+ import { useContext } from 'react';
8
6
  import { fg } from '@atlaskit/platform-feature-flags';
9
7
  import { useSkipLink } from '../../../context/skip-links/skip-links-context';
10
8
  import { useIsFhsEnabled } from '../../fhs-rollout/use-is-fhs-enabled';
@@ -25,19 +23,8 @@ import { useSideNavVisibility } from '../side-nav/use-side-nav-visibility';
25
23
  */
26
24
  var styles = {
27
25
  root: "_nd5l8cbt _zulpu2gc _18zrutpp _179ria51 _1e0c11p5 _yv0e1mfv _4cvr1h6o _bfhkvuon _vchhusvi _4t3i1dgc _152t1nws _kqsw1if8 _1pbyegat _d6vu1bgi _1j8b18ax",
28
- fullHeightSidebar: "_18zrze3t _179rglyw _bfhkglyw _lcxvglyw _pdlmutpp",
29
- fullHeightSidebarExpanded: "_1rqt16a9 _jh1g18ax",
30
- fullHeightSidebarWithLayeringFixes: "_1pby11wp _lcxv1wug _bfhkvuon _aetrb3bt _18postnw _1gufidpf _1czdidpf _g0nf3tht _1beue4h9 _uaeunqa1 _1cte1l7x"
31
- };
32
-
33
- /**
34
- * Styles for the visible 'bar' of the top nav, including background and border.
35
- *
36
- * This is on a lower z-index than the expanded side nav, and is separate to the top nav items which are above the expanded side nav.
37
- */
38
- var backgroundStyles = {
39
- root: "_nd5l8cbt _179ria51 _1bsb1osq _4t3i1osq _bfhkvuon _vchhusvi _152t1nws _kqsw1if8 _lcxvglyw _1pbyegat",
40
- sideNavExpanded: "_hyzqcs5v"
26
+ fullHeightSidebar: "_18zrze3t _179rglyw _lcxv1wug _bfhkvuon _1pby11wp _aetrb3bt _18postnw _1gufidpf _1czdidpf _g0nf3tht _1beue4h9 _uaeunqa1 _1cte1l7x _pdlmutpp",
27
+ fullHeightSidebarExpanded: "_1rqt16a9 _jh1g18ax"
41
28
  };
42
29
 
43
30
  /**
@@ -61,56 +48,18 @@ export function TopNav(_ref) {
61
48
  var hasIncreasedDefaultHeight = isFhsEnabled && fg('platform_dst_nav4_top_nav_increase_height');
62
49
  var height = heightProp !== null && heightProp !== void 0 ? heightProp : hasIncreasedDefaultHeight ? 56 : 48;
63
50
  var customTheme = useCustomTheme(UNSAFE_theme);
64
-
65
- /**
66
- * Note: this is no longer the case when fg('platform-dst-side-nav-layering-fixes') is enabled.
67
- *
68
- * With the full height sidebar we have a foreground and background element,
69
- * so we need to apply the custom theme styles to the correct element.
70
- *
71
- * The foreground element should not have a background color,
72
- * and the background element doesn't need any of the other styles.
73
- */
74
- var _useMemo = useMemo(function () {
75
- if (!customTheme.isEnabled) {
76
- return {
77
- backgroundStyle: undefined,
78
- foregroundStyle: undefined
79
- };
80
- }
81
- var _customTheme$style = customTheme.style,
82
- backgroundColor = _customTheme$style.backgroundColor,
83
- foregroundStyle = _objectWithoutProperties(_customTheme$style, _excluded);
84
- return {
85
- backgroundStyle: {
86
- backgroundColor: backgroundColor
87
- },
88
- foregroundStyle: foregroundStyle
89
- };
90
- }, [customTheme]),
91
- backgroundStyle = _useMemo.backgroundStyle,
92
- foregroundStyle = _useMemo.foregroundStyle;
93
51
  var _useSideNavVisibility = useSideNavVisibility(),
94
52
  isExpandedOnDesktop = _useSideNavVisibility.isExpandedOnDesktop;
95
53
  return /*#__PURE__*/React.createElement(HasCustomThemeContext.Provider, {
96
54
  value: customTheme.isEnabled
97
- }, isFhsEnabled && !fg('platform-dst-side-nav-layering-fixes') && /*#__PURE__*/React.createElement("div", {
98
- "data-layout-slot": true,
99
- "aria-hidden": true
100
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
101
- ,
102
- style: isFhsEnabled ? backgroundStyle : undefined,
103
- className: ax([backgroundStyles.root, isExpandedOnDesktop && backgroundStyles.sideNavExpanded])
104
- }), /*#__PURE__*/React.createElement("header", {
55
+ }, /*#__PURE__*/React.createElement("header", {
105
56
  id: id,
106
57
  "data-layout-slot": true,
107
- className: ax([styles.root, isFhsEnabled && styles.fullHeightSidebar, isFhsEnabled && fg('platform-dst-side-nav-layering-fixes') && styles.fullHeightSidebarWithLayeringFixes, isExpandedOnDesktop && isFhsEnabled && styles.fullHeightSidebarExpanded, xcss]),
58
+ className: ax([styles.root, isFhsEnabled && styles.fullHeightSidebar, isExpandedOnDesktop && isFhsEnabled && styles.fullHeightSidebarExpanded, xcss]),
108
59
  "data-testid": testId
109
60
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
110
61
  ,
111
- style:
112
- // When the layering fixes are enabled, we no longer have separate elements for the foreground and background.
113
- isFhsEnabled && !fg('platform-dst-side-nav-layering-fixes') ? foregroundStyle : customTheme.isEnabled ? customTheme.style : undefined
62
+ style: customTheme.isEnabled ? customTheme.style : undefined
114
63
  }, /*#__PURE__*/React.createElement(HoistCssVarToLocalGrid, {
115
64
  variableName: topNavMountedVar,
116
65
  value: height
@@ -26,9 +26,9 @@ export declare const UNSAFE_sideNavLayoutVar = "--leftSidebarWidth";
26
26
  export declare const UNSAFE_ribbonVar = "--leftPanelWidth";
27
27
  export declare const UNSAFE_asideLayoutVar = "--rightSidebarWidth";
28
28
  export declare const UNSAFE_panelLayoutVar = "--rightPanelWidth";
29
- export declare const UNSAFE_MAIN_BLOCK_START_FOR_LEGACY_PAGES_ONLY = "calc(var(--bannerHeight, 0px) + var(--topNavigationHeight, 0px))";
30
- export declare const UNSAFE_MAIN_INLINE_START_FOR_LEGACY_PAGES_ONLY = "calc(var(--leftPanelWidth, 0px) + var(--leftSidebarWidth, 0px))";
31
- export declare const UNSAFE_MAIN_INLINE_END_FOR_LEGACY_PAGES_ONLY = "calc(var(--rightSidebarWidth, 0px) + var(--rightPanelWidth, 0px))";
29
+ export declare const UNSAFE_MAIN_BLOCK_START_FOR_LEGACY_PAGES_ONLY: 'calc(var(--bannerHeight, 0px) + var(--topNavigationHeight, 0px))';
30
+ export declare const UNSAFE_MAIN_INLINE_START_FOR_LEGACY_PAGES_ONLY: 'calc(var(--leftPanelWidth, 0px) + var(--leftSidebarWidth, 0px))';
31
+ export declare const UNSAFE_MAIN_INLINE_END_FOR_LEGACY_PAGES_ONLY: 'calc(var(--rightSidebarWidth, 0px) + var(--rightPanelWidth, 0px))';
32
32
  /**
33
33
  * We define the z-indexes here so each page slot can be locally layered against each other.
34
34
  * For globally defined values such as flag, modal, etc, we can continue to
@@ -25,8 +25,6 @@ export type PanelSplitterContextType = {
25
25
  getResizeBounds: () => ResizeBounds;
26
26
  /**
27
27
  * A ref to the portal element where the panel splitter will be rendered.
28
- * It can optionally be provided by consumers of <PanelSplitterProvider> (when the feature gate
29
- * `platform-dst-side-nav-layering-fixes` is enabled).
30
28
  * If not provided, it will be internally set by the PanelSplitterProvider.
31
29
  *
32
30
  * This prop is useful for:
@@ -12,8 +12,6 @@ export type PanelSplitterProviderProps = Omit<PanelSplitterContextType, 'portalR
12
12
  position?: 'start' | 'end';
13
13
  /**
14
14
  * A ref to the portal element where the panel splitter will be rendered.
15
- * It can optionally be provided by consumers of <PanelSplitterProvider> (when the feature gate
16
- * `platform-dst-side-nav-layering-fixes` is enabled).
17
15
  * If not provided, it will be internally set by the PanelSplitterProvider.
18
16
  *
19
17
  * This prop is useful for:
@@ -7,5 +7,5 @@ type RibbonProps = CommonSlotProps & {
7
7
  width: string | number;
8
8
  children: React.ReactNode;
9
9
  };
10
- export declare function UNSAFE_Ribbon({ children, testId, id: providedId, width }: RibbonProps): JSX.Element | null;
10
+ export declare function UNSAFE_Ribbon({ children, testId, id: providedId, width, }: RibbonProps): JSX.Element | null;
11
11
  export {};
@@ -19,8 +19,8 @@ declare const legacySearchTheme: {
19
19
  * When expanded the input ignores the custom theme,
20
20
  * except for its border which is derived from the highlight color.
21
21
  */
22
- color: "var(--ds-text)";
23
- backgroundColor: "var(--ds-background-input-pressed)";
22
+ color: 'var(--ds-text)';
23
+ backgroundColor: 'var(--ds-background-input-pressed)';
24
24
  borderColor: string;
25
25
  boxShadow: string;
26
26
  };
@@ -26,9 +26,9 @@ export declare const UNSAFE_sideNavLayoutVar = "--leftSidebarWidth";
26
26
  export declare const UNSAFE_ribbonVar = "--leftPanelWidth";
27
27
  export declare const UNSAFE_asideLayoutVar = "--rightSidebarWidth";
28
28
  export declare const UNSAFE_panelLayoutVar = "--rightPanelWidth";
29
- export declare const UNSAFE_MAIN_BLOCK_START_FOR_LEGACY_PAGES_ONLY = "calc(var(--bannerHeight, 0px) + var(--topNavigationHeight, 0px))";
30
- export declare const UNSAFE_MAIN_INLINE_START_FOR_LEGACY_PAGES_ONLY = "calc(var(--leftPanelWidth, 0px) + var(--leftSidebarWidth, 0px))";
31
- export declare const UNSAFE_MAIN_INLINE_END_FOR_LEGACY_PAGES_ONLY = "calc(var(--rightSidebarWidth, 0px) + var(--rightPanelWidth, 0px))";
29
+ export declare const UNSAFE_MAIN_BLOCK_START_FOR_LEGACY_PAGES_ONLY: 'calc(var(--bannerHeight, 0px) + var(--topNavigationHeight, 0px))';
30
+ export declare const UNSAFE_MAIN_INLINE_START_FOR_LEGACY_PAGES_ONLY: 'calc(var(--leftPanelWidth, 0px) + var(--leftSidebarWidth, 0px))';
31
+ export declare const UNSAFE_MAIN_INLINE_END_FOR_LEGACY_PAGES_ONLY: 'calc(var(--rightSidebarWidth, 0px) + var(--rightPanelWidth, 0px))';
32
32
  /**
33
33
  * We define the z-indexes here so each page slot can be locally layered against each other.
34
34
  * For globally defined values such as flag, modal, etc, we can continue to
@@ -25,8 +25,6 @@ export type PanelSplitterContextType = {
25
25
  getResizeBounds: () => ResizeBounds;
26
26
  /**
27
27
  * A ref to the portal element where the panel splitter will be rendered.
28
- * It can optionally be provided by consumers of <PanelSplitterProvider> (when the feature gate
29
- * `platform-dst-side-nav-layering-fixes` is enabled).
30
28
  * If not provided, it will be internally set by the PanelSplitterProvider.
31
29
  *
32
30
  * This prop is useful for: