@atlaskit/navigation-system 10.16.10 → 10.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/cjs/components/badge-container.js +1 -1
  3. package/dist/cjs/components/list-item.js +1 -1
  4. package/dist/cjs/components/list.js +1 -1
  5. package/dist/cjs/components/skip-links/skip-link.js +1 -1
  6. package/dist/cjs/components/skip-links/skip-links-container.js +1 -1
  7. package/dist/cjs/components/skip-links/skip-links-popup.js +1 -1
  8. package/dist/cjs/ui/page-layout/aside.js +1 -1
  9. package/dist/cjs/ui/page-layout/banner.js +1 -1
  10. package/dist/cjs/ui/page-layout/main/main-sticky-header.js +1 -1
  11. package/dist/cjs/ui/page-layout/main/main.js +1 -1
  12. package/dist/cjs/ui/page-layout/panel-splitter/panel-splitter.js +1 -1
  13. package/dist/cjs/ui/page-layout/panel.compiled.css +1 -1
  14. package/dist/cjs/ui/page-layout/panel.js +40 -23
  15. package/dist/cjs/ui/page-layout/ribbon.js +1 -1
  16. package/dist/cjs/ui/page-layout/root.js +1 -1
  17. package/dist/cjs/ui/page-layout/side-nav/side-nav-content.js +1 -1
  18. package/dist/cjs/ui/page-layout/side-nav/side-nav-footer.js +1 -1
  19. package/dist/cjs/ui/page-layout/side-nav/side-nav-header.js +1 -1
  20. package/dist/cjs/ui/page-layout/side-nav/side-nav.js +1 -1
  21. package/dist/cjs/ui/page-layout/side-nav/toggle-button.js +1 -1
  22. package/dist/cjs/ui/page-layout/top-nav/top-nav-end.js +1 -1
  23. package/dist/cjs/ui/page-layout/top-nav/top-nav-middle.js +1 -1
  24. package/dist/cjs/ui/page-layout/top-nav/top-nav-start.js +1 -1
  25. package/dist/cjs/ui/page-layout/top-nav/top-nav.js +1 -1
  26. package/dist/cjs/ui/top-nav-items/custom-title.js +1 -1
  27. package/dist/cjs/ui/top-nav-items/nav-logo/app-logo.js +1 -1
  28. package/dist/cjs/ui/top-nav-items/nav-logo/custom-logo.js +1 -1
  29. package/dist/cjs/ui/top-nav-items/nav-logo/logo-renderer.js +1 -1
  30. package/dist/cjs/ui/top-nav-items/search.js +1 -1
  31. package/dist/cjs/ui/top-nav-items/themed/themed-anchor.js +1 -1
  32. package/dist/cjs/ui/top-nav-items/themed/themed-button.js +1 -1
  33. package/dist/cjs/ui/top-nav-items/themed/themed-icon-button.js +1 -1
  34. package/dist/cjs/ui/top-nav-items/themed/themed-link-button.js +1 -1
  35. package/dist/cjs/ui/top-nav-items/themed/themed-pressable.js +1 -1
  36. package/dist/es2019/components/badge-container.js +1 -1
  37. package/dist/es2019/components/list-item.js +1 -1
  38. package/dist/es2019/components/list.js +1 -1
  39. package/dist/es2019/components/skip-links/skip-link.js +1 -1
  40. package/dist/es2019/components/skip-links/skip-links-container.js +1 -1
  41. package/dist/es2019/components/skip-links/skip-links-popup.js +1 -1
  42. package/dist/es2019/ui/page-layout/aside.js +1 -1
  43. package/dist/es2019/ui/page-layout/banner.js +1 -1
  44. package/dist/es2019/ui/page-layout/main/main-sticky-header.js +1 -1
  45. package/dist/es2019/ui/page-layout/main/main.js +1 -1
  46. package/dist/es2019/ui/page-layout/panel-splitter/panel-splitter.js +1 -1
  47. package/dist/es2019/ui/page-layout/panel.compiled.css +1 -1
  48. package/dist/es2019/ui/page-layout/panel.js +24 -5
  49. package/dist/es2019/ui/page-layout/ribbon.js +1 -1
  50. package/dist/es2019/ui/page-layout/root.js +1 -1
  51. package/dist/es2019/ui/page-layout/side-nav/side-nav-content.js +1 -1
  52. package/dist/es2019/ui/page-layout/side-nav/side-nav-footer.js +1 -1
  53. package/dist/es2019/ui/page-layout/side-nav/side-nav-header.js +1 -1
  54. package/dist/es2019/ui/page-layout/side-nav/side-nav.js +1 -1
  55. package/dist/es2019/ui/page-layout/side-nav/toggle-button.js +1 -1
  56. package/dist/es2019/ui/page-layout/top-nav/top-nav-end.js +1 -1
  57. package/dist/es2019/ui/page-layout/top-nav/top-nav-middle.js +1 -1
  58. package/dist/es2019/ui/page-layout/top-nav/top-nav-start.js +1 -1
  59. package/dist/es2019/ui/page-layout/top-nav/top-nav.js +1 -1
  60. package/dist/es2019/ui/top-nav-items/custom-title.js +1 -1
  61. package/dist/es2019/ui/top-nav-items/nav-logo/app-logo.js +1 -1
  62. package/dist/es2019/ui/top-nav-items/nav-logo/custom-logo.js +1 -1
  63. package/dist/es2019/ui/top-nav-items/nav-logo/logo-renderer.js +1 -1
  64. package/dist/es2019/ui/top-nav-items/search.js +1 -1
  65. package/dist/es2019/ui/top-nav-items/themed/themed-anchor.js +1 -1
  66. package/dist/es2019/ui/top-nav-items/themed/themed-button.js +1 -1
  67. package/dist/es2019/ui/top-nav-items/themed/themed-icon-button.js +1 -1
  68. package/dist/es2019/ui/top-nav-items/themed/themed-link-button.js +1 -1
  69. package/dist/es2019/ui/top-nav-items/themed/themed-pressable.js +1 -1
  70. package/dist/esm/components/badge-container.js +1 -1
  71. package/dist/esm/components/list-item.js +1 -1
  72. package/dist/esm/components/list.js +1 -1
  73. package/dist/esm/components/skip-links/skip-link.js +1 -1
  74. package/dist/esm/components/skip-links/skip-links-container.js +1 -1
  75. package/dist/esm/components/skip-links/skip-links-popup.js +1 -1
  76. package/dist/esm/ui/page-layout/aside.js +1 -1
  77. package/dist/esm/ui/page-layout/banner.js +1 -1
  78. package/dist/esm/ui/page-layout/main/main-sticky-header.js +1 -1
  79. package/dist/esm/ui/page-layout/main/main.js +1 -1
  80. package/dist/esm/ui/page-layout/panel-splitter/panel-splitter.js +1 -1
  81. package/dist/esm/ui/page-layout/panel.compiled.css +1 -1
  82. package/dist/esm/ui/page-layout/panel.js +39 -22
  83. package/dist/esm/ui/page-layout/ribbon.js +1 -1
  84. package/dist/esm/ui/page-layout/root.js +1 -1
  85. package/dist/esm/ui/page-layout/side-nav/side-nav-content.js +1 -1
  86. package/dist/esm/ui/page-layout/side-nav/side-nav-footer.js +1 -1
  87. package/dist/esm/ui/page-layout/side-nav/side-nav-header.js +1 -1
  88. package/dist/esm/ui/page-layout/side-nav/side-nav.js +1 -1
  89. package/dist/esm/ui/page-layout/side-nav/toggle-button.js +1 -1
  90. package/dist/esm/ui/page-layout/top-nav/top-nav-end.js +1 -1
  91. package/dist/esm/ui/page-layout/top-nav/top-nav-middle.js +1 -1
  92. package/dist/esm/ui/page-layout/top-nav/top-nav-start.js +1 -1
  93. package/dist/esm/ui/page-layout/top-nav/top-nav.js +1 -1
  94. package/dist/esm/ui/top-nav-items/custom-title.js +1 -1
  95. package/dist/esm/ui/top-nav-items/nav-logo/app-logo.js +1 -1
  96. package/dist/esm/ui/top-nav-items/nav-logo/custom-logo.js +1 -1
  97. package/dist/esm/ui/top-nav-items/nav-logo/logo-renderer.js +1 -1
  98. package/dist/esm/ui/top-nav-items/search.js +1 -1
  99. package/dist/esm/ui/top-nav-items/themed/themed-anchor.js +1 -1
  100. package/dist/esm/ui/top-nav-items/themed/themed-button.js +1 -1
  101. package/dist/esm/ui/top-nav-items/themed/themed-icon-button.js +1 -1
  102. package/dist/esm/ui/top-nav-items/themed/themed-link-button.js +1 -1
  103. package/dist/esm/ui/top-nav-items/themed/themed-pressable.js +1 -1
  104. package/dist/types/ui/page-layout/panel.d.ts +12 -1
  105. package/package.json +10 -6
@@ -1,4 +1,4 @@
1
- /* custom-logo.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* custom-logo.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./custom-logo.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useEffect, useRef } from 'react';
@@ -1,4 +1,4 @@
1
- /* logo-renderer.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* logo-renderer.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import * as React from 'react';
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import { useHasCustomTheme } from '../themed/has-custom-theme-context';
@@ -1,4 +1,4 @@
1
- /* search.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* search.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./search.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { Fragment } from 'react';
@@ -1,4 +1,4 @@
1
- /* themed-anchor.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* themed-anchor.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./themed-anchor.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* themed-button.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* themed-button.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./themed-button.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* themed-icon-button.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* themed-icon-button.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { forwardRef } from 'react';
@@ -1,4 +1,4 @@
1
- /* themed-link-button.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* themed-link-button.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./themed-link-button.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* themed-pressable.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* themed-pressable.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./themed-pressable.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* badge-container.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* badge-container.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./badge-container.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* list-item.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* list-item.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import * as React from 'react';
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import { forwardRef } from 'react';
@@ -1,4 +1,4 @@
1
- /* list.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* list.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import * as React from 'react';
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import { forwardRef } from 'react';
@@ -1,4 +1,4 @@
1
- /* skip-link.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* skip-link.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./skip-link.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback } from 'react';
@@ -1,4 +1,4 @@
1
- /* skip-links-container.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* skip-links-container.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  import "./skip-links-container.compiled.css";
@@ -1,4 +1,4 @@
1
- /* skip-links-popup.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* skip-links-popup.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  import "./skip-links-popup.compiled.css";
@@ -1,4 +1,4 @@
1
- /* aside.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* aside.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  import "./aside.compiled.css";
@@ -1,4 +1,4 @@
1
- /* banner.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* banner.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./banner.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* main-sticky-header.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* main-sticky-header.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./main-sticky-header.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -1,4 +1,4 @@
1
- /* main.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* main.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./main.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* panel-splitter.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* panel-splitter.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
@@ -1,5 +1,5 @@
1
1
  ._nd5l1b6c{grid-area:main/aside/aside/aside}
2
- ._y44v11az{animation:var(--ds-panel-content-enter,.15s cubic-bezier(.4,1,.6,1) FadeIn0to100 .1s)}
2
+ ._y44v1mph{animation:var(--ds-panel-content-enter,.15s cubic-bezier(.4,1,.6,1) FadeIn0to100)}
3
3
  ._y44vf1qi{animation:var(--ds-panel-content-exit,50ms cubic-bezier(.6,0,.8,.6) FadeOut100to0)}
4
4
  ._191wglyw{border-inline-start:none}._10fph9n0{justify-self:end}
5
5
  ._152timx3{inset-block-start:calc(var(--n_bnrM, 0px) + var(--n_tNvM, 0px))}
@@ -1,4 +1,4 @@
1
- /* panel.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* panel.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  import "./panel.compiled.css";
@@ -6,6 +6,7 @@ import * as React from 'react';
6
6
  import { ax, ix } from "@compiled/react/runtime";
7
7
  import { useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';
8
8
  import mergeRefs from '@atlaskit/ds-lib/merge-refs';
9
+ import ExitingPersistence from '@atlaskit/motion/exiting-persistence';
9
10
  import { useMotion } from '@atlaskit/motion/entering/use-motion';
10
11
  import { Reanimate } from '@atlaskit/motion/reanimate';
11
12
  import { fg } from '@atlaskit/platform-feature-flags/fg';
@@ -37,8 +38,19 @@ var styles = {
37
38
  hidden: "_1e0cglyw",
38
39
  entering: "_k1af1nn1 _10t81ia4 _xrrp147i _1wsa1ign _1vrh1a5r _1kmh1n9t _105abamb",
39
40
  exiting: "_k1af14vv _bq641n9t _105aeydr",
40
- contentEntering: "_y44v11az",
41
- contentExiting: "_y44vf1qi"
41
+ contentEntering: "_y44v1mph",
42
+ contentExiting: "_y44vf1qi",
43
+ contentChangeContainer: "_4t3i1osq"
44
+ };
45
+ var PanelContentMotion = function PanelContentMotion(_ref) {
46
+ var children = _ref.children;
47
+ var _useMotion = useMotion(),
48
+ state = _useMotion.state,
49
+ ref = _useMotion.ref;
50
+ return /*#__PURE__*/React.createElement("div", {
51
+ ref: ref,
52
+ className: ax([styles.contentChangeContainer, state === 'entering' && styles.contentEntering, state === 'exiting' && styles.contentExiting])
53
+ }, children);
42
54
  };
43
55
 
44
56
  /**
@@ -48,20 +60,21 @@ var styles = {
48
60
  *
49
61
  * You can optionally render a `PanelSplitter` as a child to make the panel area resizable.
50
62
  */
51
- export function Panel(_ref) {
52
- var children = _ref.children,
53
- _ref$defaultWidth = _ref.defaultWidth,
54
- defaultWidthProp = _ref$defaultWidth === void 0 ? fallbackDefaultWidth : _ref$defaultWidth,
55
- _ref$label = _ref.label,
56
- label = _ref$label === void 0 ? 'Panel' : _ref$label,
57
- _ref$skipLinkLabel = _ref.skipLinkLabel,
58
- skipLinkLabel = _ref$skipLinkLabel === void 0 ? label : _ref$skipLinkLabel,
59
- testId = _ref.testId,
60
- providedId = _ref.id,
61
- xcss = _ref.xcss,
62
- _ref$hasBorder = _ref.hasBorder,
63
- hasBorder = _ref$hasBorder === void 0 ? true : _ref$hasBorder,
64
- maxWidth = _ref.maxWidth;
63
+ export function Panel(_ref2) {
64
+ var children = _ref2.children,
65
+ _ref2$defaultWidth = _ref2.defaultWidth,
66
+ defaultWidthProp = _ref2$defaultWidth === void 0 ? fallbackDefaultWidth : _ref2$defaultWidth,
67
+ _ref2$label = _ref2.label,
68
+ label = _ref2$label === void 0 ? 'Panel' : _ref2$label,
69
+ _ref2$skipLinkLabel = _ref2.skipLinkLabel,
70
+ skipLinkLabel = _ref2$skipLinkLabel === void 0 ? label : _ref2$skipLinkLabel,
71
+ testId = _ref2.testId,
72
+ providedId = _ref2.id,
73
+ xcss = _ref2.xcss,
74
+ _ref2$hasBorder = _ref2.hasBorder,
75
+ hasBorder = _ref2$hasBorder === void 0 ? true : _ref2$hasBorder,
76
+ maxWidth = _ref2.maxWidth,
77
+ contentKey = _ref2.contentKey;
65
78
  var dangerouslyHoistSlotSizes = useContext(DangerouslyHoistSlotSizes);
66
79
  var id = useLayoutId({
67
80
  providedId: providedId
@@ -74,7 +87,7 @@ export function Panel(_ref) {
74
87
  });
75
88
 
76
89
  // useMotion is applied only when the `platform-dst-motion-uplift-panel` gate is enabled.
77
- var _useMotion = useMotion({
90
+ var _useMotion2 = useMotion({
78
91
  onFinish: function onFinish(state) {
79
92
  if (state === 'exiting' && defaultWidthRef.current === 0) {
80
93
  // Set width to 0 as animation is complete
@@ -83,9 +96,9 @@ export function Panel(_ref) {
83
96
  },
84
97
  initialState: defaultWidth === 0 ? 'hidden' : undefined
85
98
  }),
86
- state = _useMotion.state,
87
- motionRef = _useMotion.ref,
88
- reanimate = _useMotion.reanimate;
99
+ state = _useMotion2.state,
100
+ motionRef = _useMotion2.ref,
101
+ reanimate = _useMotion2.reanimate;
89
102
 
90
103
  /**
91
104
  * Don't show the skip link if the slot has 0 width.
@@ -217,5 +230,9 @@ export function Panel(_ref) {
217
230
  position: "start"
218
231
  }, /*#__PURE__*/React.createElement("div", {
219
232
  className: ax([styles.scrollContainer, isMotionUpliftEnabled && state === 'entering' && styles.contentEntering, isMotionUpliftEnabled && state === 'exiting' && styles.contentExiting])
220
- }, children)));
233
+ }, isMotionUpliftEnabled && contentKey !== undefined ? /*#__PURE__*/React.createElement(ExitingPersistence, {
234
+ exitThenEnter: true
235
+ }, /*#__PURE__*/React.createElement(PanelContentMotion, {
236
+ key: contentKey
237
+ }, children)) : children)));
221
238
  }
@@ -1,4 +1,4 @@
1
- /* ribbon.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* ribbon.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./ribbon.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* root.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* root.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./root.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useEffect, useRef } from 'react';
@@ -1,4 +1,4 @@
1
- /* side-nav-content.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* side-nav-content.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./side-nav-content.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { forwardRef, useMemo, useRef } from 'react';
@@ -1,4 +1,4 @@
1
- /* side-nav-footer.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* side-nav-footer.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./side-nav-footer.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* side-nav-header.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* side-nav-header.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./side-nav-header.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* side-nav.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* side-nav.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
@@ -1,4 +1,4 @@
1
- /* toggle-button.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* toggle-button.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  import "./toggle-button.compiled.css";
@@ -1,4 +1,4 @@
1
- /* top-nav-end.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* top-nav-end.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  import "./top-nav-end.compiled.css";
@@ -1,4 +1,4 @@
1
- /* top-nav-middle.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* top-nav-middle.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./top-nav-middle.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -1,4 +1,4 @@
1
- /* top-nav-start.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* top-nav-start.tsx generated by @compiled/babel-plugin v3.0.2 */
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";
@@ -1,4 +1,4 @@
1
- /* top-nav.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* top-nav.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./top-nav.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* custom-title.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* custom-title.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./custom-title.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* app-logo.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* app-logo.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./app-logo.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback, useRef } from 'react';
@@ -1,4 +1,4 @@
1
- /* custom-logo.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* custom-logo.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./custom-logo.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useEffect, useRef } from 'react';
@@ -1,4 +1,4 @@
1
- /* logo-renderer.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* logo-renderer.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import * as React from 'react';
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import { useHasCustomTheme } from '../themed/has-custom-theme-context';
@@ -1,4 +1,4 @@
1
- /* search.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* search.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./search.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { Fragment } from 'react';
@@ -1,4 +1,4 @@
1
- /* themed-anchor.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* themed-anchor.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _excluded = ["appearance", "shape", "isSelected", "isDisabled"];
@@ -1,4 +1,4 @@
1
- /* themed-button.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* themed-button.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _excluded = ["iconBefore", "children"];
@@ -1,4 +1,4 @@
1
- /* themed-icon-button.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* themed-icon-button.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _excluded = ["icon", "label", "tooltip"];
@@ -1,4 +1,4 @@
1
- /* themed-link-button.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* themed-link-button.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _excluded = ["iconBefore", "children"];
@@ -1,4 +1,4 @@
1
- /* themed-pressable.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* themed-pressable.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _excluded = ["appearance", "shape", "isSelected", "isDisabled"];
@@ -1,3 +1,8 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import { type Key } from 'react';
1
6
  import type { StrictXCSSProp } from '@atlaskit/css';
2
7
  import type { ResizeBound } from './panel-splitter/types';
3
8
  import type { CommonSlotProps } from './types';
@@ -8,7 +13,7 @@ import type { CommonSlotProps } from './types';
8
13
  *
9
14
  * You can optionally render a `PanelSplitter` as a child to make the panel area resizable.
10
15
  */
11
- export declare function Panel({ children, defaultWidth: defaultWidthProp, label, skipLinkLabel, testId, id: providedId, xcss, hasBorder, maxWidth, }: CommonSlotProps & {
16
+ export declare function Panel({ children, defaultWidth: defaultWidthProp, label, skipLinkLabel, testId, id: providedId, xcss, hasBorder, maxWidth, contentKey, }: CommonSlotProps & {
12
17
  /**
13
18
  * The content of the layout area.
14
19
  */
@@ -38,6 +43,12 @@ export declare function Panel({ children, defaultWidth: defaultWidthProp, label,
38
43
  * should leave it unset to keep the default cap.
39
44
  */
40
45
  maxWidth?: ResizeBound;
46
+ /**
47
+ * Identifies the content currently displayed in the panel. Changing this value animates the
48
+ * previous content out before animating the next content in. When omitted, content updates
49
+ * immediately.
50
+ */
51
+ contentKey?: Key;
41
52
  /**
42
53
  * Bounded style overrides.
43
54
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/navigation-system",
3
- "version": "10.16.10",
3
+ "version": "10.17.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",
@@ -25,6 +25,9 @@
25
25
  },
26
26
  "team": "ADS: nav4",
27
27
  "website": {
28
+ "tags": [
29
+ "platform-labs"
30
+ ],
28
31
  "name": "Navigation system",
29
32
  "category": "Navigation",
30
33
  "subPages": [
@@ -54,7 +57,7 @@
54
57
  },
55
58
  "dependencies": {
56
59
  "@atlaskit/analytics-next": "^12.5.0",
57
- "@atlaskit/app-provider": "^5.6.0",
60
+ "@atlaskit/app-provider": "^6.0.0",
58
61
  "@atlaskit/avatar": "^28.0.0",
59
62
  "@atlaskit/button": "^25.3.0",
60
63
  "@atlaskit/css": "^1.1.0",
@@ -62,7 +65,7 @@
62
65
  "@atlaskit/icon": "^37.7.0",
63
66
  "@atlaskit/layering": "^5.2.0",
64
67
  "@atlaskit/logo": "^23.0.0",
65
- "@atlaskit/motion": "^8.6.0",
68
+ "@atlaskit/motion": "^8.7.0",
66
69
  "@atlaskit/platform-feature-flags": "^2.2.0",
67
70
  "@atlaskit/platform-feature-flags-react": "^1.2.0",
68
71
  "@atlaskit/popup": "^6.3.0",
@@ -70,7 +73,7 @@
70
73
  "@atlaskit/primitives": "^22.5.0",
71
74
  "@atlaskit/react-compiler-gating": "^0.2.0",
72
75
  "@atlaskit/side-nav-items": "^2.4.0",
73
- "@atlaskit/tokens": "^16.12.0",
76
+ "@atlaskit/tokens": "^17.0.0",
74
77
  "@atlaskit/tooltip": "^24.3.0",
75
78
  "@atlaskit/visually-hidden": "^4.4.0",
76
79
  "@babel/runtime": "^7.0.0",
@@ -112,13 +115,14 @@
112
115
  "@atlaskit/tabs": "^21.2.0",
113
116
  "@atlaskit/tag": "^15.8.0",
114
117
  "@atlaskit/textfield": "^10.2.0",
115
- "@atlaskit/top-layer": "^4.4.0",
118
+ "@atlaskit/top-layer": "^5.0.0",
116
119
  "@atlassian/feature-flags-test-utils": "^1.3.0",
117
120
  "@atlassian/gemini": "^1.53.0",
118
- "@atlassian/search-dialog": "^10.16.0",
121
+ "@atlassian/search-dialog": "^10.17.0",
119
122
  "@atlassian/ssr-tests": "workspace:^",
120
123
  "@atlassian/test-utils": "^1.1.0",
121
124
  "@atlassian/testing-library": "^0.11.0",
125
+ "@atlassian/workbench": "workspace:^",
122
126
  "@axe-core/playwright": "^4.11.1",
123
127
  "raf-stub": "^2.0.1",
124
128
  "react": "^18.2.0",