@atlaskit/atlassian-navigation 4.9.4 → 4.10.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 +14 -0
- package/dist/cjs/components/AppSwitcher/index.js +77 -23
- package/dist/cjs/components/Create/index.js +1 -1
- package/dist/cjs/components/Help/index.js +35 -3
- package/dist/cjs/components/IconButton/index.js +37 -8
- package/dist/cjs/components/Notifications/index.js +37 -5
- package/dist/cjs/components/PrimaryButton/index.js +20 -12
- package/dist/cjs/components/PrimaryDropdownButton/index.js +26 -5
- package/dist/cjs/components/ProductHome/custom-product-home.js +13 -13
- package/dist/cjs/components/ProductHome/product-home.js +13 -14
- package/dist/cjs/components/ProductHome/skeleton.js +7 -7
- package/dist/cjs/components/Profile/index.js +44 -9
- package/dist/cjs/components/Search/index.js +39 -11
- package/dist/cjs/components/Settings/index.js +34 -4
- package/dist/cjs/components/SignIn/index.js +35 -4
- package/dist/cjs/components/SkeletonPrimaryButton/index.js +1 -2
- package/dist/es2019/components/AppSwitcher/index.js +73 -19
- package/dist/es2019/components/Create/index.js +1 -1
- package/dist/es2019/components/Help/index.js +34 -2
- package/dist/es2019/components/IconButton/index.js +36 -7
- package/dist/es2019/components/Notifications/index.js +36 -4
- package/dist/es2019/components/PrimaryButton/index.js +20 -11
- package/dist/es2019/components/PrimaryDropdownButton/index.js +26 -3
- package/dist/es2019/components/ProductHome/custom-product-home.js +5 -3
- package/dist/es2019/components/ProductHome/product-home.js +5 -4
- package/dist/es2019/components/Profile/index.js +41 -8
- package/dist/es2019/components/Search/index.js +36 -7
- package/dist/es2019/components/Settings/index.js +32 -2
- package/dist/es2019/components/SignIn/index.js +33 -2
- package/dist/esm/components/AppSwitcher/index.js +77 -23
- package/dist/esm/components/Create/index.js +1 -1
- package/dist/esm/components/Help/index.js +35 -3
- package/dist/esm/components/IconButton/index.js +37 -8
- package/dist/esm/components/Notifications/index.js +37 -5
- package/dist/esm/components/PrimaryButton/index.js +20 -12
- package/dist/esm/components/PrimaryDropdownButton/index.js +26 -3
- package/dist/esm/components/ProductHome/custom-product-home.js +13 -13
- package/dist/esm/components/ProductHome/product-home.js +13 -14
- package/dist/esm/components/ProductHome/skeleton.js +5 -7
- package/dist/esm/components/Profile/index.js +44 -9
- package/dist/esm/components/Search/index.js +39 -11
- package/dist/esm/components/Settings/index.js +34 -4
- package/dist/esm/components/SignIn/index.js +35 -4
- package/dist/esm/components/SkeletonPrimaryButton/index.js +1 -2
- package/dist/types/components/AppSwitcher/index.d.ts +0 -9
- package/dist/types/components/ProductHome/product-home.d.ts +1 -1
- package/dist/types/controllers/overflow/index.d.ts +1 -1
- package/dist/types-ts4.5/components/AppSwitcher/index.d.ts +0 -9
- package/dist/types-ts4.5/components/ProductHome/product-home.d.ts +1 -1
- package/dist/types-ts4.5/controllers/overflow/index.d.ts +1 -1
- package/package.json +4 -3
|
@@ -94,7 +94,6 @@ var buttonWrapperStyles = css({
|
|
|
94
94
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
95
95
|
*/
|
|
96
96
|
export var SkeletonPrimaryButton = function SkeletonPrimaryButton(_ref) {
|
|
97
|
-
var _objectSpread2;
|
|
98
97
|
var _ref$isDropdownButton = _ref.isDropdownButton,
|
|
99
98
|
isDropdownButton = _ref$isDropdownButton === void 0 ? false : _ref$isDropdownButton,
|
|
100
99
|
_ref$isHighlighted = _ref.isHighlighted,
|
|
@@ -106,7 +105,7 @@ export var SkeletonPrimaryButton = function SkeletonPrimaryButton(_ref) {
|
|
|
106
105
|
var primaryButton = theme.mode.primaryButton;
|
|
107
106
|
var dynamicStyles = stripEmptyProperties(_objectSpread(_objectSpread(_objectSpread({}, primaryButton.default), isHighlighted && {
|
|
108
107
|
color: primaryButton.selected.color
|
|
109
|
-
}), {}, (
|
|
108
|
+
}), {}, _defineProperty(_defineProperty({}, VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR, primaryButton.selected.borderColor), VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR, isHighlighted ? primaryButton.default.borderColor : primaryButton.default.color)));
|
|
110
109
|
return jsx("div", {
|
|
111
110
|
role: "listitem",
|
|
112
111
|
css: buttonWrapperStyles
|
|
@@ -10,15 +10,6 @@ import { type AppSwitcherProps } from './types';
|
|
|
10
10
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
11
11
|
*/
|
|
12
12
|
export declare const AppSwitcher: React.ForwardRefExoticComponent<import("../IconButton/types").BaseIconButtonProps & React.RefAttributes<any>>;
|
|
13
|
-
/**
|
|
14
|
-
* __App switcher nav 4__
|
|
15
|
-
*
|
|
16
|
-
* An app switcher nav 4 {description}.
|
|
17
|
-
*
|
|
18
|
-
* - [Examples](https://atlassian.design/components/{packageName}/examples)
|
|
19
|
-
* - [Code](https://atlassian.design/components/{packageName}/code)
|
|
20
|
-
* - [Usage](https://atlassian.design/components/{packageName}/usage)
|
|
21
|
-
*/
|
|
22
13
|
export declare const AppSwitcherNav4: React.ForwardRefExoticComponent<import("../IconButton/types").BaseIconButtonProps & React.RefAttributes<any>>;
|
|
23
14
|
declare const _default: (props: AppSwitcherProps) => void;
|
|
24
15
|
export default _default;
|
|
@@ -11,5 +11,5 @@ import { type ProductHomeProps } from './types';
|
|
|
11
11
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#product-home)
|
|
12
12
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
13
13
|
*/
|
|
14
|
-
declare const ProductHome: ({ icon: Icon, logo: Logo,
|
|
14
|
+
declare const ProductHome: ({ "aria-label": ariaLabel, href, icon: Icon, logo: Logo, logoMaxWidth, onClick, onMouseDown, siteTitle, testId, ...rest }: ProductHomeProps) => jsx.JSX.Element;
|
|
15
15
|
export default ProductHome;
|
|
@@ -37,7 +37,7 @@ export declare const useOverflowStatus: () => {
|
|
|
37
37
|
export declare const useOverflowController: (nodes: ReactNode | ReactNode[]) => {
|
|
38
38
|
visibleItems: (React.ReactChild | React.ReactFragment | React.ReactPortal)[];
|
|
39
39
|
overflowItems: (React.ReactChild | React.ReactFragment | React.ReactPortal)[];
|
|
40
|
-
updateWidth: import("lodash").
|
|
40
|
+
updateWidth: import("lodash").DebouncedFuncLeading<React.Dispatch<React.SetStateAction<number>>>;
|
|
41
41
|
};
|
|
42
42
|
declare const _default: (props: OverflowContext) => void;
|
|
43
43
|
export default _default;
|
|
@@ -10,15 +10,6 @@ import { type AppSwitcherProps } from './types';
|
|
|
10
10
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
11
11
|
*/
|
|
12
12
|
export declare const AppSwitcher: React.ForwardRefExoticComponent<import("../IconButton/types").BaseIconButtonProps & React.RefAttributes<any>>;
|
|
13
|
-
/**
|
|
14
|
-
* __App switcher nav 4__
|
|
15
|
-
*
|
|
16
|
-
* An app switcher nav 4 {description}.
|
|
17
|
-
*
|
|
18
|
-
* - [Examples](https://atlassian.design/components/{packageName}/examples)
|
|
19
|
-
* - [Code](https://atlassian.design/components/{packageName}/code)
|
|
20
|
-
* - [Usage](https://atlassian.design/components/{packageName}/usage)
|
|
21
|
-
*/
|
|
22
13
|
export declare const AppSwitcherNav4: React.ForwardRefExoticComponent<import("../IconButton/types").BaseIconButtonProps & React.RefAttributes<any>>;
|
|
23
14
|
declare const _default: (props: AppSwitcherProps) => void;
|
|
24
15
|
export default _default;
|
|
@@ -11,5 +11,5 @@ import { type ProductHomeProps } from './types';
|
|
|
11
11
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#product-home)
|
|
12
12
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
13
13
|
*/
|
|
14
|
-
declare const ProductHome: ({ icon: Icon, logo: Logo,
|
|
14
|
+
declare const ProductHome: ({ "aria-label": ariaLabel, href, icon: Icon, logo: Logo, logoMaxWidth, onClick, onMouseDown, siteTitle, testId, ...rest }: ProductHomeProps) => jsx.JSX.Element;
|
|
15
15
|
export default ProductHome;
|
|
@@ -37,7 +37,7 @@ export declare const useOverflowStatus: () => {
|
|
|
37
37
|
export declare const useOverflowController: (nodes: ReactNode | ReactNode[]) => {
|
|
38
38
|
visibleItems: (React.ReactChild | React.ReactFragment | React.ReactPortal)[];
|
|
39
39
|
overflowItems: (React.ReactChild | React.ReactFragment | React.ReactPortal)[];
|
|
40
|
-
updateWidth: import("lodash").
|
|
40
|
+
updateWidth: import("lodash").DebouncedFuncLeading<React.Dispatch<React.SetStateAction<number>>>;
|
|
41
41
|
};
|
|
42
42
|
declare const _default: (props: OverflowContext) => void;
|
|
43
43
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/atlassian-navigation",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.10.0",
|
|
4
4
|
"description": "A horizontal navigation component for Atlassian products.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -48,14 +48,14 @@
|
|
|
48
48
|
"@atlaskit/analytics-namespaced-context": "^6.12.0",
|
|
49
49
|
"@atlaskit/button": "^20.3.0",
|
|
50
50
|
"@atlaskit/ds-lib": "^3.3.0",
|
|
51
|
-
"@atlaskit/icon": "^23.
|
|
51
|
+
"@atlaskit/icon": "^23.1.0",
|
|
52
52
|
"@atlaskit/logo": "*",
|
|
53
53
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
54
54
|
"@atlaskit/popup": "^1.30.0",
|
|
55
55
|
"@atlaskit/primitives": "^13.3.0",
|
|
56
56
|
"@atlaskit/theme": "^14.0.0",
|
|
57
57
|
"@atlaskit/tokens": "^2.4.0",
|
|
58
|
-
"@atlaskit/tooltip": "^
|
|
58
|
+
"@atlaskit/tooltip": "^19.0.0",
|
|
59
59
|
"@atlaskit/width-detector": "^4.3.0",
|
|
60
60
|
"@babel/runtime": "^7.0.0",
|
|
61
61
|
"@emotion/react": "^11.7.1",
|
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@af/accessibility-testing": "*",
|
|
70
|
+
"@af/integration-testing": "*",
|
|
70
71
|
"@af/visual-regression": "*",
|
|
71
72
|
"@atlaskit/dropdown-menu": "^12.23.0",
|
|
72
73
|
"@atlaskit/notification-indicator": "*",
|