@atlaskit/side-navigation 11.2.0 → 11.2.2

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 (100) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/afm-cc/tsconfig.json +0 -1
  3. package/afm-products/tsconfig.json +0 -1
  4. package/dist/cjs/common/constants.js +6 -0
  5. package/dist/cjs/components/Footer/index.js +9 -0
  6. package/dist/cjs/components/Header/index.js +7 -0
  7. package/dist/cjs/components/Item/button-item.js +2 -0
  8. package/dist/cjs/components/Item/custom-item.js +2 -0
  9. package/dist/cjs/components/Item/go-back-item.js +2 -0
  10. package/dist/cjs/components/Item/link-item.js +2 -0
  11. package/dist/cjs/components/Item/skeleton-item.js +2 -0
  12. package/dist/cjs/components/LoadingItems/index.js +6 -0
  13. package/dist/cjs/components/NavigationContent/index.js +6 -0
  14. package/dist/cjs/components/NavigationFooter/index.js +7 -0
  15. package/dist/cjs/components/NavigationHeader/index.js +7 -0
  16. package/dist/cjs/components/NestableNavigationContent/index.js +7 -0
  17. package/dist/cjs/components/NestableNavigationContent/use-should-nested-element-render.js +5 -0
  18. package/dist/cjs/components/NestingItem/index.js +5 -0
  19. package/dist/cjs/components/Section/heading-item.js +6 -0
  20. package/dist/cjs/components/Section/section.js +6 -0
  21. package/dist/cjs/components/Section/skeleton-heading-item.js +7 -0
  22. package/dist/cjs/components/SideNavigation/index.js +10 -0
  23. package/dist/es2019/common/constants.js +6 -0
  24. package/dist/es2019/components/Footer/index.js +9 -0
  25. package/dist/es2019/components/Header/index.js +7 -0
  26. package/dist/es2019/components/Item/button-item.js +2 -0
  27. package/dist/es2019/components/Item/custom-item.js +2 -0
  28. package/dist/es2019/components/Item/go-back-item.js +2 -0
  29. package/dist/es2019/components/Item/link-item.js +2 -0
  30. package/dist/es2019/components/Item/skeleton-item.js +2 -0
  31. package/dist/es2019/components/LoadingItems/index.js +7 -0
  32. package/dist/es2019/components/NavigationContent/index.js +7 -0
  33. package/dist/es2019/components/NavigationFooter/index.js +7 -0
  34. package/dist/es2019/components/NavigationHeader/index.js +7 -0
  35. package/dist/es2019/components/NestableNavigationContent/index.js +7 -0
  36. package/dist/es2019/components/NestableNavigationContent/use-should-nested-element-render.js +6 -0
  37. package/dist/es2019/components/NestingItem/index.js +5 -0
  38. package/dist/es2019/components/Section/heading-item.js +6 -0
  39. package/dist/es2019/components/Section/section.js +7 -0
  40. package/dist/es2019/components/Section/skeleton-heading-item.js +7 -0
  41. package/dist/es2019/components/SideNavigation/index.js +11 -0
  42. package/dist/esm/common/constants.js +6 -0
  43. package/dist/esm/components/Footer/index.js +9 -0
  44. package/dist/esm/components/Header/index.js +7 -0
  45. package/dist/esm/components/Item/button-item.js +2 -0
  46. package/dist/esm/components/Item/custom-item.js +2 -0
  47. package/dist/esm/components/Item/go-back-item.js +2 -0
  48. package/dist/esm/components/Item/link-item.js +2 -0
  49. package/dist/esm/components/Item/skeleton-item.js +2 -0
  50. package/dist/esm/components/LoadingItems/index.js +7 -0
  51. package/dist/esm/components/NavigationContent/index.js +7 -0
  52. package/dist/esm/components/NavigationFooter/index.js +7 -0
  53. package/dist/esm/components/NavigationHeader/index.js +7 -0
  54. package/dist/esm/components/NestableNavigationContent/index.js +7 -0
  55. package/dist/esm/components/NestableNavigationContent/use-should-nested-element-render.js +6 -0
  56. package/dist/esm/components/NestingItem/index.js +5 -0
  57. package/dist/esm/components/Section/heading-item.js +6 -0
  58. package/dist/esm/components/Section/section.js +7 -0
  59. package/dist/esm/components/Section/skeleton-heading-item.js +7 -0
  60. package/dist/esm/components/SideNavigation/index.js +11 -0
  61. package/dist/types/common/constants.d.ts +6 -0
  62. package/dist/types/components/Footer/index.d.ts +5 -0
  63. package/dist/types/components/Header/index.d.ts +5 -0
  64. package/dist/types/components/Item/button-item.d.ts +2 -0
  65. package/dist/types/components/Item/custom-item.d.ts +2 -0
  66. package/dist/types/components/Item/go-back-item.d.ts +2 -0
  67. package/dist/types/components/Item/link-item.d.ts +2 -0
  68. package/dist/types/components/Item/skeleton-item.d.ts +2 -0
  69. package/dist/types/components/LoadingItems/index.d.ts +5 -0
  70. package/dist/types/components/NavigationContent/index.d.ts +5 -0
  71. package/dist/types/components/NavigationFooter/index.d.ts +5 -0
  72. package/dist/types/components/NavigationHeader/index.d.ts +5 -0
  73. package/dist/types/components/NestableNavigationContent/index.d.ts +5 -0
  74. package/dist/types/components/NestableNavigationContent/use-should-nested-element-render.d.ts +5 -0
  75. package/dist/types/components/NestingItem/index.d.ts +5 -0
  76. package/dist/types/components/Section/heading-item.d.ts +4 -0
  77. package/dist/types/components/Section/section.d.ts +5 -0
  78. package/dist/types/components/Section/skeleton-heading-item.d.ts +5 -0
  79. package/dist/types/components/SideNavigation/index.d.ts +5 -0
  80. package/dist/types-ts4.5/common/constants.d.ts +6 -0
  81. package/dist/types-ts4.5/components/Footer/index.d.ts +5 -0
  82. package/dist/types-ts4.5/components/Header/index.d.ts +5 -0
  83. package/dist/types-ts4.5/components/Item/button-item.d.ts +2 -0
  84. package/dist/types-ts4.5/components/Item/custom-item.d.ts +2 -0
  85. package/dist/types-ts4.5/components/Item/go-back-item.d.ts +2 -0
  86. package/dist/types-ts4.5/components/Item/link-item.d.ts +2 -0
  87. package/dist/types-ts4.5/components/Item/skeleton-item.d.ts +2 -0
  88. package/dist/types-ts4.5/components/LoadingItems/index.d.ts +5 -0
  89. package/dist/types-ts4.5/components/NavigationContent/index.d.ts +5 -0
  90. package/dist/types-ts4.5/components/NavigationFooter/index.d.ts +5 -0
  91. package/dist/types-ts4.5/components/NavigationHeader/index.d.ts +5 -0
  92. package/dist/types-ts4.5/components/NestableNavigationContent/index.d.ts +5 -0
  93. package/dist/types-ts4.5/components/NestableNavigationContent/use-should-nested-element-render.d.ts +5 -0
  94. package/dist/types-ts4.5/components/NestingItem/index.d.ts +5 -0
  95. package/dist/types-ts4.5/components/Section/heading-item.d.ts +4 -0
  96. package/dist/types-ts4.5/components/Section/section.d.ts +5 -0
  97. package/dist/types-ts4.5/components/Section/skeleton-heading-item.d.ts +5 -0
  98. package/dist/types-ts4.5/components/SideNavigation/index.d.ts +5 -0
  99. package/package.json +10 -10
  100. package/afm-jira/tsconfig.json +0 -51
@@ -2,6 +2,11 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { forwardRef } from 'react';
3
3
  import { Section as MenuSection } from '@atlaskit/menu';
4
4
  import { useShouldNestedElementRender } from '../NestableNavigationContent/use-should-nested-element-render';
5
+
6
+ /**
7
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
8
+ */
9
+
5
10
  /**
6
11
  * __Section__
7
12
  *
@@ -10,6 +15,8 @@ import { useShouldNestedElementRender } from '../NestableNavigationContent/use-s
10
15
  *
11
16
  * - [Examples](https://atlassian.design/components/side-navigation/examples#section)
12
17
  * - [Code](https://atlassian.design/components/side-navigation/code)
18
+ *
19
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
13
20
  */
14
21
  const Section = /*#__PURE__*/forwardRef((props, ref) => {
15
22
  const {
@@ -8,12 +8,19 @@ import { useShouldNestedElementRender } from '../NestableNavigationContent/use-s
8
8
  const styles = {
9
9
  root: "_18zru2gc"
10
10
  };
11
+
12
+ /**
13
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
14
+ */
15
+
11
16
  /**
12
17
  * __Skeleton heading item__
13
18
  *
14
19
  * A skeleton heading item for use in managing loading states.
15
20
  *
16
21
  * - [Examples](https://atlassian.design/components/side-navigation/examples#loading)
22
+ *
23
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
17
24
  */
18
25
  const SkeletonHeadingItem = props => {
19
26
  const {
@@ -4,7 +4,13 @@ import "./index.compiled.css";
4
4
  import * as React from 'react';
5
5
  import { ax, ix } from "@compiled/react/runtime";
6
6
  import { forwardRef } from 'react';
7
+ import warnOnce from '@atlaskit/ds-lib/warn-once';
7
8
  import { SELECTION_STYLE_CONTEXT_DO_NOT_USE } from '@atlaskit/menu';
9
+
10
+ /**
11
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
12
+ */
13
+
8
14
  const sidebarMinWidth = '240px';
9
15
  const sideNavStyles = null;
10
16
 
@@ -16,8 +22,13 @@ const sideNavStyles = null;
16
22
  * - [Examples](https://atlassian.design/components/side-navigation/examples)
17
23
  * - [Code](https://atlassian.design/components/side-navigation/code)
18
24
  * - [Usage](https://atlassian.design/components/side-navigation/usage)
25
+ *
26
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
19
27
  */
20
28
  const SideNavigation = /*#__PURE__*/forwardRef((props, ref) => {
29
+ if (typeof process !== 'undefined' && process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'CI') {
30
+ warnOnce('@atlaskit/side-navigation is deprecated. Use @atlaskit/navigation-system instead.');
31
+ }
21
32
  const {
22
33
  children,
23
34
  testId,
@@ -1,2 +1,8 @@
1
+ /**
2
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
3
+ */
1
4
  export var VAR_SEPARATOR_COLOR = '--ds-menu-seperator-color';
5
+ /**
6
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
7
+ */
2
8
  export var VAR_SCROLL_INDICATOR_COLOR = '--ds-menu-scroll-indicator-color';
@@ -13,11 +13,18 @@ var styles = {
13
13
  iconContainer: "_1e0c1o8l _1bsb1k8s _4t3i1k8s",
14
14
  oldFooter: "_uizt1wug _1e0c1ule _y3gn1h6o _1tke1tcg _4cvr1h6o _1bsb1osq _vrjtwadc _16vx1h6o _bek6ze3t _rh04u2gc _76zj1o8l _13e21h6o _14bw1o8l _xosk12x7 _wte412x7 _ou5312x7 _1jo512x7 _11kjsm61 _jl2n73ad _1et6sm61 _1v6jazsu"
15
15
  };
16
+
17
+ /**
18
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
19
+ */
20
+
16
21
  /**
17
22
  * __Footer__
18
23
  *
19
24
  * - [Examples](https://atlassian.design/components/side-navigation/examples#header-and-footer)
20
25
  * - [Code](https://atlassian.design/components/side-navigation/code)
26
+ *
27
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
21
28
  */
22
29
  var OldFooter = function OldFooter(props) {
23
30
  // https://stackoverflow.com/a/39333479
@@ -79,6 +86,8 @@ var Footer = function Footer(_ref2) {
79
86
  *
80
87
  * - [Examples](https://atlassian.design/components/side-navigation/examples#header-and-footer)
81
88
  * - [Code](https://atlassian.design/components/side-navigation/code)
89
+ *
90
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
82
91
  */
83
92
  var FooterFacade = function FooterFacade(_ref3) {
84
93
  var _ref3$useDeprecatedAp = _ref3.useDeprecatedApi,
@@ -8,11 +8,18 @@ import HeaderContainer from './header-container';
8
8
  var styles = {
9
9
  header: "_uizt1wug _vrjt1qyo _1cmdi7uo _11kjsm61 _jl2n73ad _1et6sm61 _1v6ji7uo"
10
10
  };
11
+
12
+ /**
13
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
14
+ */
15
+
11
16
  /**
12
17
  * __Header__
13
18
  *
14
19
  * - [Examples](https://atlassian.design/components/side-navigation/examples#header-and-footer)
15
20
  * - [Code](https://atlassian.design/components/side-navigation/code)
21
+ *
22
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
16
23
  */
17
24
  var Header = /*#__PURE__*/forwardRef(function (props, ref) {
18
25
  return /*#__PURE__*/React.createElement(CustomItem, _extends({}, props, {
@@ -21,6 +21,8 @@ var styles = {
21
21
  *
22
22
  * - [Examples](https://atlassian.design/components/side-navigation/examples#button-item)
23
23
  * - [Code](https://atlassian.design/components/side-navigation/code)
24
+ *
25
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
24
26
  */
25
27
  var ButtonItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
26
28
  var className = _ref.className,
@@ -18,6 +18,8 @@ var styles = {
18
18
  /**
19
19
  * Used to support any custom items needed by products alongside the Header and Footer patterns.
20
20
  * Specific implementation of headers and footers are provided in the examples folder.
21
+ *
22
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
21
23
  */
22
24
  var CustomItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
23
25
  var className = _ref.className,
@@ -14,6 +14,8 @@ import ButtonItem from './button-item';
14
14
  *
15
15
  * - [Examples](https://atlassian.design/components/side-navigation/examples#go-back-item)
16
16
  * - [Code](https://atlassian.design/components/side-navigation/code)
17
+ *
18
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
17
19
  */
18
20
  var GoBackItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
19
21
  var className = _ref.className,
@@ -23,6 +23,8 @@ var styles = {
23
23
  *
24
24
  * - [Examples](https://atlassian.design/components/side-navigation/examples#link-item)
25
25
  * - [Code](https://atlassian.design/components/side-navigation/code)
26
+ *
27
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
26
28
  */
27
29
  var LinkItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
28
30
  var href = _ref.href,
@@ -10,6 +10,8 @@ import { useShouldNestedElementRender } from '../NestableNavigationContent/use-s
10
10
  *
11
11
  * - [Examples](https://atlassian.design/components/side-navigation/examples#loading)
12
12
  * - [Code](https://atlassian.design/components/side-navigation/code)
13
+ *
14
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
13
15
  */
14
16
  var SkeletonItem = function SkeletonItem(props) {
15
17
  var _useShouldNestedEleme = useShouldNestedElementRender(),
@@ -5,6 +5,11 @@ import { ax, ix } from "@compiled/react/runtime";
5
5
  import React from 'react';
6
6
  import { ExitingPersistence, FadeIn } from '@atlaskit/motion';
7
7
  import { useShouldNestedElementRender } from '../NestableNavigationContent/use-should-nested-element-render';
8
+
9
+ /**
10
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
11
+ */
12
+
8
13
  var baseMotionStyles = null;
9
14
  var enteringStyles = null;
10
15
 
@@ -12,6 +17,8 @@ var enteringStyles = null;
12
17
  * __Loading items__
13
18
  *
14
19
  * Loading items conditionally render based on the useShouldNestedElementRender() hook.
20
+ *
21
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
15
22
  */
16
23
  var LoadingItems = function LoadingItems(_ref) {
17
24
  var children = _ref.children,
@@ -4,6 +4,11 @@ import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { forwardRef } from 'react';
5
5
  import useScrollbarWidth from '@atlaskit/ds-lib/use-scrollbar-width';
6
6
  import { useShouldNestedElementRender } from '../NestableNavigationContent/use-should-nested-element-render';
7
+
8
+ /**
9
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
10
+ */
11
+
7
12
  var outerContainerCSS = null;
8
13
  var innerContainerCSS = {
9
14
  basic: "_1reo1wug _18m91wug _1e0c1txw _vchhusvi _1bsb1osq _kqswh2mm _2lx21bp4 _14mjlb4i _1ywu1ule _1qdgyh40 _18poh2mm _1bqqcs5v _tua5idpf _1hfk1q2g _aetrb3bt _3mxo1wug",
@@ -21,6 +26,8 @@ var containerCSS = {
21
26
  *
22
27
  * - [Examples](https://atlassian.design/components/side-navigation/examples#content)
23
28
  * - [Code](https://atlassian.design/components/side-navigation/code)
29
+ *
30
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
24
31
  */
25
32
  var NavigationContent = /*#__PURE__*/forwardRef(function (props, ref) {
26
33
  var showTopScrollIndicator = props.showTopScrollIndicator,
@@ -6,6 +6,11 @@ import { Box } from '@atlaskit/primitives/compiled';
6
6
  var styles = {
7
7
  navigationFooter: "_kqswh2mm"
8
8
  };
9
+
10
+ /**
11
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
12
+ */
13
+
9
14
  /**
10
15
  * __Navigation footer__
11
16
  *
@@ -13,6 +18,8 @@ var styles = {
13
18
  *
14
19
  * - [Examples](https://atlassian.design/components/side-navigation/examples#header-and-footer)
15
20
  * - [Code](https://atlassian.design/components/side-navigation/code)
21
+ *
22
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
16
23
  */
17
24
  var NavigationFooter = function NavigationFooter(_ref) {
18
25
  var children = _ref.children;
@@ -6,6 +6,11 @@ import { Box } from '@atlaskit/primitives/compiled';
6
6
  var styles = {
7
7
  navigationFooter: "_1e0c1ule _85i5u2gc _1q511ejb _y4tiu2gc _bozgu2gc"
8
8
  };
9
+
10
+ /**
11
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
12
+ */
13
+
9
14
  /**
10
15
  * __Navigation header__
11
16
  *
@@ -13,6 +18,8 @@ var styles = {
13
18
  *
14
19
  * - [Examples](https://atlassian.design/components/side-navigation/examples#header-and-footer)
15
20
  * - [Code](https://atlassian.design/components/side-navigation/code)
21
+ *
22
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
16
23
  */
17
24
  var NavigationHeader = function NavigationHeader(props) {
18
25
  var children = props.children;
@@ -14,6 +14,11 @@ import { NestingMotion } from './nesting-motion';
14
14
  // Named so ERT doesn't pick up the override name as a type.
15
15
 
16
16
  export var ROOT_ID = 'ATLASKIT_NESTED_ROOT';
17
+
18
+ /**
19
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
20
+ */
21
+
17
22
  var nestableNavigationContentStyles = null;
18
23
  var nestingRootStyles = null;
19
24
 
@@ -24,6 +29,8 @@ var nestingRootStyles = null;
24
29
  *
25
30
  * - [Examples](https://atlassian.design/components/side-navigation/examples#nested-navigation)
26
31
  * - [Code](https://atlassian.design/components/side-navigation/code)
32
+ *
33
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
27
34
  */
28
35
  var NestableNavigationContent = function NestableNavigationContent(props) {
29
36
  var containerRef = useRef(null);
@@ -1,5 +1,11 @@
1
1
  import { useContext } from 'react';
2
2
  import { NestedContext } from './nested-context';
3
+
4
+ /**
5
+ * __useShouldNestedElementRender__
6
+ *
7
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
8
+ */
3
9
  export var useShouldNestedElementRender = function useShouldNestedElementRender() {
4
10
  var context = useContext(NestedContext);
5
11
  if (!context) {
@@ -27,11 +27,16 @@ var styles = {
27
27
  };
28
28
 
29
29
  // Doesn't extend from ButtonItemProps because it blows ERT up.
30
+ /**
31
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
32
+ */
30
33
 
31
34
  /**
32
35
  * NestingItem will render itself differently depending in what context it is rendered in.
33
36
  * When not open - it will render itself as an item.
34
37
  * When open - it will render its children.
38
+ *
39
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
35
40
  */
36
41
  var NestingItem = function NestingItem(props) {
37
42
  var children = props.children,
@@ -8,11 +8,17 @@ import { useShouldNestedElementRender } from '../NestableNavigationContent/use-s
8
8
  var styles = {
9
9
  headingItem: "_18zru2gc"
10
10
  };
11
+
12
+ /**
13
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
14
+ */
15
+
11
16
  /**
12
17
  * __Heading item__
13
18
  *
14
19
  * Available for advanced use cases, for most situations providing a `title` to `section` should be enough.
15
20
  *
21
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
16
22
  */
17
23
  var HeadingItem = function HeadingItem(props) {
18
24
  var _useShouldNestedEleme = useShouldNestedElementRender(),
@@ -2,6 +2,11 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { forwardRef } from 'react';
3
3
  import { Section as MenuSection } from '@atlaskit/menu';
4
4
  import { useShouldNestedElementRender } from '../NestableNavigationContent/use-should-nested-element-render';
5
+
6
+ /**
7
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
8
+ */
9
+
5
10
  /**
6
11
  * __Section__
7
12
  *
@@ -10,6 +15,8 @@ import { useShouldNestedElementRender } from '../NestableNavigationContent/use-s
10
15
  *
11
16
  * - [Examples](https://atlassian.design/components/side-navigation/examples#section)
12
17
  * - [Code](https://atlassian.design/components/side-navigation/code)
18
+ *
19
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
13
20
  */
14
21
  var Section = /*#__PURE__*/forwardRef(function (props, ref) {
15
22
  var _useShouldNestedEleme = useShouldNestedElementRender(),
@@ -8,12 +8,19 @@ import { useShouldNestedElementRender } from '../NestableNavigationContent/use-s
8
8
  var styles = {
9
9
  root: "_18zru2gc"
10
10
  };
11
+
12
+ /**
13
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
14
+ */
15
+
11
16
  /**
12
17
  * __Skeleton heading item__
13
18
  *
14
19
  * A skeleton heading item for use in managing loading states.
15
20
  *
16
21
  * - [Examples](https://atlassian.design/components/side-navigation/examples#loading)
22
+ *
23
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
17
24
  */
18
25
  var SkeletonHeadingItem = function SkeletonHeadingItem(props) {
19
26
  var _useShouldNestedEleme = useShouldNestedElementRender(),
@@ -4,7 +4,13 @@ import "./index.compiled.css";
4
4
  import * as React from 'react';
5
5
  import { ax, ix } from "@compiled/react/runtime";
6
6
  import { forwardRef } from 'react';
7
+ import warnOnce from '@atlaskit/ds-lib/warn-once';
7
8
  import { SELECTION_STYLE_CONTEXT_DO_NOT_USE } from '@atlaskit/menu';
9
+
10
+ /**
11
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
12
+ */
13
+
8
14
  var sidebarMinWidth = '240px';
9
15
  var sideNavStyles = null;
10
16
 
@@ -16,8 +22,13 @@ var sideNavStyles = null;
16
22
  * - [Examples](https://atlassian.design/components/side-navigation/examples)
17
23
  * - [Code](https://atlassian.design/components/side-navigation/code)
18
24
  * - [Usage](https://atlassian.design/components/side-navigation/usage)
25
+ *
26
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
19
27
  */
20
28
  var SideNavigation = /*#__PURE__*/forwardRef(function (props, ref) {
29
+ if (typeof process !== 'undefined' && process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'CI') {
30
+ warnOnce('@atlaskit/side-navigation is deprecated. Use @atlaskit/navigation-system instead.');
31
+ }
21
32
  var children = props.children,
22
33
  testId = props.testId,
23
34
  label = props.label,
@@ -1,2 +1,8 @@
1
+ /**
2
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
3
+ */
1
4
  export declare const VAR_SEPARATOR_COLOR = "--ds-menu-seperator-color";
5
+ /**
6
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
7
+ */
2
8
  export declare const VAR_SCROLL_INDICATOR_COLOR = "--ds-menu-scroll-indicator-color";
@@ -15,12 +15,17 @@ type FooterFacadeProps = (HeaderProps & {
15
15
  component?: never;
16
16
  onClick?: never;
17
17
  });
18
+ /**
19
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
20
+ */
18
21
  export type FooterProps = HeaderProps | NewFooterProps;
19
22
  /**
20
23
  * __Footer__
21
24
  *
22
25
  * - [Examples](https://atlassian.design/components/side-navigation/examples#header-and-footer)
23
26
  * - [Code](https://atlassian.design/components/side-navigation/code)
27
+ *
28
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
24
29
  */
25
30
  declare const FooterFacade: ({ useDeprecatedApi, description, iconBefore, testId, children, component, onClick, }: FooterFacadeProps) => JSX.Element;
26
31
  export default FooterFacade;
@@ -4,6 +4,9 @@
4
4
  */
5
5
  import React from 'react';
6
6
  import { type CustomItemComponentProps } from '@atlaskit/menu';
7
+ /**
8
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
9
+ */
7
10
  export type HeaderProps = {
8
11
  /**
9
12
  * Element to render before the item text.
@@ -42,6 +45,8 @@ export type HeaderProps = {
42
45
  *
43
46
  * - [Examples](https://atlassian.design/components/side-navigation/examples#header-and-footer)
44
47
  * - [Code](https://atlassian.design/components/side-navigation/code)
48
+ *
49
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
45
50
  */
46
51
  declare const Header: React.ForwardRefExoticComponent<React.PropsWithoutRef<HeaderProps> & React.RefAttributes<HTMLElement>>;
47
52
  export default Header;
@@ -7,6 +7,8 @@ import { type ButtonItemProps } from '@atlaskit/menu';
7
7
  *
8
8
  * - [Examples](https://atlassian.design/components/side-navigation/examples#button-item)
9
9
  * - [Code](https://atlassian.design/components/side-navigation/code)
10
+ *
11
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
10
12
  */
11
13
  declare const ButtonItem: React.ForwardRefExoticComponent<React.PropsWithoutRef<ButtonItemProps> & React.RefAttributes<HTMLElement>>;
12
14
  export default ButtonItem;
@@ -9,6 +9,8 @@ interface CustomItemPropsHack {
9
9
  /**
10
10
  * Used to support any custom items needed by products alongside the Header and Footer patterns.
11
11
  * Specific implementation of headers and footers are provided in the examples folder.
12
+ *
13
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
12
14
  */
13
15
  declare const CustomItem: CustomItemPropsHack;
14
16
  export default CustomItem;
@@ -8,6 +8,8 @@ import type { ButtonItemProps } from '@atlaskit/menu';
8
8
  *
9
9
  * - [Examples](https://atlassian.design/components/side-navigation/examples#go-back-item)
10
10
  * - [Code](https://atlassian.design/components/side-navigation/code)
11
+ *
12
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
11
13
  */
12
14
  declare const GoBackItem: React.ForwardRefExoticComponent<React.PropsWithoutRef<ButtonItemProps> & React.RefAttributes<HTMLElement>>;
13
15
  export default GoBackItem;
@@ -9,6 +9,8 @@ import { type LinkItemProps } from '@atlaskit/menu';
9
9
  *
10
10
  * - [Examples](https://atlassian.design/components/side-navigation/examples#link-item)
11
11
  * - [Code](https://atlassian.design/components/side-navigation/code)
12
+ *
13
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
12
14
  */
13
15
  declare const LinkItem: React.ForwardRefExoticComponent<React.PropsWithoutRef<LinkItemProps> & React.RefAttributes<HTMLElement>>;
14
16
  export default LinkItem;
@@ -7,6 +7,8 @@ import { type SkeletonItemProps } from '@atlaskit/menu';
7
7
  *
8
8
  * - [Examples](https://atlassian.design/components/side-navigation/examples#loading)
9
9
  * - [Code](https://atlassian.design/components/side-navigation/code)
10
+ *
11
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
10
12
  */
11
13
  declare const SkeletonItem: (props: SkeletonItemProps) => React.JSX.Element | null;
12
14
  export default SkeletonItem;
@@ -3,6 +3,9 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import React from 'react';
6
+ /**
7
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
8
+ */
6
9
  export interface LoadingItemsProps {
7
10
  /**
8
11
  * Child items that will be loaded asynchronously.
@@ -34,6 +37,8 @@ export interface LoadingItemsProps {
34
37
  * __Loading items__
35
38
  *
36
39
  * Loading items conditionally render based on the useShouldNestedElementRender() hook.
40
+ *
41
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
37
42
  */
38
43
  declare const LoadingItems: ({ children, isLoading, fallback, testId, }: LoadingItemsProps) => JSX.Element;
39
44
  export default LoadingItems;
@@ -3,6 +3,9 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import React, { type HTMLAttributes } from 'react';
6
+ /**
7
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
8
+ */
6
9
  export interface NavigationContentProps {
7
10
  children: React.ReactNode;
8
11
  /**
@@ -23,6 +26,8 @@ export interface NavigationContentProps {
23
26
  *
24
27
  * - [Examples](https://atlassian.design/components/side-navigation/examples#content)
25
28
  * - [Code](https://atlassian.design/components/side-navigation/code)
29
+ *
30
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
26
31
  */
27
32
  declare const NavigationContent: React.ForwardRefExoticComponent<React.PropsWithoutRef<NavigationContentProps & HTMLAttributes<HTMLElement>> & React.RefAttributes<HTMLElement>>;
28
33
  export default NavigationContent;
@@ -3,6 +3,9 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import { type ReactNode } from 'react';
6
+ /**
7
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
8
+ */
6
9
  export interface NavigationFooterProps {
7
10
  children: ReactNode;
8
11
  }
@@ -13,6 +16,8 @@ export interface NavigationFooterProps {
13
16
  *
14
17
  * - [Examples](https://atlassian.design/components/side-navigation/examples#header-and-footer)
15
18
  * - [Code](https://atlassian.design/components/side-navigation/code)
19
+ *
20
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
16
21
  */
17
22
  declare const NavigationFooter: ({ children }: NavigationFooterProps) => JSX.Element;
18
23
  export default NavigationFooter;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
3
+ */
1
4
  export interface NavigationHeaderProps {
2
5
  children: JSX.Element | JSX.Element[];
3
6
  }
@@ -8,6 +11,8 @@ export interface NavigationHeaderProps {
8
11
  *
9
12
  * - [Examples](https://atlassian.design/components/side-navigation/examples#header-and-footer)
10
13
  * - [Code](https://atlassian.design/components/side-navigation/code)
14
+ *
15
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
11
16
  */
12
17
  declare const NavigationHeader: (props: NavigationHeaderProps) => JSX.Element;
13
18
  export default NavigationHeader;
@@ -4,6 +4,9 @@
4
4
  */
5
5
  import React from 'react';
6
6
  export declare const ROOT_ID = "ATLASKIT_NESTED_ROOT";
7
+ /**
8
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
9
+ */
7
10
  export interface NestableNavigationContentProps {
8
11
  /**
9
12
  * The NestableNavigationContent wraps the entire navigation hierarchy of a side navigation.
@@ -84,6 +87,8 @@ export interface NestableNavigationContentProps {
84
87
  *
85
88
  * - [Examples](https://atlassian.design/components/side-navigation/examples#nested-navigation)
86
89
  * - [Code](https://atlassian.design/components/side-navigation/code)
90
+ *
91
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
87
92
  */
88
93
  declare const NestableNavigationContent: (props: NestableNavigationContentProps) => JSX.Element;
89
94
  export default NestableNavigationContent;
@@ -1,3 +1,8 @@
1
+ /**
2
+ * __useShouldNestedElementRender__
3
+ *
4
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
5
+ */
1
6
  export declare const useShouldNestedElementRender: () => {
2
7
  shouldRender: boolean;
3
8
  };
@@ -19,6 +19,9 @@ interface NestingItemOverrides {
19
19
  }) => React.ReactNode;
20
20
  };
21
21
  }
22
+ /**
23
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
24
+ */
22
25
  export interface NestingItemProps<TCustomComponentProps = CustomItemComponentProps> {
23
26
  /**
24
27
  * A unique identifier for the nesting item.
@@ -91,6 +94,8 @@ export interface NestingItemProps<TCustomComponentProps = CustomItemComponentPro
91
94
  * NestingItem will render itself differently depending in what context it is rendered in.
92
95
  * When not open - it will render itself as an item.
93
96
  * When open - it will render its children.
97
+ *
98
+ * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
94
99
  */
95
100
  declare const NestingItem: <TCustomComponentProps extends CustomItemComponentProps>(props: NestingItemProps<TCustomComponentProps> & Omit<TCustomComponentProps, keyof CustomItemComponentProps>) => JSX.Element;
96
101
  export default NestingItem;