@atlaskit/atlassian-navigation 2.3.0 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/version.json +1 -1
  3. package/dist/es2019/version.json +1 -1
  4. package/dist/esm/version.json +1 -1
  5. package/dist/types/components/IconButton/styles.d.ts +1 -1
  6. package/dist/types/components/PrimaryButton/styles.d.ts +1 -1
  7. package/package.json +3 -11
  8. package/report.api.md +12 -5
  9. package/dist/types-ts4.0/common/constants.d.ts +0 -6
  10. package/dist/types-ts4.0/common/styles.d.ts +0 -10
  11. package/dist/types-ts4.0/components/AppSwitcher/index.d.ts +0 -14
  12. package/dist/types-ts4.0/components/AppSwitcher/types.d.ts +0 -2
  13. package/dist/types-ts4.0/components/AtlassianNavigation/index.d.ts +0 -13
  14. package/dist/types-ts4.0/components/AtlassianNavigation/skeleton.d.ts +0 -18
  15. package/dist/types-ts4.0/components/AtlassianNavigation/types.d.ts +0 -107
  16. package/dist/types-ts4.0/components/BadgeContainer/index.d.ts +0 -4
  17. package/dist/types-ts4.0/components/BadgeContainer/types.d.ts +0 -6
  18. package/dist/types-ts4.0/components/Create/index.d.ts +0 -13
  19. package/dist/types-ts4.0/components/Create/skeleton.d.ts +0 -2
  20. package/dist/types-ts4.0/components/Create/styles.d.ts +0 -3
  21. package/dist/types-ts4.0/components/Create/types.d.ts +0 -35
  22. package/dist/types-ts4.0/components/Help/index.d.ts +0 -13
  23. package/dist/types-ts4.0/components/Help/types.d.ts +0 -9
  24. package/dist/types-ts4.0/components/IconButton/index.d.ts +0 -14
  25. package/dist/types-ts4.0/components/IconButton/skeleton.d.ts +0 -4
  26. package/dist/types-ts4.0/components/IconButton/styles.d.ts +0 -3
  27. package/dist/types-ts4.0/components/IconButton/types.d.ts +0 -100
  28. package/dist/types-ts4.0/components/Notifications/index.d.ts +0 -14
  29. package/dist/types-ts4.0/components/Notifications/types.d.ts +0 -9
  30. package/dist/types-ts4.0/components/PrimaryButton/index.d.ts +0 -18
  31. package/dist/types-ts4.0/components/PrimaryButton/skeleton.d.ts +0 -4
  32. package/dist/types-ts4.0/components/PrimaryButton/styles.d.ts +0 -3
  33. package/dist/types-ts4.0/components/PrimaryButton/types.d.ts +0 -43
  34. package/dist/types-ts4.0/components/PrimaryDropdownButton/index.d.ts +0 -16
  35. package/dist/types-ts4.0/components/PrimaryDropdownButton/types.d.ts +0 -18
  36. package/dist/types-ts4.0/components/PrimaryItemsContainer/index.d.ts +0 -6
  37. package/dist/types-ts4.0/components/PrimaryItemsContainer/skeleton.d.ts +0 -3
  38. package/dist/types-ts4.0/components/PrimaryItemsContainer/types.d.ts +0 -10
  39. package/dist/types-ts4.0/components/ProductHome/custom-product-home.d.ts +0 -12
  40. package/dist/types-ts4.0/components/ProductHome/index.d.ts +0 -2
  41. package/dist/types-ts4.0/components/ProductHome/product-home.d.ts +0 -15
  42. package/dist/types-ts4.0/components/ProductHome/skeleton.d.ts +0 -5
  43. package/dist/types-ts4.0/components/ProductHome/types.d.ts +0 -100
  44. package/dist/types-ts4.0/components/ProductHome/utils.d.ts +0 -1
  45. package/dist/types-ts4.0/components/Profile/index.d.ts +0 -17
  46. package/dist/types-ts4.0/components/Profile/skeleton.d.ts +0 -2
  47. package/dist/types-ts4.0/components/Profile/types.d.ts +0 -2
  48. package/dist/types-ts4.0/components/Search/index.d.ts +0 -12
  49. package/dist/types-ts4.0/components/Search/skeleton.d.ts +0 -2
  50. package/dist/types-ts4.0/components/Search/types.d.ts +0 -16
  51. package/dist/types-ts4.0/components/Settings/index.d.ts +0 -11
  52. package/dist/types-ts4.0/components/Settings/types.d.ts +0 -2
  53. package/dist/types-ts4.0/components/SignIn/index.d.ts +0 -12
  54. package/dist/types-ts4.0/components/SignIn/skeleton.d.ts +0 -2
  55. package/dist/types-ts4.0/components/SignIn/types.d.ts +0 -2
  56. package/dist/types-ts4.0/components/SkeletonCreateButton/index.d.ts +0 -14
  57. package/dist/types-ts4.0/components/SkeletonCreateButton/types.d.ts +0 -12
  58. package/dist/types-ts4.0/components/SkeletonIconButton/index.d.ts +0 -14
  59. package/dist/types-ts4.0/components/SkeletonIconButton/types.d.ts +0 -18
  60. package/dist/types-ts4.0/components/SkeletonPrimaryButton/index.d.ts +0 -14
  61. package/dist/types-ts4.0/components/SkeletonPrimaryButton/types.d.ts +0 -25
  62. package/dist/types-ts4.0/controllers/overflow/index.d.ts +0 -44
  63. package/dist/types-ts4.0/controllers/overflow/types.d.ts +0 -7
  64. package/dist/types-ts4.0/index.d.ts +0 -30
  65. package/dist/types-ts4.0/skeleton-help-button.d.ts +0 -19
  66. package/dist/types-ts4.0/skeleton-notification-button.d.ts +0 -19
  67. package/dist/types-ts4.0/skeleton-settings-button.d.ts +0 -19
  68. package/dist/types-ts4.0/skeleton-switcher-button.d.ts +0 -19
  69. package/dist/types-ts4.0/skeleton.d.ts +0 -5
  70. package/dist/types-ts4.0/theme/default-theme.d.ts +0 -6
  71. package/dist/types-ts4.0/theme/index.d.ts +0 -6
  72. package/dist/types-ts4.0/theme/theme-generator.d.ts +0 -3
  73. package/dist/types-ts4.0/theme/theme-helpers.d.ts +0 -5
  74. package/dist/types-ts4.0/theme/theme-provider.d.ts +0 -8
  75. package/dist/types-ts4.0/theme/themes.d.ts +0 -3
  76. package/dist/types-ts4.0/theme/types.d.ts +0 -74
  77. package/dist/types-ts4.0/theme/use-theme.d.ts +0 -1
@@ -1,18 +0,0 @@
1
- /// <reference types="react" />
2
- import { PrimaryButtonProps } from '../PrimaryButton/types';
3
- export declare type PrimaryDropdownButtonProps = Omit<PrimaryButtonProps, 'iconAfter'> & {
4
- /**
5
- * Will set the appearance of the button to look highlighted.
6
- */
7
- isHighlighted?: boolean;
8
- /**
9
- * A `testId` prop is provided for specified elements,
10
- * which is a unique string that appears as a data attribute `data-testid` in the rendered code,
11
- * serving as a hook for automated tests
12
- */
13
- testId?: string;
14
- /**
15
- * Optional text to show when the button is focused or hovered.
16
- */
17
- tooltip?: React.ReactNode;
18
- };
@@ -1,6 +0,0 @@
1
- import { jsx } from '@emotion/react';
2
- import { NavigationTheme } from '../../theme';
3
- import { PrimaryItemsContainerProps } from './types';
4
- export declare const PrimaryItemsContainer: ({ moreLabel, items, create: Create, theme, testId, }: PrimaryItemsContainerProps & {
5
- theme: NavigationTheme;
6
- }) => jsx.JSX.Element;
@@ -1,3 +0,0 @@
1
- import { jsx } from '@emotion/react';
2
- import { PrimaryItemsContainerSkeletonProps } from './types';
3
- export declare const PrimaryItemsContainerSkeleton: ({ count, }: PrimaryItemsContainerSkeletonProps) => jsx.JSX.Element;
@@ -1,10 +0,0 @@
1
- import { ComponentType, ReactNode, ReactNodeArray } from 'react';
2
- export declare type PrimaryItemsContainerProps = {
3
- moreLabel: ReactNode;
4
- items: ReactNodeArray;
5
- create?: ComponentType<{}>;
6
- testId?: string;
7
- };
8
- export declare type PrimaryItemsContainerSkeletonProps = {
9
- count: number;
10
- };
@@ -1,12 +0,0 @@
1
- import { jsx } from '@emotion/react';
2
- import { CustomProductHomeProps } from './types';
3
- /**
4
- * __Custom product home__
5
- *
6
- * Use `CustomProductHome` to provide a custom logo and icon with URLs.
7
- *
8
- * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#custom-product-home)
9
- * - [Code](https://atlassian.design/components/atlassian-navigation/code)
10
- */
11
- declare const CustomProductHome: (props: CustomProductHomeProps) => jsx.JSX.Element;
12
- export default CustomProductHome;
@@ -1,2 +0,0 @@
1
- export { default as ProductHome } from './product-home';
2
- export { default as CustomProductHome } from './custom-product-home';
@@ -1,15 +0,0 @@
1
- import { jsx } from '@emotion/react';
2
- import { ProductHomeProps } from './types';
3
- /**
4
- * __Product home__
5
- *
6
- * The ProductHome component displays the product visual identity composed of:
7
- * logo, icon, and optional text. Values for logo and icon are never displayed
8
- * at the same time, where icon is used only when space is restricted. Should be
9
- * passed into `AtlassianNavigation`'s `renderProductHome` prop.
10
- *
11
- * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#product-home)
12
- * - [Code](https://atlassian.design/components/atlassian-navigation/code)
13
- */
14
- declare const ProductHome: ({ icon: Icon, logo: Logo, siteTitle, onClick, href, onMouseDown, testId, logoMaxWidth, ...rest }: ProductHomeProps) => jsx.JSX.Element;
15
- export default ProductHome;
@@ -1,5 +0,0 @@
1
- /** @jsx jsx */
2
- import { jsx } from '@emotion/react';
3
- export declare const ProductHomeSkeleton: ({ showSiteName, }: {
4
- showSiteName: boolean;
5
- }) => jsx.JSX.Element;
@@ -1,100 +0,0 @@
1
- import { ComponentType, MouseEvent } from 'react';
2
- import { LogoProps } from '@atlaskit/logo';
3
- export interface ProductHomeProps {
4
- /**
5
- * The product icon.
6
- * Expected to be an Icon from the Atlaskit Logo package. Visible on smaller screen sizes
7
- */
8
- icon: ComponentType<Partial<LogoProps>>;
9
- /**
10
- * The product logo,
11
- * visible on larger screen sizes
12
- */
13
- logo: ComponentType<Partial<LogoProps>>;
14
- /**
15
- * Maximum width in pixel, that logo can acquire. Defaults to 260px.
16
- */
17
- logoMaxWidth?: number;
18
- /**
19
- * Optional onClick handler.
20
- */
21
- onClick?: (event: MouseEvent<HTMLElement>) => void;
22
- /**
23
- * Optional mouseDown handler.
24
- */
25
- onMouseDown?: (event: MouseEvent<HTMLElement>) => void;
26
- /**
27
- * Href to be passed to product home.
28
- * Will add an interactive look and feel when defined.
29
- */
30
- href?: string;
31
- /**
32
- * Name of the site that appears next to the logo.
33
- */
34
- siteTitle?: string;
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
- */
47
- testId?: string;
48
- }
49
- export interface CustomProductHomeProps {
50
- /**
51
- * Alt text for the icon that is displayed on small viewports.
52
- */
53
- iconAlt: string;
54
- /**
55
- * Url for the icon that is displayed on small viewports.
56
- */
57
- iconUrl: string;
58
- /**
59
- * Alt text for the icon that is displayed on large viewports.
60
- */
61
- logoAlt: string;
62
- /**
63
- * Url for the icon that is displayed on large viewports.
64
- */
65
- logoUrl: string;
66
- /**
67
- * Maximum width of the logo, in pixels. Defaults to 260px.
68
- */
69
- logoMaxWidth?: number;
70
- /**
71
- * Optional onClick handler.
72
- */
73
- onClick?: (event: MouseEvent<HTMLElement>) => void;
74
- /**
75
- * Optional mouseDown handler.
76
- */
77
- onMouseDown?: (event: MouseEvent<HTMLElement>) => void;
78
- /**
79
- * Href to be passed to product home.
80
- * Will add an interactive look and feel when defined.
81
- */
82
- href?: string;
83
- /**
84
- * Name of the site that appears next to the logo
85
- */
86
- siteTitle?: string;
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
- */
99
- testId?: string;
100
- }
@@ -1 +0,0 @@
1
- export declare const getTag: (onClick?: ((arg: any) => void) | undefined, href?: string | undefined) => "button" | "a" | "div";
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- import { IconButtonProps } from '../IconButton/types';
3
- /**
4
- * __Profile__
5
- *
6
- * A profile button which takes an icon/avatar component can be that can be
7
- * passed into `AtlassianNavigation`'s `renderProfile` prop.
8
- *
9
- * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#profile)
10
- * - [Code](https://atlassian.design/components/atlassian-navigation/code)
11
- */
12
- export declare const Profile: import("react").ForwardRefExoticComponent<import("../IconButton/types").BaseIconButtonProps & {
13
- icon: import("react").ReactChild | undefined;
14
- theme?: ((current: (props: import("@atlaskit/button").ThemeProps) => import("@atlaskit/button").ThemeTokens, props: import("@atlaskit/button").ThemeProps) => import("@atlaskit/button").ThemeTokens) | undefined;
15
- } & import("react").RefAttributes<HTMLElement>>;
16
- declare const _default: (props: IconButtonProps) => void;
17
- export default _default;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const ProfileSkeleton: () => JSX.Element;
@@ -1,2 +0,0 @@
1
- import { IconButtonProps } from '../IconButton/types';
2
- export declare type ProfileProps = IconButtonProps;
@@ -1,12 +0,0 @@
1
- import { jsx } from '@emotion/react';
2
- import { SearchProps } from './types';
3
- /**
4
- * __Search__
5
- *
6
- * A search input that can be passed into `AtlassianNavigation`'s `renderSearch` prop.
7
- *
8
- * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#search)
9
- * - [Code](https://atlassian.design/components/atlassian-navigation/code)
10
- */
11
- export declare const Search: (props: SearchProps) => jsx.JSX.Element;
12
- export default Search;
@@ -1,2 +0,0 @@
1
- import { jsx } from '@emotion/react';
2
- export declare const SearchSkeleton: () => jsx.JSX.Element;
@@ -1,16 +0,0 @@
1
- import { BaseIconButtonProps } from '../IconButton/types';
2
- export declare type SearchProps = BaseIconButtonProps & {
3
- /**
4
- * Placeholder text for the search textbox.
5
- */
6
- placeholder: string;
7
- /**
8
- * Used to describe the search icon and text field for users viewing the
9
- * page with a screen reader
10
- */
11
- label: string;
12
- /**
13
- * Value of search field.
14
- */
15
- value?: string;
16
- };
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- /**
3
- * __Settings__
4
- *
5
- * A settings button that can be passed into `AtlassianNavigation`'s `renderSettings` prop.
6
- *
7
- * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#settings)
8
- * - [Code](https://atlassian.design/components/atlassian-navigation/code)
9
- */
10
- export declare const Settings: React.ForwardRefExoticComponent<import("../IconButton/types").BaseIconButtonProps & React.RefAttributes<any>>;
11
- export default Settings;
@@ -1,2 +0,0 @@
1
- import { BaseIconButtonProps } from '../IconButton/types';
2
- export declare type SettingsProps = BaseIconButtonProps;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import { SignInProps } from './types';
3
- /**
4
- * __Sign in__
5
- *
6
- * A sign-in button that can be passed into `AtlassianNavigation`'s `renderSignIn` prop.
7
- *
8
- * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#sign-in)
9
- * - [Code](https://atlassian.design/components/atlassian-navigation/code)
10
- */
11
- export declare const SignIn: (props: SignInProps) => JSX.Element;
12
- export default SignIn;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const SignInSkeleton: () => JSX.Element;
@@ -1,2 +0,0 @@
1
- import { BaseIconButtonProps } from '../IconButton/types';
2
- export declare type SignInProps = BaseIconButtonProps;
@@ -1,14 +0,0 @@
1
- /** @jsx jsx */
2
- import { jsx } from '@emotion/react';
3
- import { SkeletonCreateButtonProps } from './types';
4
- /**
5
- * __Skeleton create button__
6
- *
7
- * Skeleton buttons are lightweight HTML button elements with CSS that represent
8
- * their heavier interactive counterparts, for use when elements of the
9
- * navigation are loaded dynamically. This one represents the Create button.
10
- *
11
- * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
12
- * - [Code](https://atlassian.design/components/atlassian-navigation/code)
13
- */
14
- export declare const SkeletonCreateButton: ({ text, testId, }: SkeletonCreateButtonProps) => jsx.JSX.Element;
@@ -1,12 +0,0 @@
1
- export declare type SkeletonCreateButtonProps = {
2
- /**
3
- * Text to be displayed inside the skeleton create button.
4
- */
5
- text: string;
6
- /**
7
- * A `testId` prop is provided for specified elements,
8
- * which is a unique string that appears as a data attribute `data-testid` in the rendered code,
9
- * serving as a hook for automated tests.
10
- */
11
- testId?: string;
12
- };
@@ -1,14 +0,0 @@
1
- /** @jsx jsx */
2
- import { jsx } from '@emotion/react';
3
- import { SkeletonIconButtonProps } from './types';
4
- /**
5
- * __Skeleton icon button__
6
- *
7
- * Skeleton buttons are lightweight HTML button elements with CSS that represent
8
- * their heavier interactive counterparts, for use when elements of the
9
- * navigation are loaded dynamically. This one represents a generic icon button.
10
- *
11
- * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
12
- * - [Code](https://atlassian.design/components/atlassian-navigation/code)
13
- */
14
- export declare const SkeletonIconButton: ({ children, testId, }: SkeletonIconButtonProps) => jsx.JSX.Element;
@@ -1,18 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export declare type SkeletonIconButtonProps = {
3
- /**
4
- * Content to be placed inside the skeleton.
5
- */
6
- children: ReactNode;
7
- /**
8
- * A `testId` prop is provided for specified elements,
9
- * which is a unique string that appears as a data attribute `data-testid` in the rendered code,
10
- * serving as a hook for automated tests.
11
- */
12
- testId?: string;
13
- /**
14
- * Describes the specific role of this navigation component for users viewing the page with a screen
15
- * reader. Differentiates from other navigation buttons on a page.
16
- */
17
- label?: string;
18
- };
@@ -1,14 +0,0 @@
1
- /** @jsx jsx */
2
- import { jsx } from '@emotion/react';
3
- import { SkeletonPrimaryButtonProps } from './types';
4
- /**
5
- * __Skeleton primary button__
6
- *
7
- * Skeleton buttons are lightweight HTML button elements with CSS that represent
8
- * their heavier interactive counterparts, for use when elements of the
9
- * navigation are loaded dynamically. This one represents a primary button.
10
- *
11
- * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
12
- * - [Code](https://atlassian.design/components/atlassian-navigation/code)
13
- */
14
- export declare const SkeletonPrimaryButton: ({ isDropdownButton, isHighlighted, text, children, testId, }: SkeletonPrimaryButtonProps) => jsx.JSX.Element;
@@ -1,25 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export declare type SkeletonPrimaryButtonProps = {
3
- /**
4
- * Text content to be displayed inside the skeleton button.
5
- */
6
- text?: ReactNode;
7
- /**
8
- * Children to be displayed inside the skeleton button.
9
- * Renders if `text` prop not set
10
- */
11
- children?: ReactNode;
12
- /**
13
- * Sets the appearance of the skeleton button to look like a dropdown button
14
- */
15
- isDropdownButton?: boolean;
16
- /**
17
- * Sets the appearance of the skeleton button to look highlighted.
18
- */
19
- isHighlighted?: boolean;
20
- /**
21
- * A unique string that appears as a data attribute `data-testid` in the rendered code,
22
- * serving as a hook for automated tests.
23
- */
24
- testId?: string;
25
- };
@@ -1,44 +0,0 @@
1
- /// <reference types="lodash" />
2
- import React, { ReactNode } from 'react';
3
- import noop from '@atlaskit/ds-lib/noop';
4
- import { OverflowProviderProps } from './types';
5
- interface OverflowContext {
6
- /**
7
- * Returns `true` when the navigation item is visible,
8
- * and `false` when the navigation item has been pushed into the overflow menu.
9
- */
10
- isVisible: boolean;
11
- /**
12
- * Method that can be used to programmatically open the overflow menu
13
- */
14
- openOverflowMenu: () => void;
15
- /**
16
- * Method that can be used to programmatically close the overflow menu
17
- */
18
- closeOverflowMenu: () => void;
19
- }
20
- declare const OverflowContext: React.Context<{
21
- isVisible: boolean;
22
- openOverflowMenu: typeof noop;
23
- closeOverflowMenu: typeof noop;
24
- }>;
25
- export declare const OverflowProvider: ({ children, isVisible, openOverflowMenu, closeOverflowMenu, }: OverflowProviderProps) => JSX.Element;
26
- /**
27
- * __useOverFlowStatus__
28
- *
29
- * Returns the current context value for the nearest OverflowProvider.
30
- *
31
- * - [Example](https://atlassian.design/components/atlassian-navigation/examples#responsive)
32
- */
33
- export declare const useOverflowStatus: () => {
34
- isVisible: boolean;
35
- openOverflowMenu: typeof noop;
36
- closeOverflowMenu: typeof noop;
37
- };
38
- export declare const useOverflowController: (nodes: ReactNode | ReactNode[]) => {
39
- visibleItems: (string | number | boolean | {} | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactNodeArray | React.ReactPortal | null | undefined)[];
40
- overflowItems: (string | number | boolean | {} | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactNodeArray | React.ReactPortal | null | undefined)[];
41
- updateWidth: import("lodash").DebouncedFunc<React.Dispatch<React.SetStateAction<number>>>;
42
- };
43
- declare const _default: (props: OverflowContext) => void;
44
- export default _default;
@@ -1,7 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export declare type OverflowProviderProps = {
3
- children: ReactNode;
4
- isVisible: boolean;
5
- openOverflowMenu: () => void;
6
- closeOverflowMenu: () => void;
7
- };
@@ -1,30 +0,0 @@
1
- export { AtlassianNavigation } from './components/AtlassianNavigation';
2
- export type { AtlassianNavigationProps } from './components/AtlassianNavigation/types';
3
- export { AppSwitcher } from './components/AppSwitcher';
4
- export type { AppSwitcherProps } from './components/AppSwitcher/types';
5
- export { Create } from './components/Create';
6
- export type { CreateProps } from './components/Create/types';
7
- export { Help } from './components/Help';
8
- export type { HelpProps } from './components/Help/types';
9
- export { Notifications } from './components/Notifications';
10
- export type { NotificationsProps } from './components/Notifications/types';
11
- export { PrimaryButton } from './components/PrimaryButton';
12
- export type { PrimaryButtonProps } from './components/PrimaryButton/types';
13
- export { PrimaryDropdownButton } from './components/PrimaryDropdownButton';
14
- export type { PrimaryDropdownButtonProps } from './components/PrimaryDropdownButton/types';
15
- export { IconButton } from './components/IconButton';
16
- export type { IconButtonProps } from './components/IconButton/types';
17
- export { CustomProductHome, ProductHome } from './components/ProductHome';
18
- export type { CustomProductHomeProps, ProductHomeProps, } from './components/ProductHome/types';
19
- export { Profile } from './components/Profile';
20
- export type { ProfileProps } from './components/Profile/types';
21
- export { Search } from './components/Search';
22
- export type { SearchProps } from './components/Search/types';
23
- export { Settings } from './components/Settings';
24
- export type { SettingsProps } from './components/Settings/types';
25
- export { SignIn } from './components/SignIn';
26
- export type { SignInProps } from './components/SignIn/types';
27
- export { useOverflowStatus } from './controllers/overflow';
28
- export { HORIZONTAL_GLOBAL_NAV_HEIGHT } from './common/constants';
29
- export { atlassianTheme, generateTheme, ThemeProvider } from './theme';
30
- export type { Colors, CreateCSS, GenerateThemeArgs, IconButtonCSS, Mode, NavigationCSS, NavigationTheme, PrimaryButtonCSS, SearchCSS, SkeletonCSS, } from './theme';
@@ -1,19 +0,0 @@
1
- /// <reference types="react" />
2
- export declare type SkeletonHelpButtonProps = {
3
- /**
4
- * Describes the specific role of this navigation component for users viewing the page with a screen
5
- * reader. Differentiates from other navigation buttons on a page.
6
- */
7
- label: string;
8
- };
9
- /**
10
- * __Skeleton Notification button__
11
- *
12
- * Skeleton buttons are lightweight HTML button elements with CSS that represent
13
- * their heavier interactive counterparts, for use when elements of the
14
- * navigation are loaded dynamically. This one represents the Help button.
15
- *
16
- * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
17
- * - [Code](https://atlassian.design/components/atlassian-navigation/code)
18
- */
19
- export declare const SkeletonHelpButton: ({ label }: SkeletonHelpButtonProps) => JSX.Element;
@@ -1,19 +0,0 @@
1
- /// <reference types="react" />
2
- export declare type SkeletonNotificationButtonProps = {
3
- /**
4
- * Describes the specific role of this navigation component for users viewing the page with a screen
5
- * reader. Differentiates from other navigation buttons on a page.
6
- */
7
- label: string;
8
- };
9
- /**
10
- * __Skeleton Notification button__
11
- *
12
- * Skeleton buttons are lightweight HTML button elements with CSS that represent
13
- * their heavier interactive counterparts, for use when elements of the
14
- * navigation are loaded dynamically. This one represents the Notification button.
15
- *
16
- * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
17
- * - [Code](https://atlassian.design/components/atlassian-navigation/code)
18
- */
19
- export declare const SkeletonNotificationButton: ({ label, }: SkeletonNotificationButtonProps) => JSX.Element;
@@ -1,19 +0,0 @@
1
- /// <reference types="react" />
2
- export declare type SkeletonSettingsButtonProps = {
3
- /**
4
- * Describes the specific role of this navigation component for users viewing the page with a screen
5
- * reader. Differentiates from other navigation buttons on a page.
6
- */
7
- label: string;
8
- };
9
- /**
10
- * __Skeleton settings button__
11
- *
12
- * Skeleton buttons are lightweight HTML button elements with CSS that represent
13
- * their heavier interactive counterparts, for use when elements of the
14
- * navigation are loaded dynamically. This one represents the Settings button.
15
- *
16
- * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
17
- * - [Code](https://atlassian.design/components/atlassian-navigation/code)
18
- */
19
- export declare const SkeletonSettingsButton: ({ label, }: SkeletonSettingsButtonProps) => JSX.Element;
@@ -1,19 +0,0 @@
1
- /// <reference types="react" />
2
- export declare type SkeletonSwitcherButtonProps = {
3
- /**
4
- * Describes the specific role of this navigation component for users viewing the page with a screen
5
- * reader. Differentiates from other navigation buttons on a page.
6
- */
7
- label: string;
8
- };
9
- /**
10
- * __Skeleton switcher button__
11
- *
12
- * Skeleton buttons are lightweight HTML button elements with CSS that represent
13
- * their heavier interactive counterparts, for use when elements of the
14
- * navigation are loaded dynamically. This one represents the AppSwitcher button.
15
- *
16
- * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
17
- * - [Code](https://atlassian.design/components/atlassian-navigation/code)
18
- */
19
- export declare const SkeletonSwitcherButton: ({ label, }: SkeletonSwitcherButtonProps) => JSX.Element;
@@ -1,5 +0,0 @@
1
- export { NavigationSkeleton } from './components/AtlassianNavigation/skeleton';
2
- export type { NavigationSkeletonProps } from './components/AtlassianNavigation/types';
3
- export { SkeletonCreateButton } from './components/SkeletonCreateButton';
4
- export { SkeletonIconButton } from './components/SkeletonIconButton';
5
- export { SkeletonPrimaryButton } from './components/SkeletonPrimaryButton';
@@ -1,6 +0,0 @@
1
- import { Mode } from './types';
2
- declare const defaultTheme: {
3
- mode: Mode;
4
- };
5
- export declare const DEFAULT_THEME_NAME = "atlassian";
6
- export default defaultTheme;
@@ -1,6 +0,0 @@
1
- export { generateTheme } from './theme-generator';
2
- export { ThemeProvider } from './theme-provider';
3
- export { atlassianTheme, defaultTheme } from './themes';
4
- export type { CreateCSS, IconButtonCSS, Mode, NavigationCSS, NavigationTheme, PrimaryButtonCSS, SearchCSS, ProductHomeCSS, SkeletonCSS, Colors, GenerateThemeArgs, } from './types';
5
- export { useTheme } from './use-theme';
6
- export { hexToRGBA } from './theme-helpers';
@@ -1,3 +0,0 @@
1
- import { GenerateThemeArgs, NavigationTheme } from './types';
2
- export declare const generateTheme: (themeColors: GenerateThemeArgs) => NavigationTheme;
3
- export default generateTheme;
@@ -1,5 +0,0 @@
1
- export declare const hexToRGBA: (hex: string, opacity?: number) => string;
2
- export declare const getBoxShadow: (color: string) => string;
3
- export declare const convertHexShorthand: (color: string) => string;
4
- export declare const generateTextColor: (color: string) => string;
5
- export declare const getContrastColor: (contrastValue: number, opacityValue: number, color: string) => string;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const ThemeContext: import("react").Context<import("./types").NavigationTheme>;
3
- /**
4
- * __Theme provider__
5
- *
6
- * A provider for the theme context used by all navigation components.
7
- */
8
- export declare const ThemeProvider: import("react").Provider<import("./types").NavigationTheme>;
@@ -1,3 +0,0 @@
1
- import { NavigationTheme } from './types';
2
- export declare const atlassianTheme: NavigationTheme;
3
- export declare const defaultTheme: NavigationTheme;