@atlaskit/atlassian-navigation 5.7.4 → 6.0.1

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 (201) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/afm-cc/tsconfig.json +3 -0
  3. package/afm-products/tsconfig.json +3 -0
  4. package/app-switcher/package.json +1 -8
  5. package/app-switcher/types/package.json +1 -8
  6. package/atlassian-navigation/package.json +1 -8
  7. package/constants/package.json +1 -8
  8. package/create/package.json +1 -8
  9. package/create/types/package.json +1 -8
  10. package/custom-product-home/package.json +1 -8
  11. package/dist/cjs/components/AppSwitcher/index.js +1 -0
  12. package/dist/cjs/components/ProductHome/product-home.js +0 -1
  13. package/dist/cjs/components/Profile/index.js +1 -0
  14. package/dist/cjs/controllers/overflow/index.js +4 -0
  15. package/dist/cjs/theme/theme-helpers.js +6 -0
  16. package/dist/es2019/components/AppSwitcher/index.js +1 -0
  17. package/dist/es2019/components/ProductHome/product-home.js +0 -3
  18. package/dist/es2019/components/Profile/index.js +1 -0
  19. package/dist/es2019/controllers/overflow/index.js +4 -0
  20. package/dist/es2019/theme/theme-helpers.js +6 -0
  21. package/dist/esm/components/AppSwitcher/index.js +1 -0
  22. package/dist/esm/components/ProductHome/product-home.js +0 -3
  23. package/dist/esm/components/Profile/index.js +1 -0
  24. package/dist/esm/controllers/overflow/index.js +4 -0
  25. package/dist/esm/theme/theme-helpers.js +6 -0
  26. package/help/package.json +1 -8
  27. package/help/types/package.json +1 -8
  28. package/icon-button/package.json +1 -8
  29. package/icon-button/types/package.json +1 -8
  30. package/notifications/package.json +1 -8
  31. package/notifications/types/package.json +1 -8
  32. package/overflow/package.json +1 -8
  33. package/package.json +29 -37
  34. package/primary-button/package.json +1 -8
  35. package/primary-button/types/package.json +1 -8
  36. package/primary-dropdown-button/package.json +1 -8
  37. package/primary-dropdown-button/types/package.json +1 -8
  38. package/product-home/package.json +1 -8
  39. package/product-home/types/package.json +1 -8
  40. package/profile/package.json +1 -8
  41. package/profile/types/package.json +1 -8
  42. package/search/package.json +1 -8
  43. package/search/types/package.json +1 -8
  44. package/settings/package.json +1 -8
  45. package/settings/types/package.json +1 -8
  46. package/sign-in/package.json +1 -8
  47. package/sign-in/types/package.json +1 -8
  48. package/skeleton/package.json +1 -8
  49. package/skeleton-base/package.json +1 -8
  50. package/skeleton-base/types/package.json +1 -8
  51. package/skeleton-create-button/package.json +1 -8
  52. package/skeleton-create-button/types/package.json +1 -8
  53. package/skeleton-help-button/package.json +1 -8
  54. package/skeleton-icon-button/package.json +1 -8
  55. package/skeleton-icon-button/types/package.json +1 -8
  56. package/skeleton-notification-button/package.json +1 -8
  57. package/skeleton-primary-button/package.json +1 -8
  58. package/skeleton-primary-button/types/package.json +1 -8
  59. package/skeleton-settings-button/package.json +1 -8
  60. package/skeleton-switcher-button/package.json +1 -8
  61. package/theme/types/package.json +1 -8
  62. package/theme-generator/package.json +1 -8
  63. package/theme-provider/package.json +1 -8
  64. package/themes/package.json +1 -8
  65. package/types/package.json +1 -8
  66. package/dist/types-ts4.5/common/action-section-desktop-css.d.ts +0 -5
  67. package/dist/types-ts4.5/common/action-section-mobile-css.d.ts +0 -5
  68. package/dist/types-ts4.5/common/constants.d.ts +0 -11
  69. package/dist/types-ts4.5/common/styles.d.ts +0 -2
  70. package/dist/types-ts4.5/components/AppSwitcher/app-switcher-nav4.d.ts +0 -6
  71. package/dist/types-ts4.5/components/AppSwitcher/app-switcher.d.ts +0 -14
  72. package/dist/types-ts4.5/components/AppSwitcher/index.d.ts +0 -3
  73. package/dist/types-ts4.5/components/AppSwitcher/types.d.ts +0 -5
  74. package/dist/types-ts4.5/components/AtlassianNavigation/index.d.ts +0 -17
  75. package/dist/types-ts4.5/components/AtlassianNavigation/skeleton.d.ts +0 -22
  76. package/dist/types-ts4.5/components/AtlassianNavigation/types.d.ts +0 -121
  77. package/dist/types-ts4.5/components/BadgeContainer/index.d.ts +0 -7
  78. package/dist/types-ts4.5/components/BadgeContainer/types.d.ts +0 -10
  79. package/dist/types-ts4.5/components/Create/index.d.ts +0 -18
  80. package/dist/types-ts4.5/components/Create/styles.d.ts +0 -3
  81. package/dist/types-ts4.5/components/Create/types.d.ts +0 -39
  82. package/dist/types-ts4.5/components/Help/index.d.ts +0 -13
  83. package/dist/types-ts4.5/components/Help/types.d.ts +0 -9
  84. package/dist/types-ts4.5/components/IconButton/index.d.ts +0 -13
  85. package/dist/types-ts4.5/components/IconButton/skeleton.d.ts +0 -7
  86. package/dist/types-ts4.5/components/IconButton/styles.d.ts +0 -3
  87. package/dist/types-ts4.5/components/IconButton/types.d.ts +0 -104
  88. package/dist/types-ts4.5/components/Notifications/index.d.ts +0 -14
  89. package/dist/types-ts4.5/components/Notifications/types.d.ts +0 -9
  90. package/dist/types-ts4.5/components/PrimaryButton/index.d.ts +0 -13
  91. package/dist/types-ts4.5/components/PrimaryButton/skeleton.d.ts +0 -7
  92. package/dist/types-ts4.5/components/PrimaryButton/styles.d.ts +0 -3
  93. package/dist/types-ts4.5/components/PrimaryButton/types.d.ts +0 -51
  94. package/dist/types-ts4.5/components/PrimaryDropdownButton/index.d.ts +0 -13
  95. package/dist/types-ts4.5/components/PrimaryDropdownButton/types.d.ts +0 -17
  96. package/dist/types-ts4.5/components/PrimaryItemsContainer/index.d.ts +0 -10
  97. package/dist/types-ts4.5/components/PrimaryItemsContainer/skeleton.d.ts +0 -7
  98. package/dist/types-ts4.5/components/PrimaryItemsContainer/types.d.ts +0 -10
  99. package/dist/types-ts4.5/components/ProductHome/app-home.d.ts +0 -20
  100. package/dist/types-ts4.5/components/ProductHome/custom-product-home.d.ts +0 -18
  101. package/dist/types-ts4.5/components/ProductHome/index.d.ts +0 -2
  102. package/dist/types-ts4.5/components/ProductHome/product-home.d.ts +0 -22
  103. package/dist/types-ts4.5/components/ProductHome/skeleton.d.ts +0 -8
  104. package/dist/types-ts4.5/components/ProductHome/types.d.ts +0 -154
  105. package/dist/types-ts4.5/components/ProductHome/utils.d.ts +0 -1
  106. package/dist/types-ts4.5/components/Profile/index.d.ts +0 -16
  107. package/dist/types-ts4.5/components/Profile/profile.d.ts +0 -14
  108. package/dist/types-ts4.5/components/Profile/skeleton.d.ts +0 -2
  109. package/dist/types-ts4.5/components/Profile/types.d.ts +0 -5
  110. package/dist/types-ts4.5/components/Search/index.d.ts +0 -17
  111. package/dist/types-ts4.5/components/Search/skeleton.d.ts +0 -6
  112. package/dist/types-ts4.5/components/Search/types.d.ts +0 -19
  113. package/dist/types-ts4.5/components/Settings/index.d.ts +0 -13
  114. package/dist/types-ts4.5/components/Settings/types.d.ts +0 -5
  115. package/dist/types-ts4.5/components/SignIn/index.d.ts +0 -13
  116. package/dist/types-ts4.5/components/SignIn/skeleton.d.ts +0 -2
  117. package/dist/types-ts4.5/components/SignIn/types.d.ts +0 -5
  118. package/dist/types-ts4.5/components/SkeletonCreateButton/index.d.ts +0 -17
  119. package/dist/types-ts4.5/components/SkeletonCreateButton/types.d.ts +0 -15
  120. package/dist/types-ts4.5/components/SkeletonIconButton/index.d.ts +0 -17
  121. package/dist/types-ts4.5/components/SkeletonIconButton/types.d.ts +0 -21
  122. package/dist/types-ts4.5/components/SkeletonPrimaryButton/index.d.ts +0 -17
  123. package/dist/types-ts4.5/components/SkeletonPrimaryButton/types.d.ts +0 -28
  124. package/dist/types-ts4.5/controllers/overflow/index.d.ts +0 -37
  125. package/dist/types-ts4.5/controllers/overflow/overflow-context.d.ts +0 -17
  126. package/dist/types-ts4.5/controllers/overflow/overflow-provider.d.ts +0 -3
  127. package/dist/types-ts4.5/controllers/overflow/types.d.ts +0 -7
  128. package/dist/types-ts4.5/controllers/overflow/use-overflow-controller.d.ts +0 -7
  129. package/dist/types-ts4.5/controllers/overflow/use-overflow-status.d.ts +0 -11
  130. package/dist/types-ts4.5/entry-points/app-switcher-types.d.ts +0 -1
  131. package/dist/types-ts4.5/entry-points/app-switcher.d.ts +0 -2
  132. package/dist/types-ts4.5/entry-points/atlassian-navigation.d.ts +0 -1
  133. package/dist/types-ts4.5/entry-points/constants.d.ts +0 -1
  134. package/dist/types-ts4.5/entry-points/create-types.d.ts +0 -1
  135. package/dist/types-ts4.5/entry-points/create.d.ts +0 -1
  136. package/dist/types-ts4.5/entry-points/custom-product-home.d.ts +0 -1
  137. package/dist/types-ts4.5/entry-points/help-types.d.ts +0 -1
  138. package/dist/types-ts4.5/entry-points/help.d.ts +0 -1
  139. package/dist/types-ts4.5/entry-points/icon-button-types.d.ts +0 -1
  140. package/dist/types-ts4.5/entry-points/icon-button.d.ts +0 -1
  141. package/dist/types-ts4.5/entry-points/notifications-types.d.ts +0 -1
  142. package/dist/types-ts4.5/entry-points/notifications.d.ts +0 -1
  143. package/dist/types-ts4.5/entry-points/overflow.d.ts +0 -1
  144. package/dist/types-ts4.5/entry-points/primary-button-types.d.ts +0 -1
  145. package/dist/types-ts4.5/entry-points/primary-button.d.ts +0 -1
  146. package/dist/types-ts4.5/entry-points/primary-dropdown-button-types.d.ts +0 -1
  147. package/dist/types-ts4.5/entry-points/primary-dropdown-button.d.ts +0 -1
  148. package/dist/types-ts4.5/entry-points/product-home-types.d.ts +0 -1
  149. package/dist/types-ts4.5/entry-points/product-home.d.ts +0 -1
  150. package/dist/types-ts4.5/entry-points/profile-types.d.ts +0 -1
  151. package/dist/types-ts4.5/entry-points/profile.d.ts +0 -1
  152. package/dist/types-ts4.5/entry-points/search-types.d.ts +0 -1
  153. package/dist/types-ts4.5/entry-points/search.d.ts +0 -1
  154. package/dist/types-ts4.5/entry-points/settings-types.d.ts +0 -1
  155. package/dist/types-ts4.5/entry-points/settings.d.ts +0 -1
  156. package/dist/types-ts4.5/entry-points/sign-in-types.d.ts +0 -1
  157. package/dist/types-ts4.5/entry-points/sign-in.d.ts +0 -1
  158. package/dist/types-ts4.5/entry-points/skeleton-base-types.d.ts +0 -1
  159. package/dist/types-ts4.5/entry-points/skeleton-base.d.ts +0 -1
  160. package/dist/types-ts4.5/entry-points/skeleton-create-button-types.d.ts +0 -1
  161. package/dist/types-ts4.5/entry-points/skeleton-create-button.d.ts +0 -1
  162. package/dist/types-ts4.5/entry-points/skeleton-help-button.d.ts +0 -3
  163. package/dist/types-ts4.5/entry-points/skeleton-icon-button-types.d.ts +0 -1
  164. package/dist/types-ts4.5/entry-points/skeleton-icon-button.d.ts +0 -1
  165. package/dist/types-ts4.5/entry-points/skeleton-notification-button.d.ts +0 -2
  166. package/dist/types-ts4.5/entry-points/skeleton-primary-button-types.d.ts +0 -1
  167. package/dist/types-ts4.5/entry-points/skeleton-primary-button.d.ts +0 -1
  168. package/dist/types-ts4.5/entry-points/skeleton-settings-button.d.ts +0 -2
  169. package/dist/types-ts4.5/entry-points/skeleton-switcher-button.d.ts +0 -2
  170. package/dist/types-ts4.5/entry-points/theme-generator.d.ts +0 -1
  171. package/dist/types-ts4.5/entry-points/theme-provider.d.ts +0 -1
  172. package/dist/types-ts4.5/entry-points/theme-types.d.ts +0 -1
  173. package/dist/types-ts4.5/entry-points/themes.d.ts +0 -1
  174. package/dist/types-ts4.5/entry-points/types.d.ts +0 -1
  175. package/dist/types-ts4.5/index.d.ts +0 -36
  176. package/dist/types-ts4.5/nav4-skeleton-help-button.d.ts +0 -8
  177. package/dist/types-ts4.5/nav4-skeleton-notification-button.d.ts +0 -9
  178. package/dist/types-ts4.5/nav4-skeleton-settings-button.d.ts +0 -8
  179. package/dist/types-ts4.5/nav4-skeleton-switcher-button.d.ts +0 -8
  180. package/dist/types-ts4.5/skeleton-help-button.d.ts +0 -19
  181. package/dist/types-ts4.5/skeleton-notification-button.d.ts +0 -20
  182. package/dist/types-ts4.5/skeleton-settings-button.d.ts +0 -20
  183. package/dist/types-ts4.5/skeleton-switcher-button.d.ts +0 -35
  184. package/dist/types-ts4.5/skeleton.d.ts +0 -5
  185. package/dist/types-ts4.5/theme/atlassian-theme.d.ts +0 -5
  186. package/dist/types-ts4.5/theme/convert-hex-shorthand.d.ts +0 -1
  187. package/dist/types-ts4.5/theme/default-theme-brand-refresh.d.ts +0 -1
  188. package/dist/types-ts4.5/theme/default-theme.d.ts +0 -6
  189. package/dist/types-ts4.5/theme/generate-text-color.d.ts +0 -1
  190. package/dist/types-ts4.5/theme/get-box-shadow.d.ts +0 -1
  191. package/dist/types-ts4.5/theme/get-contrast-color.d.ts +0 -1
  192. package/dist/types-ts4.5/theme/hex-to-rgba.d.ts +0 -1
  193. package/dist/types-ts4.5/theme/index.d.ts +0 -6
  194. package/dist/types-ts4.5/theme/theme-context.d.ts +0 -3
  195. package/dist/types-ts4.5/theme/theme-generator.d.ts +0 -7
  196. package/dist/types-ts4.5/theme/theme-helpers.d.ts +0 -5
  197. package/dist/types-ts4.5/theme/theme-provider.d.ts +0 -11
  198. package/dist/types-ts4.5/theme/themes.d.ts +0 -6
  199. package/dist/types-ts4.5/theme/types.d.ts +0 -97
  200. package/dist/types-ts4.5/theme/use-theme.d.ts +0 -2
  201. package/dist/types-ts4.5/utils.d.ts +0 -10
@@ -1,10 +0,0 @@
1
- import { type ComponentType, type ReactNode } from 'react';
2
- export type BadgeProps = {
3
- id: string;
4
- badge: ComponentType<{}>;
5
- children: ReactNode;
6
- /**
7
- * Used to override the accessibility role for the element.
8
- */
9
- role?: 'presentation' | 'listitem';
10
- };
@@ -1,18 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React from 'react';
6
- import { type CreateProps } from './types';
7
- /**
8
- * _Create__
9
- *
10
- * A call to action button that can be passed into `AtlassianNavigation`'s
11
- * `renderCreate` prop. It is shown after all other primary buttons.
12
- *
13
- * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#create)
14
- * - [Code](https://atlassian.design/components/atlassian-navigation/code)
15
- *
16
- * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
17
- */
18
- export declare const Create: ({ onClick, href, text, buttonTooltip, iconButtonTooltip, testId, label, }: CreateProps) => React.JSX.Element;
@@ -1,3 +0,0 @@
1
- import { type ThemeProps, type ThemeTokens } from '@atlaskit/button/types';
2
- import { type NavigationTheme } from '../../theme';
3
- export declare const getCreateButtonTheme: ({ mode: { create } }: NavigationTheme) => (current: (props: ThemeProps) => ThemeTokens, props: ThemeProps) => ThemeTokens;
@@ -1,39 +0,0 @@
1
- import type React from 'react';
2
- export interface CreateProps {
3
- /**
4
- * Primary text for the call to action.
5
- */
6
- text: string;
7
- /**
8
- * Aria-label attribute for create button
9
- */
10
- label?: string;
11
- /**
12
- * Text for the button tooltip when seen on large viewports.
13
- */
14
- buttonTooltip?: React.ReactNode;
15
- /**
16
- * Text for the icon button tooltip when seen on small viewports.
17
- */
18
- iconButtonTooltip?: React.ReactNode;
19
- /**
20
- * Click handler.
21
- * See @atlaskit/analytics-next for analyticsEvent type information
22
- */
23
- onClick?: (e: React.MouseEvent<HTMLElement>, analyticsEvent: any) => void;
24
- /**
25
- * Causes the Create action to be rendered as a link. This is suitable for when the Create action is handled as a full page rather than in a modal-dialog.
26
- */
27
- href?: string;
28
- /**
29
- * A `testId` prop is provided for specified elements,
30
- * which is a unique string that appears as a data attribute `data-testid` in the rendered code,
31
- * serving as a hook for automated tests.
32
- *
33
- * Will set these elements when defined:
34
- *
35
- * - Create button shown on large screen sizes - `{testId}-button`
36
- * - Create icon button shown on small screen sizes - `{testId}-icon-button`
37
- */
38
- testId?: string;
39
- }
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { type HelpProps } from './types';
3
- /**
4
- * __Help__
5
- *
6
- * A help button that can be passed into `AtlassianNavigation`'s `renderHelp` prop.
7
- *
8
- * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#help)
9
- * - [Code](https://atlassian.design/components/atlassian-navigation/code)
10
- *
11
- * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
12
- */
13
- export declare const Help: React.ForwardRefExoticComponent<React.PropsWithoutRef<HelpProps> & React.RefAttributes<any>>;
@@ -1,9 +0,0 @@
1
- import { type ComponentType } from 'react';
2
- import { type BaseIconButtonProps } from '../IconButton/types';
3
- export type HelpProps = BaseIconButtonProps & {
4
- /**
5
- * Component to be used for the badge.
6
- * Generally you'll want to use `NotificationIndicator` from [`@atlaskit/notification-indicator`](/packages/notifications/notification-indicator).
7
- */
8
- badge?: ComponentType<{}>;
9
- };
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { type IconButtonProps } from './types';
3
- /**
4
- * __Icon button__
5
- *
6
- * An icon button is used to create navigation items such as Help, Settings
7
- * and Notifications. You can use this component to create your own items to
8
- * pass into `AtlassianNavigation`'s render props, but where possible you should
9
- * rely on the defaults.
10
- *
11
- * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
12
- */
13
- export declare const IconButton: React.ForwardRefExoticComponent<React.PropsWithoutRef<IconButtonProps> & React.RefAttributes<HTMLElement>>;
@@ -1,7 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React from 'react';
6
- import { type IconButtonSkeletonProps } from './types';
7
- export declare const IconButtonSkeleton: ({ className, marginLeft, marginRight, size, }: IconButtonSkeletonProps) => React.JSX.Element;
@@ -1,3 +0,0 @@
1
- import { type ThemeProps, type ThemeTokens } from '@atlaskit/button/types';
2
- import { type NavigationTheme } from '../../theme';
3
- export declare const getIconButtonTheme: ({ mode: { iconButton } }: NavigationTheme) => (current: (props: ThemeProps) => ThemeTokens, props: ThemeProps) => ThemeTokens;
@@ -1,104 +0,0 @@
1
- import { type CustomThemeButtonProps } from '@atlaskit/button/types';
2
- export type IconButtonProps = BaseIconButtonProps & {
3
- /**
4
- * Icon for the button.
5
- */
6
- icon: CustomThemeButtonProps['iconBefore'];
7
- /**
8
- * Theme for the icon button.
9
- */
10
- theme?: CustomThemeButtonProps['theme'];
11
- /**
12
- * Controls tooltip announcement
13
- */
14
- isTooltipAnnouncementDisabled?: boolean;
15
- };
16
- /**
17
- * We aren't inheriting the types from button here because it blows up ERT.
18
- */
19
- export interface BaseIconButtonProps {
20
- /**
21
- * Unique id for the button.
22
- */
23
- id?: string;
24
- /**
25
- * On click handler.
26
- * Second argument is the instrumented analytics event.
27
- * See @atlaskit/analytics-next for analyticsEvent type information
28
- */
29
- onClick?: (event: React.MouseEvent<HTMLElement>, analyticsEvent: any) => void;
30
- /**
31
- * A `testId` prop is provided for specified elements,
32
- * which is a unique string that appears as a data attribute `data-testid` in the rendered code,
33
- * serving as a hook for automated tests
34
- */
35
- testId?: string;
36
- /**
37
- * Text that will be displayed in the tooltip when hovered or focused on the button.
38
- */
39
- tooltip: React.ReactNode;
40
- /**
41
- * Called when the mouse is initially clicked on the element.
42
- */
43
- onMouseDown?: React.MouseEventHandler<HTMLElement>;
44
- /**
45
- * Called when the mouse enters the element container.
46
- */
47
- onMouseEnter?: React.MouseEventHandler<HTMLElement>;
48
- /**
49
- * Called when the mouse leaves the element container.
50
- */
51
- onMouseLeave?: React.MouseEventHandler<HTMLElement>;
52
- /**
53
- * Causes the button to be disabled.
54
- */
55
- isDisabled?: boolean;
56
- /**
57
- * If wanting to link to another page you can define the href.
58
- */
59
- href?: string;
60
- /**
61
- * If defining `href` you may want to define `target` as well.
62
- */
63
- target?: string;
64
- /**
65
- * Allows for overriding the component used to render the button.
66
- * This is primarily intended for compatibility with custom
67
- * routing libraries when using the `href` prop.
68
- * For further usage information, refer to the [documentation for button](/components/button/code).
69
- * @example
70
- * ```tsx
71
- * <Settings
72
- * component={CustomRouterLink}
73
- * href="/path/to/url"
74
- * />
75
- * ```
76
- */
77
- component?: CustomThemeButtonProps['component'];
78
- /**
79
- * Handler for the mouse up event.
80
- */
81
- onMouseUp?: React.MouseEventHandler<HTMLElement>;
82
- /**
83
- * Handler called when the button gains focus.
84
- */
85
- onFocus?: React.FocusEventHandler<HTMLElement>;
86
- /**
87
- * Handler called when the button loses focus.
88
- */
89
- onBlur?: React.FocusEventHandler<HTMLElement>;
90
- /**
91
- * Makes the element appear selected.
92
- */
93
- isSelected?: boolean;
94
- /**
95
- * Adds a label to the button for users of assistive technologies.
96
- */
97
- label?: string;
98
- }
99
- export interface IconButtonSkeletonProps {
100
- className?: string;
101
- marginLeft?: number;
102
- marginRight?: number;
103
- size?: number;
104
- }
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import { type NotificationsProps } from './types';
3
- /**
4
- * __Notifications__
5
- *
6
- * A notifications button that can be passed into `AtlassianNavigation`'s
7
- * `renderNotifications` prop.
8
- *
9
- * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#notifications)
10
- * - [Code](https://atlassian.design/components/atlassian-navigation/code)
11
- *
12
- * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
13
- */
14
- export declare const Notifications: React.ForwardRefExoticComponent<React.PropsWithoutRef<NotificationsProps> & React.RefAttributes<any>>;
@@ -1,9 +0,0 @@
1
- import { type ComponentType } from 'react';
2
- import { type BaseIconButtonProps } from '../IconButton/types';
3
- export type NotificationsProps = BaseIconButtonProps & {
4
- /**
5
- * Component to be used for the badge.
6
- * Generally you'll want to use `NotificationIndicator` from [`@atlaskit/notification-indicator`](/packages/notifications/notification-indicator).
7
- */
8
- badge: ComponentType<{}>;
9
- };
@@ -1,13 +0,0 @@
1
- import { type PrimaryButtonProps } from './types';
2
- /**
3
- * __Primary button__
4
- *
5
- * A primary button allows you to add top-level navigation items.
6
- * Should be passed into `AtlassianNavigation`'s `primaryItems` prop.
7
- *
8
- * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#dropdown-menu)
9
- * - [Code](https://atlassian.design/components/atlassian-navigation/code)
10
- *
11
- * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
12
- */
13
- export declare const PrimaryButton: React.ForwardRefExoticComponent<React.PropsWithoutRef<PrimaryButtonProps> & React.RefAttributes<HTMLElement>>;
@@ -1,7 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React from 'react';
6
- import { type PrimaryButtonSkeletonProps } from './types';
7
- export declare const PrimaryButtonSkeleton: (props: PrimaryButtonSkeletonProps) => React.JSX.Element;
@@ -1,3 +0,0 @@
1
- import { type ThemeProps, type ThemeTokens } from '@atlaskit/button/types';
2
- import { type NavigationTheme } from '../../theme';
3
- export declare const getPrimaryButtonTheme: ({ mode: { primaryButton } }: NavigationTheme) => (current: (props: ThemeProps) => ThemeTokens, props: ThemeProps) => ThemeTokens;
@@ -1,51 +0,0 @@
1
- import { type AllHTMLAttributes, type ComponentType, type ElementType } from 'react';
2
- import { type CustomThemeButtonProps } from '@atlaskit/button/types';
3
- import type { TooltipProps } from '@atlaskit/tooltip';
4
- export type PrimaryButtonProps = Omit<CustomThemeButtonProps, 'appearance' | 'onClick'> & {
5
- /**
6
- * Allows for overriding the component used to render the button.
7
- * This is primarily intended for compatibility with custom
8
- * routing libraries when using the `href` prop.
9
- *
10
- * For further usage information, refer to the [documentation for button](https://atlassian.design/components/button/button-legacy/code).
11
- *
12
- * @example
13
- * ```tsx
14
- * <Settings
15
- * component={CustomRouterLink}
16
- * href="/path/to/url"
17
- * />
18
- *```
19
- */
20
- component?: ComponentType<AllHTMLAttributes<HTMLElement>> | ElementType<any>;
21
- /**
22
- * Will set the appearance of the button to look highlighted.
23
- */
24
- isHighlighted?: boolean;
25
- /**
26
- * A `testId` prop is provided for specified elements,
27
- * which is a unique string that appears as a data attribute `data-testid` in the rendered code,
28
- * serving as a hook for automated tests
29
- */
30
- testId?: string;
31
- /**
32
- * Optional text to show when the button is focused or hovered.
33
- */
34
- tooltip?: React.ReactNode;
35
- /**
36
- * Display a keyboard shortcut in the tooltip.
37
- *
38
- * Keys will be displayed as individual keyboard key segments after the tooltip content.
39
- *
40
- * Note: it will only be used if the `tooltip` prop is also provided.
41
- */
42
- shortcut?: TooltipProps['shortcut'];
43
- /**
44
- * On click handler.
45
- * See @atlaskit/analytics-next for analyticsEvent type information
46
- */
47
- onClick?: (event: React.MouseEvent<HTMLElement>, analyticsEvent: any) => void;
48
- };
49
- export type PrimaryButtonSkeletonProps = {
50
- className?: string;
51
- };
@@ -1,13 +0,0 @@
1
- import { type PrimaryDropdownButtonProps } from './types';
2
- /**
3
- * __Primary dropdown button__
4
- *
5
- * A primary dropdown button allows you to add dropdown menus to the navigation.
6
- * Should be passed into `AtlassianNavigation`'s `primaryItems` prop.
7
- *
8
- * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#button)
9
- * - [Code](https://atlassian.design/components/atlassian-navigation/code)
10
- *
11
- * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
12
- */
13
- export declare const PrimaryDropdownButton: React.ForwardRefExoticComponent<React.PropsWithoutRef<PrimaryDropdownButtonProps> & React.RefAttributes<HTMLElement>>;
@@ -1,17 +0,0 @@
1
- import { type PrimaryButtonProps } from '../PrimaryButton/types';
2
- export type PrimaryDropdownButtonProps = Omit<PrimaryButtonProps, 'iconAfter'> & {
3
- /**
4
- * Will set the appearance of the button to look highlighted.
5
- */
6
- isHighlighted?: boolean;
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
- * Optional text to show when the button is focused or hovered.
15
- */
16
- tooltip?: React.ReactNode;
17
- };
@@ -1,10 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React from 'react';
6
- import { type NavigationTheme } from '../../theme';
7
- import { type PrimaryItemsContainerProps } from './types';
8
- export declare const PrimaryItemsContainer: ({ moreLabel, items, create: Create, testId, }: PrimaryItemsContainerProps & {
9
- theme?: NavigationTheme;
10
- }) => React.JSX.Element;
@@ -1,7 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React, { type MemoExoticComponent } from 'react';
6
- import { type PrimaryItemsContainerSkeletonProps } from './types';
7
- export declare const PrimaryItemsContainerSkeleton: MemoExoticComponent<({ count }: PrimaryItemsContainerSkeletonProps) => React.JSX.Element>;
@@ -1,10 +0,0 @@
1
- import { type ComponentType, type ReactNode, type ReactNodeArray } from 'react';
2
- export type PrimaryItemsContainerProps = {
3
- moreLabel: ReactNode;
4
- items: ReactNodeArray;
5
- create?: ComponentType<{}>;
6
- testId?: string;
7
- };
8
- export type PrimaryItemsContainerSkeletonProps = {
9
- count: number;
10
- };
@@ -1,20 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React from 'react';
6
- import { type AppHomeProps } from './types';
7
- /**
8
- * __App home__
9
- *
10
- * A variant of the ProductHome component designed for use with the updated app logos.
11
- *
12
- * Takes an icon, displayed at all viewport sizes, and a product name, which is
13
- * displayed only at larger viewport sizes.
14
- *
15
- * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#app-product-home)
16
- * - [Code](https://atlassian.design/components/atlassian-navigation/code)
17
- *
18
- * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
19
- */
20
- export declare const AppHome: ({ "aria-label": ariaLabel, href, name, icon: Icon, onClick, onMouseDown, siteTitle, testId, ...rest }: AppHomeProps) => React.JSX.Element;
@@ -1,18 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React from 'react';
6
- import { type CustomProductHomeProps } from './types';
7
- /**
8
- * __Custom product home__
9
- *
10
- * Use `CustomProductHome` to provide a custom logo and icon with URLs.
11
- *
12
- * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#custom-product-home)
13
- * - [Code](https://atlassian.design/components/atlassian-navigation/code)
14
- *
15
- * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
16
- */
17
- declare const CustomProductHome: (props: CustomProductHomeProps) => React.JSX.Element;
18
- export default CustomProductHome;
@@ -1,2 +0,0 @@
1
- export { default as ProductHome, AppHome } from './product-home';
2
- export { default as CustomProductHome } from './custom-product-home';
@@ -1,22 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React from 'react';
6
- import { type ProductHomeProps } from './types';
7
- /**
8
- * __Product home__
9
- *
10
- * The ProductHome component displays the product visual identity composed of:
11
- * logo, icon, and optional text. Values for logo and icon are never displayed
12
- * at the same time, where icon is used only when space is restricted. Should be
13
- * passed into `AtlassianNavigation`'s `renderProductHome` prop.
14
- *
15
- * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#product-home)
16
- * - [Code](https://atlassian.design/components/atlassian-navigation/code)
17
- *
18
- * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
19
- */
20
- declare const ProductHome: ({ "aria-label": ariaLabel, href, icon: Icon, logo: Logo, logoMaxWidth, onClick, onMouseDown, siteTitle, testId, ...rest }: ProductHomeProps) => React.JSX.Element;
21
- export default ProductHome;
22
- export { AppHome } from './app-home';
@@ -1,8 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React from 'react';
6
- export declare const ProductHomeSkeleton: ({ showSiteName, }: {
7
- showSiteName: boolean;
8
- }) => React.JSX.Element;
@@ -1,154 +0,0 @@
1
- import { type ComponentType, type MouseEvent } from 'react';
2
- import { type 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<Omit<LogoProps, 'appearance'> & {
9
- size?: 'small';
10
- }>>;
11
- /**
12
- * The product logo,
13
- * visible on larger screen sizes.
14
- */
15
- logo: ComponentType<Partial<Omit<LogoProps, 'appearance'> & {
16
- size?: 'small';
17
- }>>;
18
- /**
19
- * Maximum width in pixel, that logo can acquire. Defaults to 260px.
20
- */
21
- logoMaxWidth?: number;
22
- /**
23
- * Optional onClick handler.
24
- */
25
- onClick?: (event: MouseEvent<HTMLElement>) => void;
26
- /**
27
- * Optional mouseDown handler.
28
- */
29
- onMouseDown?: (event: MouseEvent<HTMLElement>) => void;
30
- /**
31
- * Href to be passed to product home.
32
- * Will add an interactive look and feel when defined.
33
- */
34
- href?: string;
35
- /**
36
- * Name of the site that appears next to the logo.
37
- */
38
- siteTitle?: string;
39
- /**
40
- A `testId` prop is provided for specified elements,
41
- which is a unique string that appears as a data attribute `data-testid` in the rendered code,
42
- serving as a hook for automated tests.
43
-
44
- Will set these elements when defined:
45
-
46
- - Root element of the component - `{testId}-container`
47
- - Product logo shown at large screen sizes - `{testId}-logo`
48
- - Product icon shown at small screen sizes - `{testId}-icon`
49
- - Site title - `{testId}-site-title`
50
- */
51
- testId?: string;
52
- /**
53
- * Provide an accessible label, often used by screen readers.
54
- */
55
- 'aria-label'?: string;
56
- }
57
- export interface AppHomeProps {
58
- /**
59
- * The product icon.
60
- * Expected to be an Icon from the Atlaskit Logo package. Visible at all screen sizes.
61
- */
62
- icon: ComponentType<LogoProps>;
63
- /**
64
- * The name of the app.
65
- * Displays next to the icon, visible at larger screen sizes.
66
- */
67
- name: string;
68
- /**
69
- * Optional onClick handler.
70
- */
71
- onClick?: (event: MouseEvent<HTMLElement>) => void;
72
- /**
73
- * Optional mouseDown handler.
74
- */
75
- onMouseDown?: (event: MouseEvent<HTMLElement>) => void;
76
- /**
77
- * Href to be passed to product home.
78
- * Will add an interactive look and feel when defined.
79
- */
80
- href?: string;
81
- /**
82
- * Name of the site that appears next to the logo.
83
- */
84
- siteTitle?: string;
85
- /**
86
- A `testId` prop is provided for specified elements,
87
- which is a unique string that appears as a data attribute `data-testid` in the rendered code,
88
- serving as a hook for automated tests.
89
-
90
- Will set these elements when defined:
91
-
92
- - Root element of the component - `{testId}-container`
93
- - Product logo shown at large screen sizes - `{testId}-logo`
94
- - Product icon shown at small screen sizes - `{testId}-icon`
95
- - Site title - `{testId}-site-title`
96
- */
97
- testId?: string;
98
- /**
99
- * Provide an accessible label, often used by screen readers.
100
- */
101
- 'aria-label'?: string;
102
- }
103
- export interface CustomProductHomeProps {
104
- /**
105
- * Alt text for the icon that is displayed on small viewports.
106
- */
107
- iconAlt: string;
108
- /**
109
- * Url for the icon that is displayed on small viewports.
110
- */
111
- iconUrl: string;
112
- /**
113
- * Alt text for the icon that is displayed on large viewports.
114
- */
115
- logoAlt: string;
116
- /**
117
- * Url for the icon that is displayed on large viewports.
118
- */
119
- logoUrl: string;
120
- /**
121
- * Maximum width of the logo, in pixels. Defaults to 260px.
122
- */
123
- logoMaxWidth?: number;
124
- /**
125
- * Optional onClick handler.
126
- */
127
- onClick?: (event: MouseEvent<HTMLElement>) => void;
128
- /**
129
- * Optional mouseDown handler.
130
- */
131
- onMouseDown?: (event: MouseEvent<HTMLElement>) => void;
132
- /**
133
- * Href to be passed to product home.
134
- * Will add an interactive look and feel when defined.
135
- */
136
- href?: string;
137
- /**
138
- * Name of the site that appears next to the logo.
139
- */
140
- siteTitle?: string;
141
- /**
142
- A `testId` prop is provided for specified elements,
143
- which is a unique string that appears as a data attribute `data-testid` in the rendered code,
144
- serving as a hook for automated tests.
145
-
146
- Will set these elements when defined:
147
-
148
- - Root element of the component - `{testId}-container`
149
- - Product logo shown at large screen sizes - `{testId}-logo`
150
- - Product icon shown at small screen sizes - `{testId}-icon`
151
- - Site title - `{testId}-site-title`
152
- */
153
- testId?: string;
154
- }
@@ -1 +0,0 @@
1
- export declare const getTag: (onClick?: (arg: any) => void, href?: string) => "button" | "a" | "div";
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import { type ProfileProps } from './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
- * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
13
- */
14
- export declare const Profile: React.ForwardRefExoticComponent<React.PropsWithoutRef<ProfileProps> & React.RefAttributes<HTMLElement>>;
15
- declare const _default: (_props: ProfileProps) => void;
16
- export default _default;