@atlaskit/side-navigation 11.2.2 → 12.0.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 (69) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/button-item/package.json +1 -8
  3. package/constants/package.json +1 -8
  4. package/custom-item/package.json +1 -8
  5. package/footer/package.json +1 -8
  6. package/go-back-item/package.json +1 -8
  7. package/header/package.json +1 -8
  8. package/heading-item/package.json +1 -8
  9. package/link-item/package.json +1 -8
  10. package/loading-items/package.json +1 -8
  11. package/navigation-content/package.json +1 -8
  12. package/navigation-footer/package.json +1 -8
  13. package/navigation-header/package.json +1 -8
  14. package/nestable-navigation-content/package.json +1 -8
  15. package/nesting-item/package.json +1 -8
  16. package/package.json +25 -32
  17. package/section/package.json +1 -8
  18. package/side-navigation/package.json +1 -8
  19. package/skeleton-heading-item/package.json +1 -8
  20. package/skeleton-item/package.json +1 -8
  21. package/use-should-nested-element-render/package.json +1 -8
  22. package/dist/types-ts4.5/common/constants.d.ts +0 -8
  23. package/dist/types-ts4.5/common/use-child-ids-effect.d.ts +0 -3
  24. package/dist/types-ts4.5/common/use-child-ids.d.ts +0 -5
  25. package/dist/types-ts4.5/components/Footer/index.d.ts +0 -31
  26. package/dist/types-ts4.5/components/Header/header-container.d.ts +0 -8
  27. package/dist/types-ts4.5/components/Header/index.d.ts +0 -52
  28. package/dist/types-ts4.5/components/Item/button-item.d.ts +0 -14
  29. package/dist/types-ts4.5/components/Item/custom-item.d.ts +0 -16
  30. package/dist/types-ts4.5/components/Item/go-back-item.d.ts +0 -15
  31. package/dist/types-ts4.5/components/Item/link-item.d.ts +0 -16
  32. package/dist/types-ts4.5/components/Item/skeleton-item.d.ts +0 -14
  33. package/dist/types-ts4.5/components/LoadingItems/index.d.ts +0 -44
  34. package/dist/types-ts4.5/components/NavigationContent/container-css.d.ts +0 -18
  35. package/dist/types-ts4.5/components/NavigationContent/index.d.ts +0 -33
  36. package/dist/types-ts4.5/components/NavigationContent/inner-container-css.d.ts +0 -34
  37. package/dist/types-ts4.5/components/NavigationContent/outer-container-css.d.ts +0 -36
  38. package/dist/types-ts4.5/components/NavigationFooter/index.d.ts +0 -23
  39. package/dist/types-ts4.5/components/NavigationHeader/index.d.ts +0 -18
  40. package/dist/types-ts4.5/components/NestableNavigationContent/index.d.ts +0 -94
  41. package/dist/types-ts4.5/components/NestableNavigationContent/nested-context.d.ts +0 -16
  42. package/dist/types-ts4.5/components/NestableNavigationContent/nesting-motion.d.ts +0 -20
  43. package/dist/types-ts4.5/components/NestableNavigationContent/use-nested-context.d.ts +0 -2
  44. package/dist/types-ts4.5/components/NestableNavigationContent/use-should-nested-element-render.d.ts +0 -8
  45. package/dist/types-ts4.5/components/NestingItem/index.d.ts +0 -101
  46. package/dist/types-ts4.5/components/Section/heading-item.d.ts +0 -19
  47. package/dist/types-ts4.5/components/Section/section.d.ts +0 -44
  48. package/dist/types-ts4.5/components/Section/skeleton-heading-item.d.ts +0 -18
  49. package/dist/types-ts4.5/components/SideNavigation/index.d.ts +0 -44
  50. package/dist/types-ts4.5/entry-points/button-item.d.ts +0 -1
  51. package/dist/types-ts4.5/entry-points/constants.d.ts +0 -1
  52. package/dist/types-ts4.5/entry-points/custom-item.d.ts +0 -1
  53. package/dist/types-ts4.5/entry-points/footer.d.ts +0 -2
  54. package/dist/types-ts4.5/entry-points/go-back-item.d.ts +0 -1
  55. package/dist/types-ts4.5/entry-points/header.d.ts +0 -2
  56. package/dist/types-ts4.5/entry-points/heading-item.d.ts +0 -2
  57. package/dist/types-ts4.5/entry-points/link-item.d.ts +0 -1
  58. package/dist/types-ts4.5/entry-points/loading-items.d.ts +0 -2
  59. package/dist/types-ts4.5/entry-points/navigation-content.d.ts +0 -2
  60. package/dist/types-ts4.5/entry-points/navigation-footer.d.ts +0 -2
  61. package/dist/types-ts4.5/entry-points/navigation-header.d.ts +0 -2
  62. package/dist/types-ts4.5/entry-points/nestable-navigation-content.d.ts +0 -2
  63. package/dist/types-ts4.5/entry-points/nesting-item.d.ts +0 -2
  64. package/dist/types-ts4.5/entry-points/section.d.ts +0 -2
  65. package/dist/types-ts4.5/entry-points/side-navigation.d.ts +0 -2
  66. package/dist/types-ts4.5/entry-points/skeleton-heading-item.d.ts +0 -2
  67. package/dist/types-ts4.5/entry-points/skeleton-item.d.ts +0 -1
  68. package/dist/types-ts4.5/entry-points/use-should-nested-element-render.d.ts +0 -1
  69. package/dist/types-ts4.5/index.d.ts +0 -36
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # @atlaskit/side-navigation
2
2
 
3
+ ## 12.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
8
+ Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
9
+
10
+ Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
11
+
12
+ Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
13
+
14
+ ```diff
15
+ - "typesVersions": {
16
+ - ">=4.5 <4.9": {
17
+ - "*": [
18
+ - "dist/types-ts4.5/*",
19
+ - "dist/types-ts4.5/index.d.ts"
20
+ - ]
21
+ - }
22
+ - },
23
+ ```
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies
28
+
3
29
  ## 11.2.2
4
30
 
5
31
  ### Patch Changes
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/button-item.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/button-item.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/button-item.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/constants.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/constants.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/constants.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/custom-item.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/custom-item.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/custom-item.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/footer.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/footer.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/footer.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/go-back-item.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/go-back-item.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/go-back-item.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/header.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/header.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/header.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/heading-item.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/heading-item.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/heading-item.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/link-item.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/link-item.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/link-item.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/loading-items.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/loading-items.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/loading-items.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/navigation-content.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/navigation-content.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/navigation-content.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/navigation-footer.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/navigation-footer.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/navigation-footer.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/navigation-header.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/navigation-header.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/navigation-header.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/nestable-navigation-content.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/nestable-navigation-content.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/nestable-navigation-content.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/nesting-item.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/nesting-item.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/nesting-item.d.ts"
17
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/side-navigation",
3
- "version": "11.2.2",
3
+ "version": "12.0.0",
4
4
  "description": "A highly composable side navigation component that supports nested views.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -35,14 +35,14 @@
35
35
  }
36
36
  },
37
37
  "dependencies": {
38
- "@atlaskit/css": "^0.19.0",
39
- "@atlaskit/ds-lib": "^7.0.0",
40
- "@atlaskit/icon": "^35.0.0",
41
- "@atlaskit/menu": "^8.5.0",
42
- "@atlaskit/motion": "^6.2.0",
43
- "@atlaskit/platform-feature-flags": "^1.1.0",
44
- "@atlaskit/primitives": "^19.0.0",
45
- "@atlaskit/tokens": "^13.0.0",
38
+ "@atlaskit/css": "^1.0.0",
39
+ "@atlaskit/ds-lib": "^8.0.0",
40
+ "@atlaskit/icon": "^36.0.0",
41
+ "@atlaskit/menu": "^9.0.0",
42
+ "@atlaskit/motion": "^7.0.0",
43
+ "@atlaskit/platform-feature-flags": "^2.0.0",
44
+ "@atlaskit/primitives": "^20.0.0",
45
+ "@atlaskit/tokens": "^14.0.0",
46
46
  "@babel/runtime": "^7.0.0",
47
47
  "@compiled/react": "^0.20.0"
48
48
  },
@@ -53,24 +53,25 @@
53
53
  "@af/accessibility-testing": "workspace:^",
54
54
  "@af/integration-testing": "workspace:^",
55
55
  "@af/visual-regression": "workspace:^",
56
- "@atlaskit/atlassian-navigation": "^5.7.0",
57
- "@atlaskit/button": "^23.11.0",
58
- "@atlaskit/docs": "^11.8.0",
59
- "@atlaskit/dropdown-menu": "^16.8.0",
60
- "@atlaskit/form": "^15.5.0",
61
- "@atlaskit/image": "^3.0.0",
62
- "@atlaskit/link": "^3.4.0",
63
- "@atlaskit/logo": "^20.1.0",
64
- "@atlaskit/pragmatic-drag-and-drop": "^1.8.0",
65
- "@atlaskit/pragmatic-drag-and-drop-live-region": "^1.3.0",
66
- "@atlaskit/pragmatic-drag-and-drop-react-accessibility": "^2.2.0",
67
- "@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
68
- "@atlaskit/section-message": "^8.12.0",
69
- "@atlaskit/select": "^21.12.0",
70
- "@atlaskit/spotlight": "^0.14.0",
56
+ "@atlaskit/atlassian-navigation": "^6.0.0",
57
+ "@atlaskit/button": "^24.0.0",
58
+ "@atlaskit/docs": "^12.0.0",
59
+ "@atlaskit/dropdown-menu": "^17.0.0",
60
+ "@atlaskit/form": "^16.0.0",
61
+ "@atlaskit/image": "^4.0.0",
62
+ "@atlaskit/link": "^4.0.0",
63
+ "@atlaskit/logo": "^21.0.0",
64
+ "@atlaskit/pragmatic-drag-and-drop": "^2.0.0",
65
+ "@atlaskit/pragmatic-drag-and-drop-live-region": "^2.0.0",
66
+ "@atlaskit/pragmatic-drag-and-drop-react-accessibility": "^3.0.0",
67
+ "@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^4.0.0",
68
+ "@atlaskit/section-message": "^9.0.0",
69
+ "@atlaskit/select": "^22.0.0",
70
+ "@atlaskit/spotlight": "^1.0.0",
71
71
  "@atlassian/react-compiler-gating": "workspace:^",
72
72
  "@testing-library/react": "^16.3.0",
73
73
  "raf-stub": "^2.0.1",
74
+ "react": "^18.2.0",
74
75
  "tiny-invariant": "^1.2.0"
75
76
  },
76
77
  "techstack": {
@@ -94,14 +95,6 @@
94
95
  ]
95
96
  }
96
97
  },
97
- "typesVersions": {
98
- ">=4.5 <4.9": {
99
- "*": [
100
- "dist/types-ts4.5/*",
101
- "dist/types-ts4.5/index.d.ts"
102
- ]
103
- }
104
- },
105
98
  "platform-feature-flags": {
106
99
  "platform-side-navigation-keyboard-focus": {
107
100
  "type": "boolean"
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/section.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/section.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/section.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/side-navigation.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/side-navigation.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/side-navigation.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/skeleton-heading-item.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/skeleton-heading-item.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/skeleton-heading-item.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/skeleton-item.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/skeleton-item.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/skeleton-item.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/use-should-nested-element-render.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/use-should-nested-element-render.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/use-should-nested-element-render.d.ts"
17
10
  }
@@ -1,8 +0,0 @@
1
- /**
2
- * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
3
- */
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
- */
8
- export declare const VAR_SCROLL_INDICATOR_COLOR = "--ds-menu-scroll-indicator-color";
@@ -1,3 +0,0 @@
1
- import { type MutableRefObject } from 'react';
2
- declare const useChildIdsEffect: (childIds: MutableRefObject<Set<string>>, id: string) => void;
3
- export default useChildIdsEffect;
@@ -1,5 +0,0 @@
1
- import { type MutableRefObject } from 'react';
2
- declare const useChildIds: (currentStackId: string, committedStack: string[], onUnknownNest?: (stack: string[]) => void) => {
3
- childIdsRef: MutableRefObject<Set<string>>;
4
- };
5
- export default useChildIds;
@@ -1,31 +0,0 @@
1
- import { type HeaderProps } from '../Header';
2
- type NewFooterProps = Omit<HeaderProps, 'component' | 'onClick'>;
3
- type FooterFacadeProps = (HeaderProps & {
4
- /**
5
- * @private
6
- * @deprecated
7
- */
8
- useDeprecatedApi?: true;
9
- }) | (NewFooterProps & {
10
- /**
11
- * @private
12
- * @deprecated
13
- */
14
- useDeprecatedApi?: false;
15
- component?: never;
16
- onClick?: never;
17
- });
18
- /**
19
- * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
20
- */
21
- export type FooterProps = HeaderProps | NewFooterProps;
22
- /**
23
- * __Footer__
24
- *
25
- * - [Examples](https://atlassian.design/components/side-navigation/examples#header-and-footer)
26
- * - [Code](https://atlassian.design/components/side-navigation/code)
27
- *
28
- * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
29
- */
30
- declare const FooterFacade: ({ useDeprecatedApi, description, iconBefore, testId, children, component, onClick, }: FooterFacadeProps) => JSX.Element;
31
- export default FooterFacade;
@@ -1,8 +0,0 @@
1
- import { type CustomItemComponentProps } from '@atlaskit/menu';
2
- /**
3
- * __Container__
4
- *
5
- * A container for Header and Footer that safely handles props to the child component
6
- */
7
- declare const HeaderContainer: (props: CustomItemComponentProps) => JSX.Element;
8
- export default HeaderContainer;
@@ -1,52 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React from 'react';
6
- import { type CustomItemComponentProps } from '@atlaskit/menu';
7
- /**
8
- * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
9
- */
10
- export type HeaderProps = {
11
- /**
12
- * Element to render before the item text.
13
- * Generally should be an [icon](https://atlassian.design/components/icon/icon-explorer) component.
14
- */
15
- iconBefore?: React.ReactNode;
16
- /**
17
- * Event that is triggered when the element is clicked.
18
- */
19
- onClick?: (event: React.MouseEvent | React.KeyboardEvent) => void;
20
- /**
21
- * Description of the item.
22
- * This will render smaller text below the primary text of the item as well as slightly increasing the height of the item.
23
- */
24
- description?: string | JSX.Element;
25
- /**
26
- * Primary content for the item.
27
- */
28
- children?: React.ReactNode;
29
- /**
30
- * A `testId` prop is provided for specified elements,
31
- * which is a unique string that appears as a data attribute `data-testid` in the rendered code,
32
- * serving as a hook for automated tests.
33
- */
34
- testId?: string;
35
- /**
36
- * Custom component to render as an item.
37
- * This can be both a functional component or a class component.
38
- * __Will return `null` if no component is defined.__
39
- * __NOTE:__ Make sure the reference for this component does not change between renders else undefined behavior may happen.
40
- */
41
- component?: React.ComponentType<CustomItemComponentProps>;
42
- };
43
- /**
44
- * __Header__
45
- *
46
- * - [Examples](https://atlassian.design/components/side-navigation/examples#header-and-footer)
47
- * - [Code](https://atlassian.design/components/side-navigation/code)
48
- *
49
- * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
50
- */
51
- declare const Header: React.ForwardRefExoticComponent<React.PropsWithoutRef<HeaderProps> & React.RefAttributes<HTMLElement>>;
52
- export default Header;
@@ -1,14 +0,0 @@
1
- import { type ButtonItemProps } from '@atlaskit/menu';
2
- /**
3
- * __Button item__
4
- *
5
- * A button item renders an item wrapped in a button tag, used primarily when an
6
- * action does something other than changing routes.
7
- *
8
- * - [Examples](https://atlassian.design/components/side-navigation/examples#button-item)
9
- * - [Code](https://atlassian.design/components/side-navigation/code)
10
- *
11
- * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
12
- */
13
- declare const ButtonItem: React.ForwardRefExoticComponent<React.PropsWithoutRef<ButtonItemProps> & React.RefAttributes<HTMLElement>>;
14
- export default ButtonItem;
@@ -1,16 +0,0 @@
1
- import { type CustomItemProps, type CustomItemComponentProps as MenuCustomItemComponentProps } from '@atlaskit/menu';
2
- export interface CustomItemComponentProps extends MenuCustomItemComponentProps {
3
- }
4
- interface CustomItemPropsHack {
5
- <TComponentProps extends {}>(props: CustomItemProps<TComponentProps> & {
6
- ref?: any;
7
- } & Omit<TComponentProps, keyof CustomItemComponentProps>): JSX.Element | null;
8
- }
9
- /**
10
- * Used to support any custom items needed by products alongside the Header and Footer patterns.
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.
14
- */
15
- declare const CustomItem: CustomItemPropsHack;
16
- export default CustomItem;
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import type { ButtonItemProps } from '@atlaskit/menu';
3
- /**
4
- * __Go back item__
5
- *
6
- * A go back item is used to provide a customized "go back" button in nested
7
- * navigations.
8
- *
9
- * - [Examples](https://atlassian.design/components/side-navigation/examples#go-back-item)
10
- * - [Code](https://atlassian.design/components/side-navigation/code)
11
- *
12
- * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
13
- */
14
- declare const GoBackItem: React.ForwardRefExoticComponent<React.PropsWithoutRef<ButtonItemProps> & React.RefAttributes<HTMLElement>>;
15
- export default GoBackItem;
@@ -1,16 +0,0 @@
1
- import { type LinkItemProps } from '@atlaskit/menu';
2
- /**
3
- * __Link item__
4
- *
5
- * Renders an item wrapped in an anchor tag, useful when you have an item that
6
- * should change routes using native browser navigation. For SPA transitions use
7
- * a [custom item](https://atlassian.design/components/side-navigation/examples#custom-item)
8
- * with the respective router logic.
9
- *
10
- * - [Examples](https://atlassian.design/components/side-navigation/examples#link-item)
11
- * - [Code](https://atlassian.design/components/side-navigation/code)
12
- *
13
- * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
14
- */
15
- declare const LinkItem: React.ForwardRefExoticComponent<React.PropsWithoutRef<LinkItemProps> & React.RefAttributes<HTMLElement>>;
16
- export default LinkItem;
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import { type SkeletonItemProps } from '@atlaskit/menu';
3
- /**
4
- * __Skeleton item__
5
- *
6
- * A skeleton item can be used to reduce the perceived loading time.
7
- *
8
- * - [Examples](https://atlassian.design/components/side-navigation/examples#loading)
9
- * - [Code](https://atlassian.design/components/side-navigation/code)
10
- *
11
- * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
12
- */
13
- declare const SkeletonItem: (props: SkeletonItemProps) => React.JSX.Element | null;
14
- export default SkeletonItem;
@@ -1,44 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React from 'react';
6
- /**
7
- * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
8
- */
9
- export interface LoadingItemsProps {
10
- /**
11
- * Child items that will be loaded asynchronously.
12
- */
13
- children: React.ReactNode;
14
- /**
15
- * Fallback you want to show when loading.
16
- * You'll want to use the supplied [skeleton item](/packages/navigation/side-navigation/docs/skeleton-item)
17
- * or [skeleton heading item](/packages/navigation/side-navigation/docs/skeleton-heading-item) components.
18
- */
19
- fallback: React.ReactNode;
20
- /**
21
- * Use this to show either the loading fallback or the loaded contents.
22
- * It will cross fade between children and fallback when the value is flipped.
23
- */
24
- isLoading?: boolean;
25
- /**
26
- * A `testId` prop is provided for specified elements,
27
- * which is a unique string that appears as a data attribute `data-testid` in the rendered code,
28
- * serving as a hook for automated tests.
29
- *
30
- * Will set these elements when defined:
31
- * - The entering container - `{testId}--entering`
32
- * - The exiting container - `{testId}--exiting`
33
- */
34
- testId?: string;
35
- }
36
- /**
37
- * __Loading items__
38
- *
39
- * Loading items conditionally render based on the useShouldNestedElementRender() hook.
40
- *
41
- * @deprecated `@atlaskit/side-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
42
- */
43
- declare const LoadingItems: ({ children, isLoading, fallback, testId, }: LoadingItemsProps) => JSX.Element;
44
- export default LoadingItems;