@atlaskit/atlassian-navigation 3.6.2 → 4.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 (136) hide show
  1. package/CHANGELOG.md +720 -714
  2. package/afm-jira/tsconfig.json +58 -0
  3. package/dist/cjs/components/AtlassianNavigation/index.js +1 -0
  4. package/dist/cjs/components/AtlassianNavigation/skeleton.js +6 -5
  5. package/dist/cjs/components/Create/skeleton.js +1 -0
  6. package/dist/cjs/components/IconButton/skeleton.js +4 -1
  7. package/dist/cjs/components/PrimaryButton/index.js +1 -0
  8. package/dist/cjs/components/PrimaryButton/skeleton.js +4 -1
  9. package/dist/cjs/components/ProductHome/custom-product-home.js +9 -6
  10. package/dist/cjs/components/ProductHome/product-home.js +12 -18
  11. package/dist/cjs/components/ProductHome/skeleton.js +8 -4
  12. package/dist/cjs/components/Search/index.js +1 -0
  13. package/dist/cjs/components/Search/skeleton.js +1 -0
  14. package/dist/cjs/components/SkeletonCreateButton/index.js +2 -1
  15. package/dist/cjs/components/SkeletonIconButton/index.js +1 -0
  16. package/dist/cjs/components/SkeletonPrimaryButton/index.js +3 -1
  17. package/dist/cjs/theme/default-theme.js +1 -7
  18. package/dist/es2019/components/AtlassianNavigation/index.js +1 -0
  19. package/dist/es2019/components/AtlassianNavigation/skeleton.js +6 -5
  20. package/dist/es2019/components/Create/skeleton.js +1 -0
  21. package/dist/es2019/components/IconButton/skeleton.js +4 -1
  22. package/dist/es2019/components/PrimaryButton/index.js +1 -0
  23. package/dist/es2019/components/PrimaryButton/skeleton.js +4 -1
  24. package/dist/es2019/components/ProductHome/custom-product-home.js +9 -6
  25. package/dist/es2019/components/ProductHome/product-home.js +10 -14
  26. package/dist/es2019/components/ProductHome/skeleton.js +8 -4
  27. package/dist/es2019/components/Search/index.js +1 -0
  28. package/dist/es2019/components/Search/skeleton.js +1 -0
  29. package/dist/es2019/components/SkeletonCreateButton/index.js +2 -1
  30. package/dist/es2019/components/SkeletonIconButton/index.js +1 -0
  31. package/dist/es2019/components/SkeletonPrimaryButton/index.js +3 -1
  32. package/dist/es2019/theme/default-theme.js +1 -7
  33. package/dist/esm/components/AtlassianNavigation/index.js +1 -0
  34. package/dist/esm/components/AtlassianNavigation/skeleton.js +6 -5
  35. package/dist/esm/components/Create/skeleton.js +1 -0
  36. package/dist/esm/components/IconButton/skeleton.js +4 -1
  37. package/dist/esm/components/PrimaryButton/index.js +1 -0
  38. package/dist/esm/components/PrimaryButton/skeleton.js +4 -1
  39. package/dist/esm/components/ProductHome/custom-product-home.js +9 -6
  40. package/dist/esm/components/ProductHome/product-home.js +12 -18
  41. package/dist/esm/components/ProductHome/skeleton.js +8 -4
  42. package/dist/esm/components/Search/index.js +1 -0
  43. package/dist/esm/components/Search/skeleton.js +1 -0
  44. package/dist/esm/components/SkeletonCreateButton/index.js +2 -1
  45. package/dist/esm/components/SkeletonIconButton/index.js +1 -0
  46. package/dist/esm/components/SkeletonPrimaryButton/index.js +3 -1
  47. package/dist/esm/theme/default-theme.js +1 -7
  48. package/dist/types/components/AppSwitcher/index.d.ts +1 -1
  49. package/dist/types/components/AppSwitcher/types.d.ts +1 -1
  50. package/dist/types/components/AtlassianNavigation/index.d.ts +1 -1
  51. package/dist/types/components/AtlassianNavigation/skeleton.d.ts +1 -1
  52. package/dist/types/components/AtlassianNavigation/types.d.ts +2 -2
  53. package/dist/types/components/BadgeContainer/index.d.ts +1 -1
  54. package/dist/types/components/BadgeContainer/types.d.ts +1 -1
  55. package/dist/types/components/Create/index.d.ts +1 -1
  56. package/dist/types/components/Create/styles.d.ts +2 -2
  57. package/dist/types/components/Create/types.d.ts +1 -1
  58. package/dist/types/components/Help/types.d.ts +2 -2
  59. package/dist/types/components/IconButton/skeleton.d.ts +1 -1
  60. package/dist/types/components/IconButton/styles.d.ts +2 -2
  61. package/dist/types/components/IconButton/types.d.ts +2 -5
  62. package/dist/types/components/Notifications/types.d.ts +2 -2
  63. package/dist/types/components/PrimaryButton/skeleton.d.ts +1 -1
  64. package/dist/types/components/PrimaryButton/styles.d.ts +2 -2
  65. package/dist/types/components/PrimaryButton/types.d.ts +4 -5
  66. package/dist/types/components/PrimaryDropdownButton/types.d.ts +1 -1
  67. package/dist/types/components/PrimaryItemsContainer/index.d.ts +2 -2
  68. package/dist/types/components/PrimaryItemsContainer/skeleton.d.ts +1 -1
  69. package/dist/types/components/PrimaryItemsContainer/types.d.ts +1 -1
  70. package/dist/types/components/PrimaryItemsContainerV2/index.d.ts +2 -2
  71. package/dist/types/components/ProductHome/custom-product-home.d.ts +1 -1
  72. package/dist/types/components/ProductHome/product-home.d.ts +1 -1
  73. package/dist/types/components/ProductHome/types.d.ts +2 -2
  74. package/dist/types/components/Profile/index.d.ts +1 -1
  75. package/dist/types/components/Profile/types.d.ts +1 -1
  76. package/dist/types/components/Search/index.d.ts +1 -1
  77. package/dist/types/components/Search/types.d.ts +1 -1
  78. package/dist/types/components/Settings/types.d.ts +1 -1
  79. package/dist/types/components/SignIn/index.d.ts +1 -1
  80. package/dist/types/components/SignIn/types.d.ts +1 -1
  81. package/dist/types/components/SkeletonCreateButton/index.d.ts +1 -1
  82. package/dist/types/components/SkeletonIconButton/index.d.ts +1 -1
  83. package/dist/types/components/SkeletonIconButton/types.d.ts +1 -1
  84. package/dist/types/components/SkeletonPrimaryButton/index.d.ts +1 -1
  85. package/dist/types/components/SkeletonPrimaryButton/types.d.ts +1 -1
  86. package/dist/types/controllers/overflow/index.d.ts +2 -2
  87. package/dist/types/controllers/overflow/types.d.ts +1 -1
  88. package/dist/types/theme/default-theme.d.ts +1 -1
  89. package/dist/types/theme/theme-generator.d.ts +1 -1
  90. package/dist/types/theme/themes.d.ts +1 -1
  91. package/dist/types/theme/types.d.ts +1 -3
  92. package/dist/types-ts4.5/components/AppSwitcher/index.d.ts +1 -1
  93. package/dist/types-ts4.5/components/AppSwitcher/types.d.ts +1 -1
  94. package/dist/types-ts4.5/components/AtlassianNavigation/index.d.ts +1 -1
  95. package/dist/types-ts4.5/components/AtlassianNavigation/skeleton.d.ts +1 -1
  96. package/dist/types-ts4.5/components/AtlassianNavigation/types.d.ts +2 -2
  97. package/dist/types-ts4.5/components/BadgeContainer/index.d.ts +1 -1
  98. package/dist/types-ts4.5/components/BadgeContainer/types.d.ts +1 -1
  99. package/dist/types-ts4.5/components/Create/index.d.ts +1 -1
  100. package/dist/types-ts4.5/components/Create/styles.d.ts +2 -2
  101. package/dist/types-ts4.5/components/Create/types.d.ts +1 -1
  102. package/dist/types-ts4.5/components/Help/types.d.ts +2 -2
  103. package/dist/types-ts4.5/components/IconButton/skeleton.d.ts +1 -1
  104. package/dist/types-ts4.5/components/IconButton/styles.d.ts +2 -2
  105. package/dist/types-ts4.5/components/IconButton/types.d.ts +2 -5
  106. package/dist/types-ts4.5/components/Notifications/types.d.ts +2 -2
  107. package/dist/types-ts4.5/components/PrimaryButton/skeleton.d.ts +1 -1
  108. package/dist/types-ts4.5/components/PrimaryButton/styles.d.ts +2 -2
  109. package/dist/types-ts4.5/components/PrimaryButton/types.d.ts +4 -5
  110. package/dist/types-ts4.5/components/PrimaryDropdownButton/types.d.ts +1 -1
  111. package/dist/types-ts4.5/components/PrimaryItemsContainer/index.d.ts +2 -2
  112. package/dist/types-ts4.5/components/PrimaryItemsContainer/skeleton.d.ts +1 -1
  113. package/dist/types-ts4.5/components/PrimaryItemsContainer/types.d.ts +1 -1
  114. package/dist/types-ts4.5/components/PrimaryItemsContainerV2/index.d.ts +2 -2
  115. package/dist/types-ts4.5/components/ProductHome/custom-product-home.d.ts +1 -1
  116. package/dist/types-ts4.5/components/ProductHome/product-home.d.ts +1 -1
  117. package/dist/types-ts4.5/components/ProductHome/types.d.ts +2 -2
  118. package/dist/types-ts4.5/components/Profile/index.d.ts +1 -1
  119. package/dist/types-ts4.5/components/Profile/types.d.ts +1 -1
  120. package/dist/types-ts4.5/components/Search/index.d.ts +1 -1
  121. package/dist/types-ts4.5/components/Search/types.d.ts +1 -1
  122. package/dist/types-ts4.5/components/Settings/types.d.ts +1 -1
  123. package/dist/types-ts4.5/components/SignIn/index.d.ts +1 -1
  124. package/dist/types-ts4.5/components/SignIn/types.d.ts +1 -1
  125. package/dist/types-ts4.5/components/SkeletonCreateButton/index.d.ts +1 -1
  126. package/dist/types-ts4.5/components/SkeletonIconButton/index.d.ts +1 -1
  127. package/dist/types-ts4.5/components/SkeletonIconButton/types.d.ts +1 -1
  128. package/dist/types-ts4.5/components/SkeletonPrimaryButton/index.d.ts +1 -1
  129. package/dist/types-ts4.5/components/SkeletonPrimaryButton/types.d.ts +1 -1
  130. package/dist/types-ts4.5/controllers/overflow/index.d.ts +2 -2
  131. package/dist/types-ts4.5/controllers/overflow/types.d.ts +1 -1
  132. package/dist/types-ts4.5/theme/default-theme.d.ts +1 -1
  133. package/dist/types-ts4.5/theme/theme-generator.d.ts +1 -1
  134. package/dist/types-ts4.5/theme/themes.d.ts +1 -1
  135. package/dist/types-ts4.5/theme/types.d.ts +1 -3
  136. package/package.json +9 -14
@@ -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,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.
@@ -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,6 @@
1
1
  /** @jsx jsx */
2
2
  import { jsx } from '@emotion/react';
3
- import { SkeletonCreateButtonProps } from './types';
3
+ import { type SkeletonCreateButtonProps } from './types';
4
4
  /**
5
5
  * __Skeleton create button__
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import { jsx } from '@emotion/react';
3
- import { SkeletonIconButtonProps } from './types';
3
+ import { type SkeletonIconButtonProps } from './types';
4
4
  /**
5
5
  * __Skeleton icon button__
6
6
  *
@@ -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,6 @@
1
1
  /** @jsx jsx */
2
2
  import { jsx } from '@emotion/react';
3
- import { SkeletonPrimaryButtonProps } from './types';
3
+ import { type SkeletonPrimaryButtonProps } from './types';
4
4
  /**
5
5
  * __Skeleton primary button__
6
6
  *
@@ -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;
@@ -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,6 @@
1
1
  /** @jsx jsx */
2
2
  import { jsx } from '@emotion/react';
3
- import { AtlassianNavigationProps } from './types';
3
+ import { type AtlassianNavigationProps } from './types';
4
4
  /**
5
5
  * __Atlassian navigation__
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import { jsx } from '@emotion/react';
3
- import { NavigationSkeletonProps } from './types';
3
+ import { type NavigationSkeletonProps } from './types';
4
4
  /**
5
5
  * __Navigation skeleton__
6
6
  *
@@ -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
@@ -1,4 +1,4 @@
1
1
  /** @jsx jsx */
2
2
  import { jsx } from '@emotion/react';
3
- import { BadgeProps } from './types';
3
+ import { type BadgeProps } from './types';
4
4
  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,4 @@
1
1
  /** @jsx jsx */
2
2
  import { jsx } from '@emotion/react';
3
- import { IconButtonSkeletonProps } from './types';
3
+ import { type IconButtonSkeletonProps } from './types';
4
4
  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,4 @@
1
1
  /** @jsx jsx */
2
2
  import { jsx } from '@emotion/react';
3
- import { PrimaryButtonSkeletonProps } from './types';
3
+ import { type PrimaryButtonSkeletonProps } from './types';
4
4
  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,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.
@@ -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,6 @@
1
1
  /** @jsx jsx */
2
2
  import { jsx } from '@emotion/react';
3
- import { SkeletonCreateButtonProps } from './types';
3
+ import { type SkeletonCreateButtonProps } from './types';
4
4
  /**
5
5
  * __Skeleton create button__
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import { jsx } from '@emotion/react';
3
- import { SkeletonIconButtonProps } from './types';
3
+ import { type SkeletonIconButtonProps } from './types';
4
4
  /**
5
5
  * __Skeleton icon button__
6
6
  *
@@ -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,6 @@
1
1
  /** @jsx jsx */
2
2
  import { jsx } from '@emotion/react';
3
- import { SkeletonPrimaryButtonProps } from './types';
3
+ import { type SkeletonPrimaryButtonProps } from './types';
4
4
  /**
5
5
  * __Skeleton primary button__
6
6
  *
@@ -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;
@@ -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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "3.6.2",
3
+ "version": "4.0.0",
4
4
  "description": "A horizontal navigation component for Atlassian products.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -44,17 +44,17 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@atlaskit/analytics-namespaced-context": "^6.9.0",
47
- "@atlaskit/button": "^17.14.0",
47
+ "@atlaskit/button": "^17.17.0",
48
48
  "@atlaskit/ds-lib": "^2.3.0",
49
- "@atlaskit/icon": "^22.1.0",
49
+ "@atlaskit/icon": "^22.3.0",
50
50
  "@atlaskit/logo": "*",
51
51
  "@atlaskit/platform-feature-flags": "^0.2.0",
52
52
  "@atlaskit/popup": "^1.17.0",
53
- "@atlaskit/primitives": "^6.0.0",
54
- "@atlaskit/theme": "^12.7.0",
55
- "@atlaskit/tokens": "^1.45.0",
56
- "@atlaskit/tooltip": "^18.3.0",
57
- "@atlaskit/width-detector": "^4.1.0",
53
+ "@atlaskit/primitives": "^7.0.0",
54
+ "@atlaskit/theme": "^12.9.0",
55
+ "@atlaskit/tokens": "^1.49.0",
56
+ "@atlaskit/tooltip": "^18.4.0",
57
+ "@atlaskit/width-detector": "^4.2.0",
58
58
  "@babel/runtime": "^7.0.0",
59
59
  "@emotion/react": "^11.7.1",
60
60
  "chromatism": "^2.6.0",
@@ -66,11 +66,10 @@
66
66
  "devDependencies": {
67
67
  "@af/accessibility-testing": "*",
68
68
  "@af/visual-regression": "*",
69
- "@atlaskit/dropdown-menu": "^12.10.0",
69
+ "@atlaskit/dropdown-menu": "^12.11.0",
70
70
  "@atlaskit/notification-indicator": "*",
71
71
  "@atlaskit/notification-log-client": "*",
72
72
  "@atlaskit/visual-regression": "*",
73
- "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
74
73
  "@atlassian/feature-flags-test-utils": "^0.2.0",
75
74
  "@testing-library/react": "^12.1.5",
76
75
  "@testing-library/react-hooks": "^8.0.1",
@@ -102,13 +101,9 @@
102
101
  }
103
102
  },
104
103
  "homepage": "https://atlassian.design/components/atlassian-navigation/",
105
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
106
104
  "platform-feature-flags": {
107
105
  "platform.design-system-team.navigation-v2-no-jank_5yhbd": {
108
106
  "type": "boolean"
109
- },
110
- "platform.design-system-team.brand-refresh-update-product-logos_q7coo": {
111
- "type": "boolean"
112
107
  }
113
108
  }
114
109
  }