@atlaskit/atlassian-navigation 3.6.2 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +733 -714
- package/README.md +7 -3
- package/afm-jira/tsconfig.json +58 -0
- package/dist/cjs/components/AtlassianNavigation/index.js +7 -2
- package/dist/cjs/components/AtlassianNavigation/skeleton.js +12 -7
- package/dist/cjs/components/BadgeContainer/index.js +3 -0
- package/dist/cjs/components/Create/index.js +8 -3
- package/dist/cjs/components/Create/skeleton.js +5 -0
- package/dist/cjs/components/IconButton/skeleton.js +7 -2
- package/dist/cjs/components/PrimaryButton/index.js +6 -1
- package/dist/cjs/components/PrimaryButton/skeleton.js +7 -1
- package/dist/cjs/components/PrimaryDropdownButton/index.js +3 -0
- package/dist/cjs/components/PrimaryItemsContainer/index.js +4 -1
- package/dist/cjs/components/PrimaryItemsContainer/skeleton.js +3 -0
- package/dist/cjs/components/ProductHome/custom-product-home.js +18 -8
- package/dist/cjs/components/ProductHome/product-home.js +24 -23
- package/dist/cjs/components/ProductHome/skeleton.js +17 -7
- package/dist/cjs/components/Search/index.js +13 -0
- package/dist/cjs/components/Search/skeleton.js +8 -0
- package/dist/cjs/components/SkeletonCreateButton/index.js +7 -2
- package/dist/cjs/components/SkeletonIconButton/index.js +10 -2
- package/dist/cjs/components/SkeletonPrimaryButton/index.js +12 -2
- package/dist/cjs/theme/default-theme.js +1 -7
- package/dist/es2019/components/AtlassianNavigation/index.js +7 -2
- package/dist/es2019/components/AtlassianNavigation/skeleton.js +12 -7
- package/dist/es2019/components/BadgeContainer/index.js +3 -0
- package/dist/es2019/components/Create/index.js +10 -5
- package/dist/es2019/components/Create/skeleton.js +6 -1
- package/dist/es2019/components/IconButton/skeleton.js +7 -1
- package/dist/es2019/components/PrimaryButton/index.js +6 -1
- package/dist/es2019/components/PrimaryButton/skeleton.js +7 -1
- package/dist/es2019/components/PrimaryDropdownButton/index.js +3 -0
- package/dist/es2019/components/PrimaryItemsContainer/index.js +4 -1
- package/dist/es2019/components/PrimaryItemsContainer/skeleton.js +3 -0
- package/dist/es2019/components/ProductHome/custom-product-home.js +23 -13
- package/dist/es2019/components/ProductHome/product-home.js +27 -24
- package/dist/es2019/components/ProductHome/skeleton.js +21 -11
- package/dist/es2019/components/Search/index.js +15 -2
- package/dist/es2019/components/Search/skeleton.js +10 -2
- package/dist/es2019/components/SkeletonCreateButton/index.js +7 -2
- package/dist/es2019/components/SkeletonIconButton/index.js +10 -2
- package/dist/es2019/components/SkeletonPrimaryButton/index.js +12 -1
- package/dist/es2019/theme/default-theme.js +1 -7
- package/dist/esm/components/AtlassianNavigation/index.js +7 -2
- package/dist/esm/components/AtlassianNavigation/skeleton.js +12 -7
- package/dist/esm/components/BadgeContainer/index.js +3 -0
- package/dist/esm/components/Create/index.js +8 -3
- package/dist/esm/components/Create/skeleton.js +5 -0
- package/dist/esm/components/IconButton/skeleton.js +7 -1
- package/dist/esm/components/PrimaryButton/index.js +6 -1
- package/dist/esm/components/PrimaryButton/skeleton.js +7 -1
- package/dist/esm/components/PrimaryDropdownButton/index.js +3 -0
- package/dist/esm/components/PrimaryItemsContainer/index.js +4 -1
- package/dist/esm/components/PrimaryItemsContainer/skeleton.js +3 -0
- package/dist/esm/components/ProductHome/custom-product-home.js +18 -8
- package/dist/esm/components/ProductHome/product-home.js +24 -23
- package/dist/esm/components/ProductHome/skeleton.js +17 -7
- package/dist/esm/components/Search/index.js +13 -0
- package/dist/esm/components/Search/skeleton.js +8 -0
- package/dist/esm/components/SkeletonCreateButton/index.js +7 -2
- package/dist/esm/components/SkeletonIconButton/index.js +10 -2
- package/dist/esm/components/SkeletonPrimaryButton/index.js +12 -1
- package/dist/esm/theme/default-theme.js +1 -7
- package/dist/types/components/AppSwitcher/index.d.ts +1 -1
- package/dist/types/components/AppSwitcher/types.d.ts +1 -1
- package/dist/types/components/AtlassianNavigation/index.d.ts +4 -1
- package/dist/types/components/AtlassianNavigation/skeleton.d.ts +4 -1
- package/dist/types/components/AtlassianNavigation/types.d.ts +26 -26
- package/dist/types/components/BadgeContainer/index.d.ts +4 -1
- package/dist/types/components/BadgeContainer/types.d.ts +1 -1
- package/dist/types/components/Create/index.d.ts +1 -1
- package/dist/types/components/Create/styles.d.ts +2 -2
- package/dist/types/components/Create/types.d.ts +1 -1
- package/dist/types/components/Help/types.d.ts +2 -2
- package/dist/types/components/IconButton/skeleton.d.ts +4 -1
- package/dist/types/components/IconButton/styles.d.ts +2 -2
- package/dist/types/components/IconButton/types.d.ts +2 -5
- package/dist/types/components/Notifications/types.d.ts +2 -2
- package/dist/types/components/PrimaryButton/skeleton.d.ts +4 -1
- package/dist/types/components/PrimaryButton/styles.d.ts +2 -2
- package/dist/types/components/PrimaryButton/types.d.ts +4 -5
- package/dist/types/components/PrimaryDropdownButton/types.d.ts +1 -1
- package/dist/types/components/PrimaryItemsContainer/index.d.ts +2 -2
- package/dist/types/components/PrimaryItemsContainer/skeleton.d.ts +1 -1
- package/dist/types/components/PrimaryItemsContainer/types.d.ts +1 -1
- package/dist/types/components/PrimaryItemsContainerV2/index.d.ts +2 -2
- package/dist/types/components/ProductHome/custom-product-home.d.ts +1 -1
- package/dist/types/components/ProductHome/product-home.d.ts +1 -1
- package/dist/types/components/ProductHome/skeleton.d.ts +4 -1
- package/dist/types/components/ProductHome/types.d.ts +24 -24
- package/dist/types/components/Profile/index.d.ts +1 -1
- package/dist/types/components/Profile/types.d.ts +1 -1
- package/dist/types/components/Search/index.d.ts +1 -1
- package/dist/types/components/Search/types.d.ts +1 -1
- package/dist/types/components/Settings/types.d.ts +1 -1
- package/dist/types/components/SignIn/index.d.ts +1 -1
- package/dist/types/components/SignIn/types.d.ts +1 -1
- package/dist/types/components/SkeletonCreateButton/index.d.ts +5 -2
- package/dist/types/components/SkeletonIconButton/index.d.ts +5 -2
- package/dist/types/components/SkeletonIconButton/types.d.ts +1 -1
- package/dist/types/components/SkeletonPrimaryButton/index.d.ts +4 -1
- package/dist/types/components/SkeletonPrimaryButton/types.d.ts +1 -1
- package/dist/types/controllers/overflow/index.d.ts +2 -2
- package/dist/types/controllers/overflow/types.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/skeleton-notification-button.d.ts +1 -1
- package/dist/types/skeleton-settings-button.d.ts +1 -1
- package/dist/types/skeleton-switcher-button.d.ts +1 -1
- package/dist/types/theme/default-theme.d.ts +1 -1
- package/dist/types/theme/theme-generator.d.ts +1 -1
- package/dist/types/theme/themes.d.ts +1 -1
- package/dist/types/theme/types.d.ts +1 -3
- package/dist/types-ts4.5/components/AppSwitcher/index.d.ts +1 -1
- package/dist/types-ts4.5/components/AppSwitcher/types.d.ts +1 -1
- package/dist/types-ts4.5/components/AtlassianNavigation/index.d.ts +4 -1
- package/dist/types-ts4.5/components/AtlassianNavigation/skeleton.d.ts +4 -1
- package/dist/types-ts4.5/components/AtlassianNavigation/types.d.ts +26 -26
- package/dist/types-ts4.5/components/BadgeContainer/index.d.ts +4 -1
- package/dist/types-ts4.5/components/BadgeContainer/types.d.ts +1 -1
- package/dist/types-ts4.5/components/Create/index.d.ts +1 -1
- package/dist/types-ts4.5/components/Create/styles.d.ts +2 -2
- package/dist/types-ts4.5/components/Create/types.d.ts +1 -1
- package/dist/types-ts4.5/components/Help/types.d.ts +2 -2
- package/dist/types-ts4.5/components/IconButton/skeleton.d.ts +4 -1
- package/dist/types-ts4.5/components/IconButton/styles.d.ts +2 -2
- package/dist/types-ts4.5/components/IconButton/types.d.ts +2 -5
- package/dist/types-ts4.5/components/Notifications/types.d.ts +2 -2
- package/dist/types-ts4.5/components/PrimaryButton/skeleton.d.ts +4 -1
- package/dist/types-ts4.5/components/PrimaryButton/styles.d.ts +2 -2
- package/dist/types-ts4.5/components/PrimaryButton/types.d.ts +4 -5
- package/dist/types-ts4.5/components/PrimaryDropdownButton/types.d.ts +1 -1
- package/dist/types-ts4.5/components/PrimaryItemsContainer/index.d.ts +2 -2
- package/dist/types-ts4.5/components/PrimaryItemsContainer/skeleton.d.ts +1 -1
- package/dist/types-ts4.5/components/PrimaryItemsContainer/types.d.ts +1 -1
- package/dist/types-ts4.5/components/PrimaryItemsContainerV2/index.d.ts +2 -2
- package/dist/types-ts4.5/components/ProductHome/custom-product-home.d.ts +1 -1
- package/dist/types-ts4.5/components/ProductHome/product-home.d.ts +1 -1
- package/dist/types-ts4.5/components/ProductHome/skeleton.d.ts +4 -1
- package/dist/types-ts4.5/components/ProductHome/types.d.ts +24 -24
- package/dist/types-ts4.5/components/Profile/index.d.ts +1 -1
- package/dist/types-ts4.5/components/Profile/types.d.ts +1 -1
- package/dist/types-ts4.5/components/Search/index.d.ts +1 -1
- package/dist/types-ts4.5/components/Search/types.d.ts +1 -1
- package/dist/types-ts4.5/components/Settings/types.d.ts +1 -1
- package/dist/types-ts4.5/components/SignIn/index.d.ts +1 -1
- package/dist/types-ts4.5/components/SignIn/types.d.ts +1 -1
- package/dist/types-ts4.5/components/SkeletonCreateButton/index.d.ts +5 -2
- package/dist/types-ts4.5/components/SkeletonIconButton/index.d.ts +5 -2
- package/dist/types-ts4.5/components/SkeletonIconButton/types.d.ts +1 -1
- package/dist/types-ts4.5/components/SkeletonPrimaryButton/index.d.ts +4 -1
- package/dist/types-ts4.5/components/SkeletonPrimaryButton/types.d.ts +1 -1
- package/dist/types-ts4.5/controllers/overflow/index.d.ts +2 -2
- package/dist/types-ts4.5/controllers/overflow/types.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/skeleton-notification-button.d.ts +1 -1
- package/dist/types-ts4.5/skeleton-settings-button.d.ts +1 -1
- package/dist/types-ts4.5/skeleton-switcher-button.d.ts +1 -1
- package/dist/types-ts4.5/theme/default-theme.d.ts +1 -1
- package/dist/types-ts4.5/theme/theme-generator.d.ts +1 -1
- package/dist/types-ts4.5/theme/themes.d.ts +1 -1
- package/dist/types-ts4.5/theme/types.d.ts +1 -3
- package/package.json +108 -113
- package/report.api.md +162 -183
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { SkeletonCreateButtonProps } from './types';
|
|
6
|
+
import { type SkeletonCreateButtonProps } from './types';
|
|
4
7
|
/**
|
|
5
8
|
* __Skeleton create button__
|
|
6
9
|
*
|
|
@@ -11,4 +14,4 @@ import { SkeletonCreateButtonProps } from './types';
|
|
|
11
14
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
|
|
12
15
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
13
16
|
*/
|
|
14
|
-
export declare const SkeletonCreateButton: ({ text, testId
|
|
17
|
+
export declare const SkeletonCreateButton: ({ text, testId }: SkeletonCreateButtonProps) => jsx.JSX.Element;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { SkeletonIconButtonProps } from './types';
|
|
6
|
+
import { type SkeletonIconButtonProps } from './types';
|
|
4
7
|
/**
|
|
5
8
|
* __Skeleton icon button__
|
|
6
9
|
*
|
|
@@ -11,4 +14,4 @@ import { SkeletonIconButtonProps } from './types';
|
|
|
11
14
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
|
|
12
15
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
13
16
|
*/
|
|
14
|
-
export declare const SkeletonIconButton: ({ children, testId
|
|
17
|
+
export declare const SkeletonIconButton: ({ children, testId }: SkeletonIconButtonProps) => jsx.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="lodash" />
|
|
2
|
-
import React, { ReactNode } from 'react';
|
|
2
|
+
import React, { type ReactNode } from 'react';
|
|
3
3
|
import noop from '@atlaskit/ds-lib/noop';
|
|
4
|
-
import { OverflowProviderProps } from './types';
|
|
4
|
+
import { type OverflowProviderProps } from './types';
|
|
5
5
|
interface OverflowContext {
|
|
6
6
|
/**
|
|
7
7
|
* Returns `true` when the navigation item is visible,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export type { PrimaryDropdownButtonProps } from './components/PrimaryDropdownBut
|
|
|
15
15
|
export { IconButton } from './components/IconButton';
|
|
16
16
|
export type { IconButtonProps } from './components/IconButton/types';
|
|
17
17
|
export { CustomProductHome, ProductHome } from './components/ProductHome';
|
|
18
|
-
export type { CustomProductHomeProps, ProductHomeProps
|
|
18
|
+
export type { CustomProductHomeProps, ProductHomeProps } from './components/ProductHome/types';
|
|
19
19
|
export { Profile } from './components/Profile';
|
|
20
20
|
export type { ProfileProps } from './components/Profile/types';
|
|
21
21
|
export { Search } from './components/Search';
|
|
@@ -16,4 +16,4 @@ export type SkeletonNotificationButtonProps = {
|
|
|
16
16
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
|
|
17
17
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
18
18
|
*/
|
|
19
|
-
export declare const SkeletonNotificationButton: ({ label
|
|
19
|
+
export declare const SkeletonNotificationButton: ({ label }: SkeletonNotificationButtonProps) => JSX.Element;
|
|
@@ -16,4 +16,4 @@ export type SkeletonSettingsButtonProps = {
|
|
|
16
16
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
|
|
17
17
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
18
18
|
*/
|
|
19
|
-
export declare const SkeletonSettingsButton: ({ label
|
|
19
|
+
export declare const SkeletonSettingsButton: ({ label }: SkeletonSettingsButtonProps) => JSX.Element;
|
|
@@ -16,4 +16,4 @@ export type SkeletonSwitcherButtonProps = {
|
|
|
16
16
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
|
|
17
17
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
18
18
|
*/
|
|
19
|
-
export declare const SkeletonSwitcherButton: ({ label
|
|
19
|
+
export declare const SkeletonSwitcherButton: ({ label }: SkeletonSwitcherButtonProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSObject } from '@emotion/react';
|
|
1
|
+
import { type CSSObject } from '@emotion/react';
|
|
2
2
|
export type CSSProperties = CSSObject & {
|
|
3
3
|
backgroundColor: string;
|
|
4
4
|
color: string;
|
|
@@ -19,8 +19,6 @@ export type IconButtonCSS = ButtonCSSContext;
|
|
|
19
19
|
export type PrimaryButtonCSS = ButtonCSSContext;
|
|
20
20
|
export type NavigationCSS = CSSProperties;
|
|
21
21
|
type LogoStyleProps = {
|
|
22
|
-
iconGradientStart?: string;
|
|
23
|
-
iconGradientStop?: string;
|
|
24
22
|
iconColor?: string;
|
|
25
23
|
textColor?: string;
|
|
26
24
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BaseIconButtonProps } from '../IconButton/types';
|
|
1
|
+
import { type BaseIconButtonProps } from '../IconButton/types';
|
|
2
2
|
export type AppSwitcherProps = BaseIconButtonProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
import { NavigationTheme } from '../../theme';
|
|
1
|
+
import { type default as React, type ReactNode, type ReactNodeArray } from 'react';
|
|
2
|
+
import { type NavigationTheme } from '../../theme';
|
|
3
3
|
export interface AtlassianNavigationProps {
|
|
4
4
|
/**
|
|
5
5
|
* Describes the specific role of this navigation component for users viewing the page with a screen
|
|
@@ -55,18 +55,18 @@ export interface AtlassianNavigationProps {
|
|
|
55
55
|
*/
|
|
56
56
|
theme?: NavigationTheme;
|
|
57
57
|
/**
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
58
|
+
A `testId` prop is provided for specified elements,
|
|
59
|
+
which is a unique string that appears as a data attribute `data-testid` in the rendered code,
|
|
60
|
+
serving as a hook for automated tests.
|
|
61
|
+
|
|
62
|
+
Will set these elements when defined:
|
|
63
|
+
|
|
64
|
+
- Header element - `{testId}-header`
|
|
65
|
+
- Primary actions container - `{testId}-primary-actions`
|
|
66
|
+
- Secondary actions container - `{testId}-secondary-actions`
|
|
67
|
+
- Overflow menu popup - `{testId}-overflow-menu-popup`
|
|
68
|
+
- Overflow menu button - `{testId}-overflow-menu-trigger`
|
|
69
|
+
*/
|
|
70
70
|
testId?: string;
|
|
71
71
|
}
|
|
72
72
|
export interface NavigationSkeletonProps {
|
|
@@ -91,17 +91,17 @@ export interface NavigationSkeletonProps {
|
|
|
91
91
|
*/
|
|
92
92
|
theme?: NavigationTheme;
|
|
93
93
|
/**
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
94
|
+
A `testId` prop is provided for specified elements,
|
|
95
|
+
which is a unique string that appears as a data attribute `data-testid` in the rendered code,
|
|
96
|
+
serving as a hook for automated tests.
|
|
97
|
+
|
|
98
|
+
Will set these elements when defined:
|
|
99
|
+
|
|
100
|
+
- Header element - `{testId}-header`
|
|
101
|
+
- Primary actions container - `{testId}-primary-actions`
|
|
102
|
+
- Secondary actions container - `{testId}-secondary-actions`
|
|
103
|
+
- Overflow menu popup - `{testId}-overflow-menu-popup`
|
|
104
|
+
- Overflow menu button - `{testId}-overflow-menu-trigger`
|
|
105
|
+
*/
|
|
106
106
|
testId?: string;
|
|
107
107
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ThemeProps, ThemeTokens } from '@atlaskit/button/types';
|
|
2
|
-
import { NavigationTheme } from '../../theme';
|
|
1
|
+
import { type ThemeProps, type ThemeTokens } from '@atlaskit/button/types';
|
|
2
|
+
import { type NavigationTheme } from '../../theme';
|
|
3
3
|
export declare const getCreateButtonTheme: ({ mode: { create } }: NavigationTheme) => (current: (props: ThemeProps) => ThemeTokens, props: ThemeProps) => ThemeTokens;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
2
|
-
import { BaseIconButtonProps } from '../IconButton/types';
|
|
1
|
+
import { type ComponentType } from 'react';
|
|
2
|
+
import { type BaseIconButtonProps } from '../IconButton/types';
|
|
3
3
|
export type HelpProps = BaseIconButtonProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Component to be used for the badge.
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { IconButtonSkeletonProps } from './types';
|
|
6
|
+
import { type IconButtonSkeletonProps } from './types';
|
|
4
7
|
export declare const IconButtonSkeleton: ({ className, marginLeft, marginRight, size, }: IconButtonSkeletonProps) => jsx.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ThemeProps, ThemeTokens } from '@atlaskit/button/types';
|
|
2
|
-
import { NavigationTheme } from '../../theme';
|
|
1
|
+
import { type ThemeProps, type ThemeTokens } from '@atlaskit/button/types';
|
|
2
|
+
import { type NavigationTheme } from '../../theme';
|
|
3
3
|
export declare const getIconButtonTheme: ({ mode: { iconButton } }: NavigationTheme) => (current: (props: ThemeProps) => ThemeTokens, props: ThemeProps) => ThemeTokens;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CustomThemeButtonProps } from '@atlaskit/button/types';
|
|
2
|
+
import { type CustomThemeButtonProps } from '@atlaskit/button/types';
|
|
3
3
|
export type IconButtonProps = BaseIconButtonProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Icon for the button.
|
|
@@ -60,12 +60,9 @@ export interface BaseIconButtonProps {
|
|
|
60
60
|
target?: string;
|
|
61
61
|
/**
|
|
62
62
|
* Allows for overriding the component used to render the button.
|
|
63
|
-
*
|
|
64
63
|
* This is primarily intended for compatibility with custom
|
|
65
64
|
* routing libraries when using the `href` prop.
|
|
66
|
-
*
|
|
67
|
-
* For further usage information, refer to the [documentation for button](https://atlassian.design/components/button/code).
|
|
68
|
-
*
|
|
65
|
+
* For further usage information, refer to the [documentation for button](/components/button/code).
|
|
69
66
|
* @example
|
|
70
67
|
* ```tsx
|
|
71
68
|
* <Settings
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
2
|
-
import { BaseIconButtonProps } from '../IconButton/types';
|
|
1
|
+
import { type ComponentType } from 'react';
|
|
2
|
+
import { type BaseIconButtonProps } from '../IconButton/types';
|
|
3
3
|
export type NotificationsProps = BaseIconButtonProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Component to be used for the badge.
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { PrimaryButtonSkeletonProps } from './types';
|
|
6
|
+
import { type PrimaryButtonSkeletonProps } from './types';
|
|
4
7
|
export declare const PrimaryButtonSkeleton: (props: PrimaryButtonSkeletonProps) => jsx.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ThemeProps, ThemeTokens } from '@atlaskit/button/types';
|
|
2
|
-
import { NavigationTheme } from '../../theme';
|
|
1
|
+
import { type ThemeProps, type ThemeTokens } from '@atlaskit/button/types';
|
|
2
|
+
import { type NavigationTheme } from '../../theme';
|
|
3
3
|
export declare const getPrimaryButtonTheme: ({ mode: { primaryButton } }: NavigationTheme) => (current: (props: ThemeProps) => ThemeTokens, props: ThemeProps) => ThemeTokens;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { AllHTMLAttributes, ComponentType, ElementType } from 'react';
|
|
2
|
-
import { CustomThemeButtonProps } from '@atlaskit/button/types';
|
|
1
|
+
import { type AllHTMLAttributes, type ComponentType, type ElementType } from 'react';
|
|
2
|
+
import { type CustomThemeButtonProps } from '@atlaskit/button/types';
|
|
3
3
|
export type PrimaryButtonProps = Omit<CustomThemeButtonProps, 'appearance' | 'onClick'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Allows for overriding the component used to render the button.
|
|
6
|
-
*
|
|
7
|
-
* This is primarily intended for compatibility with custom
|
|
6
|
+
* This is primarily intended for compatibility with custom
|
|
8
7
|
* routing libraries when using the `href` prop.
|
|
9
8
|
*
|
|
10
|
-
*
|
|
9
|
+
* For further usage information, refer to the [documentation for button](https://atlassian.design/components/button/button-legacy/code).
|
|
11
10
|
*
|
|
12
11
|
* @example
|
|
13
12
|
* ```tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { PrimaryButtonProps } from '../PrimaryButton/types';
|
|
2
|
+
import { type PrimaryButtonProps } from '../PrimaryButton/types';
|
|
3
3
|
export type PrimaryDropdownButtonProps = Omit<PrimaryButtonProps, 'iconAfter'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Will set the appearance of the button to look highlighted.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import { NavigationTheme } from '../../theme';
|
|
3
|
-
import { PrimaryItemsContainerProps } from './types';
|
|
2
|
+
import { type NavigationTheme } from '../../theme';
|
|
3
|
+
import { type PrimaryItemsContainerProps } from './types';
|
|
4
4
|
export declare const PrimaryItemsContainer: ({ moreLabel, items, create: Create, theme, testId, }: PrimaryItemsContainerProps & {
|
|
5
5
|
theme: NavigationTheme;
|
|
6
6
|
}) => jsx.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { PrimaryItemsContainerSkeletonProps } from './types';
|
|
3
|
+
import { type PrimaryItemsContainerSkeletonProps } from './types';
|
|
4
4
|
export declare const PrimaryItemsContainerSkeleton: import("react").MemoExoticComponent<({ count }: PrimaryItemsContainerSkeletonProps) => jsx.JSX.Element>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { NavigationTheme } from '../../theme';
|
|
3
|
-
import { PrimaryItemsContainerProps } from '../PrimaryItemsContainer/types';
|
|
2
|
+
import { type NavigationTheme } from '../../theme';
|
|
3
|
+
import { type PrimaryItemsContainerProps } from '../PrimaryItemsContainer/types';
|
|
4
4
|
export declare const PrimaryItemsContainer: React.MemoExoticComponent<({ moreLabel, items, create: Create, theme, testId, }: PrimaryItemsContainerProps & {
|
|
5
5
|
theme: NavigationTheme;
|
|
6
6
|
}) => JSX.Element>;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { jsx } from '@emotion/react';
|
|
3
|
-
export declare const ProductHomeSkeleton: ({ showSiteName
|
|
6
|
+
export declare const ProductHomeSkeleton: ({ showSiteName }: {
|
|
4
7
|
showSiteName: boolean;
|
|
5
8
|
}) => jsx.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentType, MouseEvent } from 'react';
|
|
2
|
-
import { LogoProps } from '@atlaskit/logo';
|
|
1
|
+
import { type ComponentType, type MouseEvent } from 'react';
|
|
2
|
+
import { type LogoProps } from '@atlaskit/logo';
|
|
3
3
|
export interface ProductHomeProps {
|
|
4
4
|
/**
|
|
5
5
|
* The product icon.
|
|
@@ -33,17 +33,17 @@ export interface ProductHomeProps {
|
|
|
33
33
|
*/
|
|
34
34
|
siteTitle?: string;
|
|
35
35
|
/**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
36
|
+
A `testId` prop is provided for specified elements,
|
|
37
|
+
which is a unique string that appears as a data attribute `data-testid` in the rendered code,
|
|
38
|
+
serving as a hook for automated tests.
|
|
39
|
+
|
|
40
|
+
Will set these elements when defined:
|
|
41
|
+
|
|
42
|
+
- Root element of the component - `{testId}-container`
|
|
43
|
+
- Product logo shown at large screen sizes - `{testId}-logo`
|
|
44
|
+
- Product icon shown at small screen sizes - `{testId}-icon`
|
|
45
|
+
- Site title - `{testId}-site-title`
|
|
46
|
+
*/
|
|
47
47
|
testId?: string;
|
|
48
48
|
}
|
|
49
49
|
export interface CustomProductHomeProps {
|
|
@@ -85,16 +85,16 @@ export interface CustomProductHomeProps {
|
|
|
85
85
|
*/
|
|
86
86
|
siteTitle?: string;
|
|
87
87
|
/**
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
88
|
+
A `testId` prop is provided for specified elements,
|
|
89
|
+
which is a unique string that appears as a data attribute `data-testid` in the rendered code,
|
|
90
|
+
serving as a hook for automated tests.
|
|
91
|
+
|
|
92
|
+
Will set these elements when defined:
|
|
93
|
+
|
|
94
|
+
- Root element of the component - `{testId}-container`
|
|
95
|
+
- Product logo shown at large screen sizes - `{testId}-logo`
|
|
96
|
+
- Product icon shown at small screen sizes - `{testId}-icon`
|
|
97
|
+
- Site title - `{testId}-site-title`
|
|
98
|
+
*/
|
|
99
99
|
testId?: string;
|
|
100
100
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IconButtonProps } from '../IconButton/types';
|
|
1
|
+
import { type IconButtonProps } from '../IconButton/types';
|
|
2
2
|
export type ProfileProps = IconButtonProps;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BaseIconButtonProps } from '../IconButton/types';
|
|
1
|
+
import { type BaseIconButtonProps } from '../IconButton/types';
|
|
2
2
|
export type SettingsProps = BaseIconButtonProps;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BaseIconButtonProps } from '../IconButton/types';
|
|
1
|
+
import { type BaseIconButtonProps } from '../IconButton/types';
|
|
2
2
|
export type SignInProps = BaseIconButtonProps;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { SkeletonCreateButtonProps } from './types';
|
|
6
|
+
import { type SkeletonCreateButtonProps } from './types';
|
|
4
7
|
/**
|
|
5
8
|
* __Skeleton create button__
|
|
6
9
|
*
|
|
@@ -11,4 +14,4 @@ import { SkeletonCreateButtonProps } from './types';
|
|
|
11
14
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
|
|
12
15
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
13
16
|
*/
|
|
14
|
-
export declare const SkeletonCreateButton: ({ text, testId
|
|
17
|
+
export declare const SkeletonCreateButton: ({ text, testId }: SkeletonCreateButtonProps) => jsx.JSX.Element;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { SkeletonIconButtonProps } from './types';
|
|
6
|
+
import { type SkeletonIconButtonProps } from './types';
|
|
4
7
|
/**
|
|
5
8
|
* __Skeleton icon button__
|
|
6
9
|
*
|
|
@@ -11,4 +14,4 @@ import { SkeletonIconButtonProps } from './types';
|
|
|
11
14
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
|
|
12
15
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
13
16
|
*/
|
|
14
|
-
export declare const SkeletonIconButton: ({ children, testId
|
|
17
|
+
export declare const SkeletonIconButton: ({ children, testId }: SkeletonIconButtonProps) => jsx.JSX.Element;
|