@atlaskit/atlassian-navigation 5.7.2 → 5.7.4
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.
- package/CHANGELOG.md +13 -0
- package/afm-cc/tsconfig.json +0 -1
- package/afm-products/tsconfig.json +0 -1
- package/dist/cjs/common/constants.js +3 -0
- package/dist/cjs/components/AppSwitcher/app-switcher-nav4.js +61 -0
- package/dist/cjs/components/AppSwitcher/app-switcher.js +79 -0
- package/dist/cjs/components/AppSwitcher/index.js +1 -119
- package/dist/cjs/components/AtlassianNavigation/index.js +6 -0
- package/dist/cjs/components/AtlassianNavigation/skeleton.js +2 -0
- package/dist/cjs/components/Create/index.js +2 -0
- package/dist/cjs/components/Help/index.js +2 -0
- package/dist/cjs/components/IconButton/index.js +1 -0
- package/dist/cjs/components/Notifications/index.js +2 -0
- package/dist/cjs/components/PrimaryButton/index.js +2 -0
- package/dist/cjs/components/PrimaryDropdownButton/index.js +2 -0
- package/dist/cjs/components/PrimaryItemsContainer/index.js +5 -4
- package/dist/cjs/components/ProductHome/app-home.js +180 -0
- package/dist/cjs/components/ProductHome/custom-product-home.js +2 -0
- package/dist/cjs/components/ProductHome/product-home.js +21 -110
- package/dist/cjs/components/Profile/index.js +2 -0
- package/dist/cjs/components/Profile/profile.js +74 -0
- package/dist/cjs/components/Search/index.js +2 -0
- package/dist/cjs/components/Settings/index.js +2 -0
- package/dist/cjs/components/SignIn/index.js +2 -0
- package/dist/cjs/controllers/overflow/index.js +2 -0
- package/dist/cjs/controllers/overflow/overflow-context.js +16 -0
- package/dist/cjs/controllers/overflow/overflow-provider.js +27 -0
- package/dist/cjs/controllers/overflow/use-overflow-controller.js +111 -0
- package/dist/cjs/controllers/overflow/use-overflow-status.js +20 -0
- package/dist/cjs/entry-points/app-switcher.js +4 -3
- package/dist/cjs/entry-points/overflow.js +2 -2
- package/dist/cjs/entry-points/profile.js +2 -2
- package/dist/cjs/entry-points/skeleton-help-button.js +2 -1
- package/dist/cjs/index.js +8 -7
- package/dist/cjs/nav4-skeleton-help-button.js +33 -0
- package/dist/cjs/skeleton-help-button.js +1 -24
- package/dist/cjs/skeleton-switcher-button.js +6 -0
- package/dist/cjs/theme/atlassian-theme.js +3 -0
- package/dist/cjs/theme/convert-hex-shorthand.js +47 -0
- package/dist/cjs/theme/default-theme-brand-refresh.js +10 -0
- package/dist/cjs/theme/default-theme.js +1 -2
- package/dist/cjs/theme/generate-text-color.js +13 -0
- package/dist/cjs/theme/get-contrast-color.js +12 -0
- package/dist/cjs/theme/hex-to-rgba.js +18 -0
- package/dist/cjs/theme/index.js +2 -2
- package/dist/cjs/theme/theme-generator.js +22 -13
- package/dist/cjs/theme/theme-provider.js +2 -0
- package/dist/cjs/theme/themes.js +3 -0
- package/dist/es2019/common/constants.js +3 -0
- package/dist/es2019/components/AppSwitcher/app-switcher-nav4.js +52 -0
- package/dist/es2019/components/AppSwitcher/app-switcher.js +70 -0
- package/dist/es2019/components/AppSwitcher/index.js +0 -116
- package/dist/es2019/components/AtlassianNavigation/index.js +6 -0
- package/dist/es2019/components/AtlassianNavigation/skeleton.js +2 -0
- package/dist/es2019/components/Create/index.js +2 -0
- package/dist/es2019/components/Help/index.js +2 -0
- package/dist/es2019/components/IconButton/index.js +1 -0
- package/dist/es2019/components/Notifications/index.js +2 -0
- package/dist/es2019/components/PrimaryButton/index.js +2 -0
- package/dist/es2019/components/PrimaryDropdownButton/index.js +2 -0
- package/dist/es2019/components/PrimaryItemsContainer/index.js +2 -1
- package/dist/es2019/components/ProductHome/app-home.js +185 -0
- package/dist/es2019/components/ProductHome/custom-product-home.js +2 -0
- package/dist/es2019/components/ProductHome/product-home.js +5 -110
- package/dist/es2019/components/Profile/index.js +2 -0
- package/dist/es2019/components/Profile/profile.js +65 -0
- package/dist/es2019/components/Search/index.js +2 -0
- package/dist/es2019/components/Settings/index.js +2 -0
- package/dist/es2019/components/SignIn/index.js +2 -0
- package/dist/es2019/controllers/overflow/index.js +2 -0
- package/dist/es2019/controllers/overflow/overflow-context.js +8 -0
- package/dist/es2019/controllers/overflow/overflow-provider.js +18 -0
- package/dist/es2019/controllers/overflow/use-overflow-controller.js +89 -0
- package/dist/es2019/controllers/overflow/use-overflow-status.js +13 -0
- package/dist/es2019/entry-points/app-switcher.js +2 -1
- package/dist/es2019/entry-points/overflow.js +1 -1
- package/dist/es2019/entry-points/profile.js +1 -1
- package/dist/es2019/entry-points/skeleton-help-button.js +2 -1
- package/dist/es2019/index.js +4 -3
- package/dist/es2019/nav4-skeleton-help-button.js +24 -0
- package/dist/es2019/skeleton-help-button.js +1 -22
- package/dist/es2019/skeleton-switcher-button.js +7 -0
- package/dist/es2019/theme/atlassian-theme.js +3 -0
- package/dist/es2019/theme/convert-hex-shorthand.js +27 -0
- package/dist/es2019/theme/default-theme-brand-refresh.js +3 -0
- package/dist/es2019/theme/default-theme.js +0 -1
- package/dist/es2019/theme/generate-text-color.js +6 -0
- package/dist/es2019/theme/get-contrast-color.js +3 -0
- package/dist/es2019/theme/hex-to-rgba.js +8 -0
- package/dist/es2019/theme/index.js +1 -1
- package/dist/es2019/theme/theme-generator.js +11 -2
- package/dist/es2019/theme/theme-provider.js +2 -0
- package/dist/es2019/theme/themes.js +3 -0
- package/dist/esm/common/constants.js +3 -0
- package/dist/esm/components/AppSwitcher/app-switcher-nav4.js +52 -0
- package/dist/esm/components/AppSwitcher/app-switcher.js +70 -0
- package/dist/esm/components/AppSwitcher/index.js +0 -115
- package/dist/esm/components/AtlassianNavigation/index.js +6 -0
- package/dist/esm/components/AtlassianNavigation/skeleton.js +2 -0
- package/dist/esm/components/Create/index.js +2 -0
- package/dist/esm/components/Help/index.js +2 -0
- package/dist/esm/components/IconButton/index.js +1 -0
- package/dist/esm/components/Notifications/index.js +2 -0
- package/dist/esm/components/PrimaryButton/index.js +2 -0
- package/dist/esm/components/PrimaryDropdownButton/index.js +2 -0
- package/dist/esm/components/PrimaryItemsContainer/index.js +2 -1
- package/dist/esm/components/ProductHome/app-home.js +172 -0
- package/dist/esm/components/ProductHome/custom-product-home.js +2 -0
- package/dist/esm/components/ProductHome/product-home.js +16 -110
- package/dist/esm/components/Profile/index.js +2 -0
- package/dist/esm/components/Profile/profile.js +65 -0
- package/dist/esm/components/Search/index.js +2 -0
- package/dist/esm/components/Settings/index.js +2 -0
- package/dist/esm/components/SignIn/index.js +2 -0
- package/dist/esm/controllers/overflow/index.js +2 -0
- package/dist/esm/controllers/overflow/overflow-context.js +8 -0
- package/dist/esm/controllers/overflow/overflow-provider.js +19 -0
- package/dist/esm/controllers/overflow/use-overflow-controller.js +103 -0
- package/dist/esm/controllers/overflow/use-overflow-status.js +15 -0
- package/dist/esm/entry-points/app-switcher.js +2 -1
- package/dist/esm/entry-points/overflow.js +1 -1
- package/dist/esm/entry-points/profile.js +1 -1
- package/dist/esm/entry-points/skeleton-help-button.js +2 -1
- package/dist/esm/index.js +4 -3
- package/dist/esm/nav4-skeleton-help-button.js +26 -0
- package/dist/esm/skeleton-help-button.js +0 -23
- package/dist/esm/skeleton-switcher-button.js +7 -0
- package/dist/esm/theme/atlassian-theme.js +3 -0
- package/dist/esm/theme/convert-hex-shorthand.js +40 -0
- package/dist/esm/theme/default-theme-brand-refresh.js +3 -0
- package/dist/esm/theme/default-theme.js +0 -1
- package/dist/esm/theme/generate-text-color.js +6 -0
- package/dist/esm/theme/get-contrast-color.js +5 -0
- package/dist/esm/theme/hex-to-rgba.js +11 -0
- package/dist/esm/theme/index.js +1 -1
- package/dist/esm/theme/theme-generator.js +11 -2
- package/dist/esm/theme/theme-provider.js +2 -0
- package/dist/esm/theme/themes.js +3 -0
- package/dist/types/common/constants.d.ts +3 -0
- package/dist/types/components/AppSwitcher/app-switcher-nav4.d.ts +6 -0
- package/dist/types/components/AppSwitcher/app-switcher.d.ts +14 -0
- package/dist/types/components/AppSwitcher/index.d.ts +0 -12
- package/dist/types/components/AppSwitcher/types.d.ts +3 -0
- package/dist/types/components/AtlassianNavigation/index.d.ts +2 -0
- package/dist/types/components/AtlassianNavigation/skeleton.d.ts +2 -0
- package/dist/types/components/AtlassianNavigation/types.d.ts +6 -0
- package/dist/types/components/Create/index.d.ts +2 -0
- package/dist/types/components/Help/index.d.ts +2 -0
- package/dist/types/components/IconButton/index.d.ts +1 -0
- package/dist/types/components/Notifications/index.d.ts +2 -0
- package/dist/types/components/PrimaryButton/index.d.ts +2 -0
- package/dist/types/components/PrimaryDropdownButton/index.d.ts +2 -0
- package/dist/types/components/ProductHome/app-home.d.ts +20 -0
- package/dist/types/components/ProductHome/custom-product-home.d.ts +2 -0
- package/dist/types/components/ProductHome/product-home.d.ts +4 -13
- package/dist/types/components/Profile/index.d.ts +2 -0
- package/dist/types/components/Profile/profile.d.ts +14 -0
- package/dist/types/components/Profile/types.d.ts +3 -0
- package/dist/types/components/Search/index.d.ts +2 -0
- package/dist/types/components/Search/types.d.ts +3 -0
- package/dist/types/components/Settings/index.d.ts +2 -0
- package/dist/types/components/Settings/types.d.ts +3 -0
- package/dist/types/components/SignIn/index.d.ts +2 -0
- package/dist/types/components/SignIn/types.d.ts +3 -0
- package/dist/types/components/SkeletonCreateButton/types.d.ts +3 -0
- package/dist/types/components/SkeletonIconButton/types.d.ts +3 -0
- package/dist/types/components/SkeletonPrimaryButton/types.d.ts +3 -0
- package/dist/types/controllers/overflow/index.d.ts +2 -0
- package/dist/types/controllers/overflow/overflow-context.d.ts +17 -0
- package/dist/types/controllers/overflow/overflow-provider.d.ts +3 -0
- package/dist/types/controllers/overflow/use-overflow-controller.d.ts +7 -0
- package/dist/types/controllers/overflow/use-overflow-status.d.ts +11 -0
- package/dist/types/entry-points/app-switcher.d.ts +2 -1
- package/dist/types/entry-points/overflow.d.ts +1 -1
- package/dist/types/entry-points/profile.d.ts +1 -1
- package/dist/types/entry-points/skeleton-help-button.d.ts +2 -1
- package/dist/types/index.d.ts +4 -3
- package/dist/types/nav4-skeleton-help-button.d.ts +8 -0
- package/dist/types/skeleton-help-button.d.ts +0 -6
- package/dist/types/skeleton-switcher-button.d.ts +5 -0
- package/dist/types/theme/atlassian-theme.d.ts +3 -0
- package/dist/types/theme/convert-hex-shorthand.d.ts +1 -0
- package/dist/types/theme/default-theme-brand-refresh.d.ts +1 -0
- package/dist/types/theme/default-theme.d.ts +0 -1
- package/dist/types/theme/generate-text-color.d.ts +1 -0
- package/dist/types/theme/get-contrast-color.d.ts +1 -0
- package/dist/types/theme/hex-to-rgba.d.ts +1 -0
- package/dist/types/theme/index.d.ts +1 -1
- package/dist/types/theme/theme-generator.d.ts +5 -0
- package/dist/types/theme/theme-provider.d.ts +2 -0
- package/dist/types/theme/themes.d.ts +3 -0
- package/dist/types/theme/types.d.ts +30 -0
- package/dist/types-ts4.5/common/constants.d.ts +3 -0
- package/dist/types-ts4.5/components/AppSwitcher/app-switcher-nav4.d.ts +6 -0
- package/dist/types-ts4.5/components/AppSwitcher/app-switcher.d.ts +14 -0
- package/dist/types-ts4.5/components/AppSwitcher/index.d.ts +0 -12
- package/dist/types-ts4.5/components/AppSwitcher/types.d.ts +3 -0
- package/dist/types-ts4.5/components/AtlassianNavigation/index.d.ts +2 -0
- package/dist/types-ts4.5/components/AtlassianNavigation/skeleton.d.ts +2 -0
- package/dist/types-ts4.5/components/AtlassianNavigation/types.d.ts +6 -0
- package/dist/types-ts4.5/components/Create/index.d.ts +2 -0
- package/dist/types-ts4.5/components/Help/index.d.ts +2 -0
- package/dist/types-ts4.5/components/IconButton/index.d.ts +1 -0
- package/dist/types-ts4.5/components/Notifications/index.d.ts +2 -0
- package/dist/types-ts4.5/components/PrimaryButton/index.d.ts +2 -0
- package/dist/types-ts4.5/components/PrimaryDropdownButton/index.d.ts +2 -0
- package/dist/types-ts4.5/components/ProductHome/app-home.d.ts +20 -0
- package/dist/types-ts4.5/components/ProductHome/custom-product-home.d.ts +2 -0
- package/dist/types-ts4.5/components/ProductHome/product-home.d.ts +4 -13
- package/dist/types-ts4.5/components/Profile/index.d.ts +2 -0
- package/dist/types-ts4.5/components/Profile/profile.d.ts +14 -0
- package/dist/types-ts4.5/components/Profile/types.d.ts +3 -0
- package/dist/types-ts4.5/components/Search/index.d.ts +2 -0
- package/dist/types-ts4.5/components/Search/types.d.ts +3 -0
- package/dist/types-ts4.5/components/Settings/index.d.ts +2 -0
- package/dist/types-ts4.5/components/Settings/types.d.ts +3 -0
- package/dist/types-ts4.5/components/SignIn/index.d.ts +2 -0
- package/dist/types-ts4.5/components/SignIn/types.d.ts +3 -0
- package/dist/types-ts4.5/components/SkeletonCreateButton/types.d.ts +3 -0
- package/dist/types-ts4.5/components/SkeletonIconButton/types.d.ts +3 -0
- package/dist/types-ts4.5/components/SkeletonPrimaryButton/types.d.ts +3 -0
- package/dist/types-ts4.5/controllers/overflow/index.d.ts +2 -0
- package/dist/types-ts4.5/controllers/overflow/overflow-context.d.ts +17 -0
- package/dist/types-ts4.5/controllers/overflow/overflow-provider.d.ts +3 -0
- package/dist/types-ts4.5/controllers/overflow/use-overflow-controller.d.ts +7 -0
- package/dist/types-ts4.5/controllers/overflow/use-overflow-status.d.ts +11 -0
- package/dist/types-ts4.5/entry-points/app-switcher.d.ts +2 -1
- package/dist/types-ts4.5/entry-points/overflow.d.ts +1 -1
- package/dist/types-ts4.5/entry-points/profile.d.ts +1 -1
- package/dist/types-ts4.5/entry-points/skeleton-help-button.d.ts +2 -1
- package/dist/types-ts4.5/index.d.ts +4 -3
- package/dist/types-ts4.5/nav4-skeleton-help-button.d.ts +8 -0
- package/dist/types-ts4.5/skeleton-help-button.d.ts +0 -6
- package/dist/types-ts4.5/skeleton-switcher-button.d.ts +5 -0
- package/dist/types-ts4.5/theme/atlassian-theme.d.ts +3 -0
- package/dist/types-ts4.5/theme/convert-hex-shorthand.d.ts +1 -0
- package/dist/types-ts4.5/theme/default-theme-brand-refresh.d.ts +1 -0
- package/dist/types-ts4.5/theme/default-theme.d.ts +0 -1
- package/dist/types-ts4.5/theme/generate-text-color.d.ts +1 -0
- package/dist/types-ts4.5/theme/get-contrast-color.d.ts +1 -0
- package/dist/types-ts4.5/theme/hex-to-rgba.d.ts +1 -0
- package/dist/types-ts4.5/theme/index.d.ts +1 -1
- package/dist/types-ts4.5/theme/theme-generator.d.ts +5 -0
- package/dist/types-ts4.5/theme/theme-provider.d.ts +2 -0
- package/dist/types-ts4.5/theme/themes.d.ts +3 -0
- package/dist/types-ts4.5/theme/types.d.ts +30 -0
- package/package.json +10 -10
- package/afm-jira/tsconfig.json +0 -64
- /package/dist/cjs/components/AppSwitcher/{index.compiled.css → app-switcher.compiled.css} +0 -0
- /package/dist/cjs/{skeleton-help-button.compiled.css → nav4-skeleton-help-button.compiled.css} +0 -0
- /package/dist/es2019/components/AppSwitcher/{index.compiled.css → app-switcher.compiled.css} +0 -0
- /package/dist/es2019/{skeleton-help-button.compiled.css → nav4-skeleton-help-button.compiled.css} +0 -0
- /package/dist/esm/components/AppSwitcher/{index.compiled.css → app-switcher.compiled.css} +0 -0
- /package/dist/esm/{skeleton-help-button.compiled.css → nav4-skeleton-help-button.compiled.css} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
export { useOverflowStatus } from '../controllers/overflow/
|
|
1
|
+
export { useOverflowStatus } from '../controllers/overflow/use-overflow-status';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Profile } from '../components/Profile/
|
|
1
|
+
export { Profile } from '../components/Profile/profile';
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { Nav4SkeletonHelpButton
|
|
1
|
+
export { Nav4SkeletonHelpButton } from '../nav4-skeleton-help-button';
|
|
2
|
+
export { SkeletonHelpButton } from '../skeleton-help-button';
|
|
2
3
|
export type { SkeletonHelpButtonProps } from '../skeleton-help-button';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { AtlassianNavigation } from './components/AtlassianNavigation';
|
|
2
2
|
export type { AtlassianNavigationProps } from './components/AtlassianNavigation/types';
|
|
3
|
-
export { AppSwitcher
|
|
3
|
+
export { AppSwitcher } from './components/AppSwitcher/app-switcher';
|
|
4
|
+
export { AppSwitcherNav4 } from './components/AppSwitcher/app-switcher-nav4';
|
|
4
5
|
export type { AppSwitcherProps } from './components/AppSwitcher/types';
|
|
5
6
|
export { Create } from './components/Create';
|
|
6
7
|
export type { CreateProps } from './components/Create/types';
|
|
@@ -16,7 +17,7 @@ export { IconButton } from './components/IconButton';
|
|
|
16
17
|
export type { IconButtonProps, BaseIconButtonProps } from './components/IconButton/types';
|
|
17
18
|
export { CustomProductHome, ProductHome, AppHome } from './components/ProductHome';
|
|
18
19
|
export type { CustomProductHomeProps, ProductHomeProps, AppHomeProps, } from './components/ProductHome/types';
|
|
19
|
-
export { Profile } from './components/Profile';
|
|
20
|
+
export { Profile } from './components/Profile/profile';
|
|
20
21
|
export type { ProfileProps } from './components/Profile/types';
|
|
21
22
|
export { Search } from './components/Search';
|
|
22
23
|
export type { SearchProps } from './components/Search/types';
|
|
@@ -24,7 +25,7 @@ export { Settings } from './components/Settings';
|
|
|
24
25
|
export type { SettingsProps } from './components/Settings/types';
|
|
25
26
|
export { SignIn } from './components/SignIn';
|
|
26
27
|
export type { SignInProps } from './components/SignIn/types';
|
|
27
|
-
export { useOverflowStatus } from './controllers/overflow';
|
|
28
|
+
export { useOverflowStatus } from './controllers/overflow/use-overflow-status';
|
|
28
29
|
export { HORIZONTAL_GLOBAL_NAV_HEIGHT } from './common/constants';
|
|
29
30
|
export { atlassianTheme, generateTheme, ThemeProvider } from './theme';
|
|
30
31
|
export type { Colors, CreateCSS, GenerateThemeArgs, IconButtonCSS, Mode, NavigationCSS, NavigationTheme, PrimaryButtonCSS, SearchCSS, SkeletonCSS, } from './theme';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type SkeletonHelpButtonProps } from './skeleton-help-button';
|
|
3
|
+
/**
|
|
4
|
+
* __Nav 4 skeleton help button__
|
|
5
|
+
*
|
|
6
|
+
* A nav 4 skeleton help button {description}.
|
|
7
|
+
*/
|
|
8
|
+
export declare const Nav4SkeletonHelpButton: ({ label, }: SkeletonHelpButtonProps) => React.JSX.Element;
|
|
@@ -17,9 +17,3 @@ export type SkeletonHelpButtonProps = {
|
|
|
17
17
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
18
18
|
*/
|
|
19
19
|
export declare const SkeletonHelpButton: ({ label }: SkeletonHelpButtonProps) => React.JSX.Element;
|
|
20
|
-
/**
|
|
21
|
-
* __Nav 4 skeleton help button__
|
|
22
|
-
*
|
|
23
|
-
* A nav 4 skeleton help button {description}.
|
|
24
|
-
*/
|
|
25
|
-
export declare const Nav4SkeletonHelpButton: ({ label, }: SkeletonHelpButtonProps) => React.JSX.Element;
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
|
|
8
|
+
*/
|
|
6
9
|
export type SkeletonSwitcherButtonProps = {
|
|
7
10
|
/**
|
|
8
11
|
* Describes the specific role of this navigation component for users viewing the page with a screen
|
|
@@ -25,6 +28,8 @@ export type SkeletonSwitcherButtonProps = {
|
|
|
25
28
|
*
|
|
26
29
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
|
|
27
30
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
31
|
+
*
|
|
32
|
+
* @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
|
|
28
33
|
*/
|
|
29
34
|
export declare const SkeletonSwitcherButton: ({ label, testId, }: SkeletonSwitcherButtonProps) => React.JSX.Element;
|
|
30
35
|
export { Nav4SkeletonSwitcherButton } from './nav4-skeleton-switcher-button';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const convertHexShorthand: (color: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const defaultThemeBrandRefresh: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const generateTextColor: (color: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getContrastColor: (contrastValue: number, opacityValue: number, color: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const hexToRGBA: (hex: string, opacity?: number) => string;
|
|
@@ -3,4 +3,4 @@ export { ThemeProvider } from './theme-provider';
|
|
|
3
3
|
export { atlassianTheme, defaultTheme } from './themes';
|
|
4
4
|
export type { CreateCSS, IconButtonCSS, Mode, NavigationCSS, NavigationTheme, PrimaryButtonCSS, SearchCSS, ProductHomeCSS, SkeletonCSS, Colors, GenerateThemeArgs, } from './types';
|
|
5
5
|
export { useTheme } from './use-theme';
|
|
6
|
-
export { hexToRGBA } from './
|
|
6
|
+
export { hexToRGBA } from './hex-to-rgba';
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import { type GenerateThemeArgs, type NavigationTheme } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* __generateTheme__
|
|
4
|
+
*
|
|
5
|
+
* @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
|
|
6
|
+
*/
|
|
2
7
|
export declare const generateTheme: (themeColors: GenerateThemeArgs) => NavigationTheme;
|
|
@@ -4,6 +4,8 @@ import type { NavigationTheme } from './types';
|
|
|
4
4
|
* __Theme provider__
|
|
5
5
|
*
|
|
6
6
|
* A provider for the theme context used by all navigation components.
|
|
7
|
+
*
|
|
8
|
+
* @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
|
|
7
9
|
*/
|
|
8
10
|
export declare const ThemeProvider: Provider<NavigationTheme>;
|
|
9
11
|
export { ThemeContext } from './theme-context';
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { type NavigationTheme } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
|
|
4
|
+
*/
|
|
2
5
|
export declare const defaultTheme: NavigationTheme;
|
|
3
6
|
export { atlassianTheme } from './atlassian-theme';
|
|
@@ -14,24 +14,45 @@ export type ButtonCSSContext = {
|
|
|
14
14
|
selected: ButtonCSSProperties;
|
|
15
15
|
selectedHover?: ButtonCSSProperties;
|
|
16
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
|
|
19
|
+
*/
|
|
17
20
|
export type CreateCSS = ButtonCSSContext;
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
|
|
23
|
+
*/
|
|
18
24
|
export type IconButtonCSS = ButtonCSSContext;
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
|
|
27
|
+
*/
|
|
19
28
|
export type PrimaryButtonCSS = ButtonCSSContext;
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
|
|
31
|
+
*/
|
|
20
32
|
export type NavigationCSS = CSSProperties;
|
|
21
33
|
type LogoStyleProps = {
|
|
22
34
|
iconColor?: string;
|
|
23
35
|
textColor?: string;
|
|
24
36
|
};
|
|
25
37
|
export type ProductHomeCSS = CSSProperties & LogoStyleProps;
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
|
|
40
|
+
*/
|
|
26
41
|
export type SearchCSS = {
|
|
27
42
|
default: CSSProperties;
|
|
28
43
|
focus: CSSObject;
|
|
29
44
|
hover: CSSObject;
|
|
30
45
|
};
|
|
46
|
+
/**
|
|
47
|
+
* @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
|
|
48
|
+
*/
|
|
31
49
|
export type SkeletonCSS = CSSObject & {
|
|
32
50
|
backgroundColor: string;
|
|
33
51
|
opacity: number;
|
|
34
52
|
};
|
|
53
|
+
/**
|
|
54
|
+
* @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
|
|
55
|
+
*/
|
|
35
56
|
export type Mode = {
|
|
36
57
|
create: CreateCSS;
|
|
37
58
|
iconButton: IconButtonCSS;
|
|
@@ -41,13 +62,22 @@ export type Mode = {
|
|
|
41
62
|
search: SearchCSS;
|
|
42
63
|
skeleton: SkeletonCSS;
|
|
43
64
|
};
|
|
65
|
+
/**
|
|
66
|
+
* @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
|
|
67
|
+
*/
|
|
44
68
|
export type NavigationTheme = {
|
|
45
69
|
mode: Mode;
|
|
46
70
|
};
|
|
71
|
+
/**
|
|
72
|
+
* @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
|
|
73
|
+
*/
|
|
47
74
|
export type Colors = {
|
|
48
75
|
backgroundColor: string;
|
|
49
76
|
color: string;
|
|
50
77
|
};
|
|
78
|
+
/**
|
|
79
|
+
* @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
|
|
80
|
+
*/
|
|
51
81
|
export type GenerateThemeArgs = {
|
|
52
82
|
/**
|
|
53
83
|
* Name of the theme.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/atlassian-navigation",
|
|
3
|
-
"version": "5.7.
|
|
3
|
+
"version": "5.7.4",
|
|
4
4
|
"description": "A horizontal navigation component for Atlassian apps.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -37,22 +37,22 @@
|
|
|
37
37
|
"name": "Atlassian navigation",
|
|
38
38
|
"category": "Navigation",
|
|
39
39
|
"status": {
|
|
40
|
-
"type": "
|
|
41
|
-
"description": "
|
|
40
|
+
"type": "deprecated",
|
|
41
|
+
"description": "This package is deprecated. Use our new [navigation system](/components/navigation-system)."
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@atlaskit/analytics-namespaced-context": "^7.
|
|
46
|
+
"@atlaskit/analytics-namespaced-context": "^7.3.0",
|
|
47
47
|
"@atlaskit/button": "^23.11.0",
|
|
48
48
|
"@atlaskit/css": "0.19.4",
|
|
49
49
|
"@atlaskit/ds-lib": "^7.0.0",
|
|
50
|
-
"@atlaskit/icon": "^
|
|
50
|
+
"@atlaskit/icon": "^35.0.0",
|
|
51
51
|
"@atlaskit/logo": "^20.1.0",
|
|
52
|
-
"@atlaskit/popup": "^4.
|
|
52
|
+
"@atlaskit/popup": "^4.19.0",
|
|
53
53
|
"@atlaskit/primitives": "^19.0.0",
|
|
54
54
|
"@atlaskit/tokens": "^13.0.0",
|
|
55
|
-
"@atlaskit/tooltip": "^22.
|
|
55
|
+
"@atlaskit/tooltip": "^22.2.0",
|
|
56
56
|
"@atlaskit/width-detector": "^5.1.0",
|
|
57
57
|
"@babel/runtime": "^7.0.0",
|
|
58
58
|
"@emotion/react": "^11.7.1",
|
|
@@ -76,13 +76,13 @@
|
|
|
76
76
|
"@atlaskit/form": "^15.5.0",
|
|
77
77
|
"@atlaskit/menu": "^8.5.0",
|
|
78
78
|
"@atlaskit/notification-indicator": "^10.1.0",
|
|
79
|
-
"@atlaskit/notification-log-client": "^8.
|
|
79
|
+
"@atlaskit/notification-log-client": "^8.1.0",
|
|
80
80
|
"@atlaskit/section-message": "^8.12.0",
|
|
81
81
|
"@atlaskit/spinner": "^19.1.0",
|
|
82
82
|
"@atlaskit/textfield": "^8.3.0",
|
|
83
83
|
"@atlassian/react-compiler-gating": "workspace:^",
|
|
84
|
-
"@atlassian/switcher": "^48.
|
|
85
|
-
"@atlassian/switcher-test-utils": "^8.
|
|
84
|
+
"@atlassian/switcher": "^48.1.0",
|
|
85
|
+
"@atlassian/switcher-test-utils": "^8.5.0",
|
|
86
86
|
"@testing-library/react": "^16.3.0",
|
|
87
87
|
"@testing-library/user-event": "^14.4.3",
|
|
88
88
|
"jest-emotion": "^10.0.32",
|
package/afm-jira/tsconfig.json
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../../../tsconfig.local-consumption.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"target": "es5",
|
|
5
|
-
"outDir": "../../../../../jira/tsDist/@atlaskit__atlassian-navigation/app",
|
|
6
|
-
"rootDir": "../",
|
|
7
|
-
"composite": true,
|
|
8
|
-
"noCheck": true,
|
|
9
|
-
"isolatedDeclarations": true
|
|
10
|
-
},
|
|
11
|
-
"include": [
|
|
12
|
-
"../src/**/*.ts",
|
|
13
|
-
"../src/**/*.tsx"
|
|
14
|
-
],
|
|
15
|
-
"exclude": [
|
|
16
|
-
"../src/**/__tests__/*",
|
|
17
|
-
"../src/**/*.test.*",
|
|
18
|
-
"../src/**/test.*",
|
|
19
|
-
"../src/**/examples.*",
|
|
20
|
-
"../src/**/examples/*",
|
|
21
|
-
"../src/**/examples/**/*",
|
|
22
|
-
"../src/**/*.stories.*",
|
|
23
|
-
"../src/**/stories/*",
|
|
24
|
-
"../src/**/stories/**/*"
|
|
25
|
-
],
|
|
26
|
-
"references": [
|
|
27
|
-
{
|
|
28
|
-
"path": "../../../analytics/analytics-namespaced-context/afm-jira/tsconfig.json"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"path": "../../button/afm-jira/tsconfig.json"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"path": "../../css/afm-jira/tsconfig.json"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"path": "../../ds-lib/afm-jira/tsconfig.json"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"path": "../../icon/afm-jira/tsconfig.json"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"path": "../../logo/afm-jira/tsconfig.json"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"path": "../../popup/afm-jira/tsconfig.json"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"path": "../../primitives/afm-jira/tsconfig.json"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"path": "../../theme/afm-jira/tsconfig.json"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"path": "../../tokens/afm-jira/tsconfig.json"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"path": "../../tooltip/afm-jira/tsconfig.json"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"path": "../../width-detector/afm-jira/tsconfig.json"
|
|
62
|
-
}
|
|
63
|
-
]
|
|
64
|
-
}
|
|
File without changes
|
/package/dist/cjs/{skeleton-help-button.compiled.css → nav4-skeleton-help-button.compiled.css}
RENAMED
|
File without changes
|
/package/dist/es2019/components/AppSwitcher/{index.compiled.css → app-switcher.compiled.css}
RENAMED
|
File without changes
|
/package/dist/es2019/{skeleton-help-button.compiled.css → nav4-skeleton-help-button.compiled.css}
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/esm/{skeleton-help-button.compiled.css → nav4-skeleton-help-button.compiled.css}
RENAMED
|
File without changes
|