@atlaskit/atlassian-navigation 3.6.2 → 4.1.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 (163) hide show
  1. package/CHANGELOG.md +733 -714
  2. package/README.md +7 -3
  3. package/afm-jira/tsconfig.json +58 -0
  4. package/dist/cjs/components/AtlassianNavigation/index.js +7 -2
  5. package/dist/cjs/components/AtlassianNavigation/skeleton.js +12 -7
  6. package/dist/cjs/components/BadgeContainer/index.js +3 -0
  7. package/dist/cjs/components/Create/index.js +8 -3
  8. package/dist/cjs/components/Create/skeleton.js +5 -0
  9. package/dist/cjs/components/IconButton/skeleton.js +7 -2
  10. package/dist/cjs/components/PrimaryButton/index.js +6 -1
  11. package/dist/cjs/components/PrimaryButton/skeleton.js +7 -1
  12. package/dist/cjs/components/PrimaryDropdownButton/index.js +3 -0
  13. package/dist/cjs/components/PrimaryItemsContainer/index.js +4 -1
  14. package/dist/cjs/components/PrimaryItemsContainer/skeleton.js +3 -0
  15. package/dist/cjs/components/ProductHome/custom-product-home.js +18 -8
  16. package/dist/cjs/components/ProductHome/product-home.js +24 -23
  17. package/dist/cjs/components/ProductHome/skeleton.js +17 -7
  18. package/dist/cjs/components/Search/index.js +13 -0
  19. package/dist/cjs/components/Search/skeleton.js +8 -0
  20. package/dist/cjs/components/SkeletonCreateButton/index.js +7 -2
  21. package/dist/cjs/components/SkeletonIconButton/index.js +10 -2
  22. package/dist/cjs/components/SkeletonPrimaryButton/index.js +12 -2
  23. package/dist/cjs/theme/default-theme.js +1 -7
  24. package/dist/es2019/components/AtlassianNavigation/index.js +7 -2
  25. package/dist/es2019/components/AtlassianNavigation/skeleton.js +12 -7
  26. package/dist/es2019/components/BadgeContainer/index.js +3 -0
  27. package/dist/es2019/components/Create/index.js +10 -5
  28. package/dist/es2019/components/Create/skeleton.js +6 -1
  29. package/dist/es2019/components/IconButton/skeleton.js +7 -1
  30. package/dist/es2019/components/PrimaryButton/index.js +6 -1
  31. package/dist/es2019/components/PrimaryButton/skeleton.js +7 -1
  32. package/dist/es2019/components/PrimaryDropdownButton/index.js +3 -0
  33. package/dist/es2019/components/PrimaryItemsContainer/index.js +4 -1
  34. package/dist/es2019/components/PrimaryItemsContainer/skeleton.js +3 -0
  35. package/dist/es2019/components/ProductHome/custom-product-home.js +23 -13
  36. package/dist/es2019/components/ProductHome/product-home.js +27 -24
  37. package/dist/es2019/components/ProductHome/skeleton.js +21 -11
  38. package/dist/es2019/components/Search/index.js +15 -2
  39. package/dist/es2019/components/Search/skeleton.js +10 -2
  40. package/dist/es2019/components/SkeletonCreateButton/index.js +7 -2
  41. package/dist/es2019/components/SkeletonIconButton/index.js +10 -2
  42. package/dist/es2019/components/SkeletonPrimaryButton/index.js +12 -1
  43. package/dist/es2019/theme/default-theme.js +1 -7
  44. package/dist/esm/components/AtlassianNavigation/index.js +7 -2
  45. package/dist/esm/components/AtlassianNavigation/skeleton.js +12 -7
  46. package/dist/esm/components/BadgeContainer/index.js +3 -0
  47. package/dist/esm/components/Create/index.js +8 -3
  48. package/dist/esm/components/Create/skeleton.js +5 -0
  49. package/dist/esm/components/IconButton/skeleton.js +7 -1
  50. package/dist/esm/components/PrimaryButton/index.js +6 -1
  51. package/dist/esm/components/PrimaryButton/skeleton.js +7 -1
  52. package/dist/esm/components/PrimaryDropdownButton/index.js +3 -0
  53. package/dist/esm/components/PrimaryItemsContainer/index.js +4 -1
  54. package/dist/esm/components/PrimaryItemsContainer/skeleton.js +3 -0
  55. package/dist/esm/components/ProductHome/custom-product-home.js +18 -8
  56. package/dist/esm/components/ProductHome/product-home.js +24 -23
  57. package/dist/esm/components/ProductHome/skeleton.js +17 -7
  58. package/dist/esm/components/Search/index.js +13 -0
  59. package/dist/esm/components/Search/skeleton.js +8 -0
  60. package/dist/esm/components/SkeletonCreateButton/index.js +7 -2
  61. package/dist/esm/components/SkeletonIconButton/index.js +10 -2
  62. package/dist/esm/components/SkeletonPrimaryButton/index.js +12 -1
  63. package/dist/esm/theme/default-theme.js +1 -7
  64. package/dist/types/components/AppSwitcher/index.d.ts +1 -1
  65. package/dist/types/components/AppSwitcher/types.d.ts +1 -1
  66. package/dist/types/components/AtlassianNavigation/index.d.ts +4 -1
  67. package/dist/types/components/AtlassianNavigation/skeleton.d.ts +4 -1
  68. package/dist/types/components/AtlassianNavigation/types.d.ts +26 -26
  69. package/dist/types/components/BadgeContainer/index.d.ts +4 -1
  70. package/dist/types/components/BadgeContainer/types.d.ts +1 -1
  71. package/dist/types/components/Create/index.d.ts +1 -1
  72. package/dist/types/components/Create/styles.d.ts +2 -2
  73. package/dist/types/components/Create/types.d.ts +1 -1
  74. package/dist/types/components/Help/types.d.ts +2 -2
  75. package/dist/types/components/IconButton/skeleton.d.ts +4 -1
  76. package/dist/types/components/IconButton/styles.d.ts +2 -2
  77. package/dist/types/components/IconButton/types.d.ts +2 -5
  78. package/dist/types/components/Notifications/types.d.ts +2 -2
  79. package/dist/types/components/PrimaryButton/skeleton.d.ts +4 -1
  80. package/dist/types/components/PrimaryButton/styles.d.ts +2 -2
  81. package/dist/types/components/PrimaryButton/types.d.ts +4 -5
  82. package/dist/types/components/PrimaryDropdownButton/types.d.ts +1 -1
  83. package/dist/types/components/PrimaryItemsContainer/index.d.ts +2 -2
  84. package/dist/types/components/PrimaryItemsContainer/skeleton.d.ts +1 -1
  85. package/dist/types/components/PrimaryItemsContainer/types.d.ts +1 -1
  86. package/dist/types/components/PrimaryItemsContainerV2/index.d.ts +2 -2
  87. package/dist/types/components/ProductHome/custom-product-home.d.ts +1 -1
  88. package/dist/types/components/ProductHome/product-home.d.ts +1 -1
  89. package/dist/types/components/ProductHome/skeleton.d.ts +4 -1
  90. package/dist/types/components/ProductHome/types.d.ts +24 -24
  91. package/dist/types/components/Profile/index.d.ts +1 -1
  92. package/dist/types/components/Profile/types.d.ts +1 -1
  93. package/dist/types/components/Search/index.d.ts +1 -1
  94. package/dist/types/components/Search/types.d.ts +1 -1
  95. package/dist/types/components/Settings/types.d.ts +1 -1
  96. package/dist/types/components/SignIn/index.d.ts +1 -1
  97. package/dist/types/components/SignIn/types.d.ts +1 -1
  98. package/dist/types/components/SkeletonCreateButton/index.d.ts +5 -2
  99. package/dist/types/components/SkeletonIconButton/index.d.ts +5 -2
  100. package/dist/types/components/SkeletonIconButton/types.d.ts +1 -1
  101. package/dist/types/components/SkeletonPrimaryButton/index.d.ts +4 -1
  102. package/dist/types/components/SkeletonPrimaryButton/types.d.ts +1 -1
  103. package/dist/types/controllers/overflow/index.d.ts +2 -2
  104. package/dist/types/controllers/overflow/types.d.ts +1 -1
  105. package/dist/types/index.d.ts +1 -1
  106. package/dist/types/skeleton-notification-button.d.ts +1 -1
  107. package/dist/types/skeleton-settings-button.d.ts +1 -1
  108. package/dist/types/skeleton-switcher-button.d.ts +1 -1
  109. package/dist/types/theme/default-theme.d.ts +1 -1
  110. package/dist/types/theme/theme-generator.d.ts +1 -1
  111. package/dist/types/theme/themes.d.ts +1 -1
  112. package/dist/types/theme/types.d.ts +1 -3
  113. package/dist/types-ts4.5/components/AppSwitcher/index.d.ts +1 -1
  114. package/dist/types-ts4.5/components/AppSwitcher/types.d.ts +1 -1
  115. package/dist/types-ts4.5/components/AtlassianNavigation/index.d.ts +4 -1
  116. package/dist/types-ts4.5/components/AtlassianNavigation/skeleton.d.ts +4 -1
  117. package/dist/types-ts4.5/components/AtlassianNavigation/types.d.ts +26 -26
  118. package/dist/types-ts4.5/components/BadgeContainer/index.d.ts +4 -1
  119. package/dist/types-ts4.5/components/BadgeContainer/types.d.ts +1 -1
  120. package/dist/types-ts4.5/components/Create/index.d.ts +1 -1
  121. package/dist/types-ts4.5/components/Create/styles.d.ts +2 -2
  122. package/dist/types-ts4.5/components/Create/types.d.ts +1 -1
  123. package/dist/types-ts4.5/components/Help/types.d.ts +2 -2
  124. package/dist/types-ts4.5/components/IconButton/skeleton.d.ts +4 -1
  125. package/dist/types-ts4.5/components/IconButton/styles.d.ts +2 -2
  126. package/dist/types-ts4.5/components/IconButton/types.d.ts +2 -5
  127. package/dist/types-ts4.5/components/Notifications/types.d.ts +2 -2
  128. package/dist/types-ts4.5/components/PrimaryButton/skeleton.d.ts +4 -1
  129. package/dist/types-ts4.5/components/PrimaryButton/styles.d.ts +2 -2
  130. package/dist/types-ts4.5/components/PrimaryButton/types.d.ts +4 -5
  131. package/dist/types-ts4.5/components/PrimaryDropdownButton/types.d.ts +1 -1
  132. package/dist/types-ts4.5/components/PrimaryItemsContainer/index.d.ts +2 -2
  133. package/dist/types-ts4.5/components/PrimaryItemsContainer/skeleton.d.ts +1 -1
  134. package/dist/types-ts4.5/components/PrimaryItemsContainer/types.d.ts +1 -1
  135. package/dist/types-ts4.5/components/PrimaryItemsContainerV2/index.d.ts +2 -2
  136. package/dist/types-ts4.5/components/ProductHome/custom-product-home.d.ts +1 -1
  137. package/dist/types-ts4.5/components/ProductHome/product-home.d.ts +1 -1
  138. package/dist/types-ts4.5/components/ProductHome/skeleton.d.ts +4 -1
  139. package/dist/types-ts4.5/components/ProductHome/types.d.ts +24 -24
  140. package/dist/types-ts4.5/components/Profile/index.d.ts +1 -1
  141. package/dist/types-ts4.5/components/Profile/types.d.ts +1 -1
  142. package/dist/types-ts4.5/components/Search/index.d.ts +1 -1
  143. package/dist/types-ts4.5/components/Search/types.d.ts +1 -1
  144. package/dist/types-ts4.5/components/Settings/types.d.ts +1 -1
  145. package/dist/types-ts4.5/components/SignIn/index.d.ts +1 -1
  146. package/dist/types-ts4.5/components/SignIn/types.d.ts +1 -1
  147. package/dist/types-ts4.5/components/SkeletonCreateButton/index.d.ts +5 -2
  148. package/dist/types-ts4.5/components/SkeletonIconButton/index.d.ts +5 -2
  149. package/dist/types-ts4.5/components/SkeletonIconButton/types.d.ts +1 -1
  150. package/dist/types-ts4.5/components/SkeletonPrimaryButton/index.d.ts +4 -1
  151. package/dist/types-ts4.5/components/SkeletonPrimaryButton/types.d.ts +1 -1
  152. package/dist/types-ts4.5/controllers/overflow/index.d.ts +2 -2
  153. package/dist/types-ts4.5/controllers/overflow/types.d.ts +1 -1
  154. package/dist/types-ts4.5/index.d.ts +1 -1
  155. package/dist/types-ts4.5/skeleton-notification-button.d.ts +1 -1
  156. package/dist/types-ts4.5/skeleton-settings-button.d.ts +1 -1
  157. package/dist/types-ts4.5/skeleton-switcher-button.d.ts +1 -1
  158. package/dist/types-ts4.5/theme/default-theme.d.ts +1 -1
  159. package/dist/types-ts4.5/theme/theme-generator.d.ts +1 -1
  160. package/dist/types-ts4.5/theme/themes.d.ts +1 -1
  161. package/dist/types-ts4.5/theme/types.d.ts +1 -3
  162. package/package.json +108 -113
  163. package/report.api.md +162 -183
@@ -1,6 +1,9 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { jsx } from '@emotion/react';
3
- import { SkeletonCreateButtonProps } from './types';
6
+ import { type SkeletonCreateButtonProps } from './types';
4
7
  /**
5
8
  * __Skeleton create button__
6
9
  *
@@ -11,4 +14,4 @@ import { SkeletonCreateButtonProps } from './types';
11
14
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
12
15
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
13
16
  */
14
- export declare const SkeletonCreateButton: ({ text, testId, }: SkeletonCreateButtonProps) => jsx.JSX.Element;
17
+ export declare const SkeletonCreateButton: ({ text, testId }: SkeletonCreateButtonProps) => jsx.JSX.Element;
@@ -1,6 +1,9 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { jsx } from '@emotion/react';
3
- import { SkeletonIconButtonProps } from './types';
6
+ import { type SkeletonIconButtonProps } from './types';
4
7
  /**
5
8
  * __Skeleton icon button__
6
9
  *
@@ -11,4 +14,4 @@ import { SkeletonIconButtonProps } from './types';
11
14
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
12
15
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
13
16
  */
14
- export declare const SkeletonIconButton: ({ children, testId, }: SkeletonIconButtonProps) => jsx.JSX.Element;
17
+ export declare const SkeletonIconButton: ({ children, testId }: SkeletonIconButtonProps) => jsx.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
  export type SkeletonIconButtonProps = {
3
3
  /**
4
4
  * Content to be placed inside the skeleton.
@@ -1,6 +1,9 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { jsx } from '@emotion/react';
3
- import { SkeletonPrimaryButtonProps } from './types';
6
+ import { type SkeletonPrimaryButtonProps } from './types';
4
7
  /**
5
8
  * __Skeleton primary button__
6
9
  *
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
  export type SkeletonPrimaryButtonProps = {
3
3
  /**
4
4
  * Text content to be displayed inside the skeleton button.
@@ -1,7 +1,7 @@
1
1
  /// <reference types="lodash" />
2
- import React, { ReactNode } from 'react';
2
+ import React, { type ReactNode } from 'react';
3
3
  import noop from '@atlaskit/ds-lib/noop';
4
- import { OverflowProviderProps } from './types';
4
+ import { type OverflowProviderProps } from './types';
5
5
  interface OverflowContext {
6
6
  /**
7
7
  * Returns `true` when the navigation item is visible,
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
  export type OverflowProviderProps = {
3
3
  children: ReactNode;
4
4
  isVisible: boolean;
@@ -15,7 +15,7 @@ export type { PrimaryDropdownButtonProps } from './components/PrimaryDropdownBut
15
15
  export { IconButton } from './components/IconButton';
16
16
  export type { IconButtonProps } from './components/IconButton/types';
17
17
  export { CustomProductHome, ProductHome } from './components/ProductHome';
18
- export type { CustomProductHomeProps, ProductHomeProps, } from './components/ProductHome/types';
18
+ export type { CustomProductHomeProps, ProductHomeProps } from './components/ProductHome/types';
19
19
  export { Profile } from './components/Profile';
20
20
  export type { ProfileProps } from './components/Profile/types';
21
21
  export { Search } from './components/Search';
@@ -16,4 +16,4 @@ export type SkeletonNotificationButtonProps = {
16
16
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
17
17
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
18
18
  */
19
- export declare const SkeletonNotificationButton: ({ label, }: SkeletonNotificationButtonProps) => JSX.Element;
19
+ export declare const SkeletonNotificationButton: ({ label }: SkeletonNotificationButtonProps) => JSX.Element;
@@ -16,4 +16,4 @@ export type SkeletonSettingsButtonProps = {
16
16
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
17
17
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
18
18
  */
19
- export declare const SkeletonSettingsButton: ({ label, }: SkeletonSettingsButtonProps) => JSX.Element;
19
+ export declare const SkeletonSettingsButton: ({ label }: SkeletonSettingsButtonProps) => JSX.Element;
@@ -16,4 +16,4 @@ export type SkeletonSwitcherButtonProps = {
16
16
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
17
17
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
18
18
  */
19
- export declare const SkeletonSwitcherButton: ({ label, }: SkeletonSwitcherButtonProps) => JSX.Element;
19
+ export declare const SkeletonSwitcherButton: ({ label }: SkeletonSwitcherButtonProps) => JSX.Element;
@@ -1,4 +1,4 @@
1
- import { Mode } from './types';
1
+ import { type Mode } from './types';
2
2
  declare const defaultTheme: {
3
3
  mode: Mode;
4
4
  };
@@ -1,3 +1,3 @@
1
- import { GenerateThemeArgs, NavigationTheme } from './types';
1
+ import { type GenerateThemeArgs, type NavigationTheme } from './types';
2
2
  export declare const generateTheme: (themeColors: GenerateThemeArgs) => NavigationTheme;
3
3
  export default generateTheme;
@@ -1,3 +1,3 @@
1
- import { NavigationTheme } from './types';
1
+ import { type NavigationTheme } from './types';
2
2
  export declare const atlassianTheme: NavigationTheme;
3
3
  export declare const defaultTheme: NavigationTheme;
@@ -1,4 +1,4 @@
1
- import { CSSObject } from '@emotion/react';
1
+ import { type CSSObject } from '@emotion/react';
2
2
  export type CSSProperties = CSSObject & {
3
3
  backgroundColor: string;
4
4
  color: string;
@@ -19,8 +19,6 @@ export type IconButtonCSS = ButtonCSSContext;
19
19
  export type PrimaryButtonCSS = ButtonCSSContext;
20
20
  export type NavigationCSS = CSSProperties;
21
21
  type LogoStyleProps = {
22
- iconGradientStart?: string;
23
- iconGradientStop?: string;
24
22
  iconColor?: string;
25
23
  textColor?: string;
26
24
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { AppSwitcherProps } from './types';
2
+ import { type AppSwitcherProps } from './types';
3
3
  /**
4
4
  * _App switcher__
5
5
  *
@@ -1,2 +1,2 @@
1
- import { BaseIconButtonProps } from '../IconButton/types';
1
+ import { type BaseIconButtonProps } from '../IconButton/types';
2
2
  export type AppSwitcherProps = BaseIconButtonProps;
@@ -1,6 +1,9 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { jsx } from '@emotion/react';
3
- import { AtlassianNavigationProps } from './types';
6
+ import { type AtlassianNavigationProps } from './types';
4
7
  /**
5
8
  * __Atlassian navigation__
6
9
  *
@@ -1,6 +1,9 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { jsx } from '@emotion/react';
3
- import { NavigationSkeletonProps } from './types';
6
+ import { type NavigationSkeletonProps } from './types';
4
7
  /**
5
8
  * __Navigation skeleton__
6
9
  *
@@ -1,5 +1,5 @@
1
- import React, { ReactNode, ReactNodeArray } from 'react';
2
- import { NavigationTheme } from '../../theme';
1
+ import { type default as React, type ReactNode, type ReactNodeArray } from 'react';
2
+ import { type NavigationTheme } from '../../theme';
3
3
  export interface AtlassianNavigationProps {
4
4
  /**
5
5
  * Describes the specific role of this navigation component for users viewing the page with a screen
@@ -55,18 +55,18 @@ export interface AtlassianNavigationProps {
55
55
  */
56
56
  theme?: NavigationTheme;
57
57
  /**
58
- A `testId` prop is provided for specified elements,
59
- which is a unique string that appears as a data attribute `data-testid` in the rendered code,
60
- serving as a hook for automated tests.
61
-
62
- Will set these elements when defined:
63
-
64
- - Header element - `{testId}-header`
65
- - Primary actions container - `{testId}-primary-actions`
66
- - Secondary actions container - `{testId}-secondary-actions`
67
- - Overflow menu popup - `{testId}-overflow-menu-popup`
68
- - Overflow menu button - `{testId}-overflow-menu-trigger`
69
- */
58
+ A `testId` prop is provided for specified elements,
59
+ which is a unique string that appears as a data attribute `data-testid` in the rendered code,
60
+ serving as a hook for automated tests.
61
+
62
+ Will set these elements when defined:
63
+
64
+ - Header element - `{testId}-header`
65
+ - Primary actions container - `{testId}-primary-actions`
66
+ - Secondary actions container - `{testId}-secondary-actions`
67
+ - Overflow menu popup - `{testId}-overflow-menu-popup`
68
+ - Overflow menu button - `{testId}-overflow-menu-trigger`
69
+ */
70
70
  testId?: string;
71
71
  }
72
72
  export interface NavigationSkeletonProps {
@@ -91,17 +91,17 @@ export interface NavigationSkeletonProps {
91
91
  */
92
92
  theme?: NavigationTheme;
93
93
  /**
94
- A `testId` prop is provided for specified elements,
95
- which is a unique string that appears as a data attribute `data-testid` in the rendered code,
96
- serving as a hook for automated tests.
97
-
98
- Will set these elements when defined:
99
-
100
- - Header element - `{testId}-header`
101
- - Primary actions container - `{testId}-primary-actions`
102
- - Secondary actions container - `{testId}-secondary-actions`
103
- - Overflow menu popup - `{testId}-overflow-menu-popup`
104
- - Overflow menu button - `{testId}-overflow-menu-trigger`
105
- */
94
+ A `testId` prop is provided for specified elements,
95
+ which is a unique string that appears as a data attribute `data-testid` in the rendered code,
96
+ serving as a hook for automated tests.
97
+
98
+ Will set these elements when defined:
99
+
100
+ - Header element - `{testId}-header`
101
+ - Primary actions container - `{testId}-primary-actions`
102
+ - Secondary actions container - `{testId}-secondary-actions`
103
+ - Overflow menu popup - `{testId}-overflow-menu-popup`
104
+ - Overflow menu button - `{testId}-overflow-menu-trigger`
105
+ */
106
106
  testId?: string;
107
107
  }
@@ -1,4 +1,7 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { jsx } from '@emotion/react';
3
- import { BadgeProps } from './types';
6
+ import { type BadgeProps } from './types';
4
7
  export declare const BadgeContainer: (props: BadgeProps) => jsx.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { ComponentType, ReactNode } from 'react';
1
+ import { type ComponentType, type ReactNode } from 'react';
2
2
  export type BadgeProps = {
3
3
  id: string;
4
4
  badge: ComponentType<{}>;
@@ -1,5 +1,5 @@
1
1
  import { jsx } from '@emotion/react';
2
- import { CreateProps } from './types';
2
+ import { type CreateProps } from './types';
3
3
  /**
4
4
  * _Create__
5
5
  *
@@ -1,3 +1,3 @@
1
- import { ThemeProps, ThemeTokens } from '@atlaskit/button/types';
2
- import { NavigationTheme } from '../../theme';
1
+ import { type ThemeProps, type ThemeTokens } from '@atlaskit/button/types';
2
+ import { type NavigationTheme } from '../../theme';
3
3
  export declare const getCreateButtonTheme: ({ mode: { create } }: NavigationTheme) => (current: (props: ThemeProps) => ThemeTokens, props: ThemeProps) => ThemeTokens;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export interface CreateProps {
3
3
  /**
4
4
  * Primary text for the call to action.
@@ -1,5 +1,5 @@
1
- import { ComponentType } from 'react';
2
- import { BaseIconButtonProps } from '../IconButton/types';
1
+ import { type ComponentType } from 'react';
2
+ import { type BaseIconButtonProps } from '../IconButton/types';
3
3
  export type HelpProps = BaseIconButtonProps & {
4
4
  /**
5
5
  * Component to be used for the badge.
@@ -1,4 +1,7 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { jsx } from '@emotion/react';
3
- import { IconButtonSkeletonProps } from './types';
6
+ import { type IconButtonSkeletonProps } from './types';
4
7
  export declare const IconButtonSkeleton: ({ className, marginLeft, marginRight, size, }: IconButtonSkeletonProps) => jsx.JSX.Element;
@@ -1,3 +1,3 @@
1
- import { ThemeProps, ThemeTokens } from '@atlaskit/button/types';
2
- import { NavigationTheme } from '../../theme';
1
+ import { type ThemeProps, type ThemeTokens } from '@atlaskit/button/types';
2
+ import { type NavigationTheme } from '../../theme';
3
3
  export declare const getIconButtonTheme: ({ mode: { iconButton } }: NavigationTheme) => (current: (props: ThemeProps) => ThemeTokens, props: ThemeProps) => ThemeTokens;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { CustomThemeButtonProps } from '@atlaskit/button/types';
2
+ import { type CustomThemeButtonProps } from '@atlaskit/button/types';
3
3
  export type IconButtonProps = BaseIconButtonProps & {
4
4
  /**
5
5
  * Icon for the button.
@@ -60,12 +60,9 @@ export interface BaseIconButtonProps {
60
60
  target?: string;
61
61
  /**
62
62
  * Allows for overriding the component used to render the button.
63
- *
64
63
  * This is primarily intended for compatibility with custom
65
64
  * routing libraries when using the `href` prop.
66
- *
67
- * For further usage information, refer to the [documentation for button](https://atlassian.design/components/button/code).
68
- *
65
+ * For further usage information, refer to the [documentation for button](/components/button/code).
69
66
  * @example
70
67
  * ```tsx
71
68
  * <Settings
@@ -1,5 +1,5 @@
1
- import { ComponentType } from 'react';
2
- import { BaseIconButtonProps } from '../IconButton/types';
1
+ import { type ComponentType } from 'react';
2
+ import { type BaseIconButtonProps } from '../IconButton/types';
3
3
  export type NotificationsProps = BaseIconButtonProps & {
4
4
  /**
5
5
  * Component to be used for the badge.
@@ -1,4 +1,7 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { jsx } from '@emotion/react';
3
- import { PrimaryButtonSkeletonProps } from './types';
6
+ import { type PrimaryButtonSkeletonProps } from './types';
4
7
  export declare const PrimaryButtonSkeleton: (props: PrimaryButtonSkeletonProps) => jsx.JSX.Element;
@@ -1,3 +1,3 @@
1
- import { ThemeProps, ThemeTokens } from '@atlaskit/button/types';
2
- import { NavigationTheme } from '../../theme';
1
+ import { type ThemeProps, type ThemeTokens } from '@atlaskit/button/types';
2
+ import { type NavigationTheme } from '../../theme';
3
3
  export declare const getPrimaryButtonTheme: ({ mode: { primaryButton } }: NavigationTheme) => (current: (props: ThemeProps) => ThemeTokens, props: ThemeProps) => ThemeTokens;
@@ -1,13 +1,12 @@
1
- import { AllHTMLAttributes, ComponentType, ElementType } from 'react';
2
- import { CustomThemeButtonProps } from '@atlaskit/button/types';
1
+ import { type AllHTMLAttributes, type ComponentType, type ElementType } from 'react';
2
+ import { type CustomThemeButtonProps } from '@atlaskit/button/types';
3
3
  export type PrimaryButtonProps = Omit<CustomThemeButtonProps, 'appearance' | 'onClick'> & {
4
4
  /**
5
5
  * Allows for overriding the component used to render the button.
6
- *
7
- * This is primarily intended for compatibility with custom
6
+ * This is primarily intended for compatibility with custom
8
7
  * routing libraries when using the `href` prop.
9
8
  *
10
- * For further usage information, refer to the [documentation for button](https://atlassian.design/components/button/code).
9
+ * For further usage information, refer to the [documentation for button](https://atlassian.design/components/button/button-legacy/code).
11
10
  *
12
11
  * @example
13
12
  * ```tsx
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { PrimaryButtonProps } from '../PrimaryButton/types';
2
+ import { type PrimaryButtonProps } from '../PrimaryButton/types';
3
3
  export type PrimaryDropdownButtonProps = Omit<PrimaryButtonProps, 'iconAfter'> & {
4
4
  /**
5
5
  * Will set the appearance of the button to look highlighted.
@@ -1,6 +1,6 @@
1
1
  import { jsx } from '@emotion/react';
2
- import { NavigationTheme } from '../../theme';
3
- import { PrimaryItemsContainerProps } from './types';
2
+ import { type NavigationTheme } from '../../theme';
3
+ import { type PrimaryItemsContainerProps } from './types';
4
4
  export declare const PrimaryItemsContainer: ({ moreLabel, items, create: Create, theme, testId, }: PrimaryItemsContainerProps & {
5
5
  theme: NavigationTheme;
6
6
  }) => jsx.JSX.Element;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { jsx } from '@emotion/react';
3
- import { PrimaryItemsContainerSkeletonProps } from './types';
3
+ import { type PrimaryItemsContainerSkeletonProps } from './types';
4
4
  export declare const PrimaryItemsContainerSkeleton: import("react").MemoExoticComponent<({ count }: PrimaryItemsContainerSkeletonProps) => jsx.JSX.Element>;
@@ -1,4 +1,4 @@
1
- import { ComponentType, ReactNode, ReactNodeArray } from 'react';
1
+ import { type ComponentType, type ReactNode, type ReactNodeArray } from 'react';
2
2
  export type PrimaryItemsContainerProps = {
3
3
  moreLabel: ReactNode;
4
4
  items: ReactNodeArray;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { NavigationTheme } from '../../theme';
3
- import { PrimaryItemsContainerProps } from '../PrimaryItemsContainer/types';
2
+ import { type NavigationTheme } from '../../theme';
3
+ import { type PrimaryItemsContainerProps } from '../PrimaryItemsContainer/types';
4
4
  export declare const PrimaryItemsContainer: React.MemoExoticComponent<({ moreLabel, items, create: Create, theme, testId, }: PrimaryItemsContainerProps & {
5
5
  theme: NavigationTheme;
6
6
  }) => JSX.Element>;
@@ -1,5 +1,5 @@
1
1
  import { jsx } from '@emotion/react';
2
- import { CustomProductHomeProps } from './types';
2
+ import { type CustomProductHomeProps } from './types';
3
3
  /**
4
4
  * __Custom product home__
5
5
  *
@@ -1,5 +1,5 @@
1
1
  import { jsx } from '@emotion/react';
2
- import { ProductHomeProps } from './types';
2
+ import { type ProductHomeProps } from './types';
3
3
  /**
4
4
  * __Product home__
5
5
  *
@@ -1,5 +1,8 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { jsx } from '@emotion/react';
3
- export declare const ProductHomeSkeleton: ({ showSiteName, }: {
6
+ export declare const ProductHomeSkeleton: ({ showSiteName }: {
4
7
  showSiteName: boolean;
5
8
  }) => jsx.JSX.Element;
@@ -1,5 +1,5 @@
1
- import { ComponentType, MouseEvent } from 'react';
2
- import { LogoProps } from '@atlaskit/logo';
1
+ import { type ComponentType, type MouseEvent } from 'react';
2
+ import { type LogoProps } from '@atlaskit/logo';
3
3
  export interface ProductHomeProps {
4
4
  /**
5
5
  * The product icon.
@@ -33,17 +33,17 @@ export interface ProductHomeProps {
33
33
  */
34
34
  siteTitle?: string;
35
35
  /**
36
- A `testId` prop is provided for specified elements,
37
- which is a unique string that appears as a data attribute `data-testid` in the rendered code,
38
- serving as a hook for automated tests.
39
-
40
- Will set these elements when defined:
41
-
42
- - Root element of the component - `{testId}-container`
43
- - Product logo shown at large screen sizes - `{testId}-logo`
44
- - Product icon shown at small screen sizes - `{testId}-icon`
45
- - Site title - `{testId}-site-title`
46
- */
36
+ A `testId` prop is provided for specified elements,
37
+ which is a unique string that appears as a data attribute `data-testid` in the rendered code,
38
+ serving as a hook for automated tests.
39
+
40
+ Will set these elements when defined:
41
+
42
+ - Root element of the component - `{testId}-container`
43
+ - Product logo shown at large screen sizes - `{testId}-logo`
44
+ - Product icon shown at small screen sizes - `{testId}-icon`
45
+ - Site title - `{testId}-site-title`
46
+ */
47
47
  testId?: string;
48
48
  }
49
49
  export interface CustomProductHomeProps {
@@ -85,16 +85,16 @@ export interface CustomProductHomeProps {
85
85
  */
86
86
  siteTitle?: string;
87
87
  /**
88
- A `testId` prop is provided for specified elements,
89
- which is a unique string that appears as a data attribute `data-testid` in the rendered code,
90
- serving as a hook for automated tests.
91
-
92
- Will set these elements when defined:
93
-
94
- - Root element of the component - `{testId}-container`
95
- - Product logo shown at large screen sizes - `{testId}-logo`
96
- - Product icon shown at small screen sizes - `{testId}-icon`
97
- - Site title - `{testId}-site-title`
98
- */
88
+ A `testId` prop is provided for specified elements,
89
+ which is a unique string that appears as a data attribute `data-testid` in the rendered code,
90
+ serving as a hook for automated tests.
91
+
92
+ Will set these elements when defined:
93
+
94
+ - Root element of the component - `{testId}-container`
95
+ - Product logo shown at large screen sizes - `{testId}-logo`
96
+ - Product icon shown at small screen sizes - `{testId}-icon`
97
+ - Site title - `{testId}-site-title`
98
+ */
99
99
  testId?: string;
100
100
  }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ProfileProps } from './types';
2
+ import { type ProfileProps } from './types';
3
3
  /**
4
4
  * __Profile__
5
5
  *
@@ -1,2 +1,2 @@
1
- import { IconButtonProps } from '../IconButton/types';
1
+ import { type IconButtonProps } from '../IconButton/types';
2
2
  export type ProfileProps = IconButtonProps;
@@ -1,5 +1,5 @@
1
1
  import { jsx } from '@emotion/react';
2
- import { SearchProps } from './types';
2
+ import { type SearchProps } from './types';
3
3
  /**
4
4
  * __Search__
5
5
  *
@@ -1,4 +1,4 @@
1
- import { BaseIconButtonProps } from '../IconButton/types';
1
+ import { type BaseIconButtonProps } from '../IconButton/types';
2
2
  export type SearchProps = BaseIconButtonProps & {
3
3
  /**
4
4
  * Placeholder text for the search textbox.
@@ -1,2 +1,2 @@
1
- import { BaseIconButtonProps } from '../IconButton/types';
1
+ import { type BaseIconButtonProps } from '../IconButton/types';
2
2
  export type SettingsProps = BaseIconButtonProps;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { SignInProps } from './types';
2
+ import { type SignInProps } from './types';
3
3
  /**
4
4
  * __Sign in__
5
5
  *
@@ -1,2 +1,2 @@
1
- import { BaseIconButtonProps } from '../IconButton/types';
1
+ import { type BaseIconButtonProps } from '../IconButton/types';
2
2
  export type SignInProps = BaseIconButtonProps;
@@ -1,6 +1,9 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { jsx } from '@emotion/react';
3
- import { SkeletonCreateButtonProps } from './types';
6
+ import { type SkeletonCreateButtonProps } from './types';
4
7
  /**
5
8
  * __Skeleton create button__
6
9
  *
@@ -11,4 +14,4 @@ import { SkeletonCreateButtonProps } from './types';
11
14
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
12
15
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
13
16
  */
14
- export declare const SkeletonCreateButton: ({ text, testId, }: SkeletonCreateButtonProps) => jsx.JSX.Element;
17
+ export declare const SkeletonCreateButton: ({ text, testId }: SkeletonCreateButtonProps) => jsx.JSX.Element;
@@ -1,6 +1,9 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { jsx } from '@emotion/react';
3
- import { SkeletonIconButtonProps } from './types';
6
+ import { type SkeletonIconButtonProps } from './types';
4
7
  /**
5
8
  * __Skeleton icon button__
6
9
  *
@@ -11,4 +14,4 @@ import { SkeletonIconButtonProps } from './types';
11
14
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
12
15
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
13
16
  */
14
- export declare const SkeletonIconButton: ({ children, testId, }: SkeletonIconButtonProps) => jsx.JSX.Element;
17
+ export declare const SkeletonIconButton: ({ children, testId }: SkeletonIconButtonProps) => jsx.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
  export type SkeletonIconButtonProps = {
3
3
  /**
4
4
  * Content to be placed inside the skeleton.