@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.
Files changed (51) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/components/AppSwitcher/index.js +77 -23
  3. package/dist/cjs/components/Create/index.js +1 -1
  4. package/dist/cjs/components/Help/index.js +35 -3
  5. package/dist/cjs/components/IconButton/index.js +37 -8
  6. package/dist/cjs/components/Notifications/index.js +37 -5
  7. package/dist/cjs/components/PrimaryButton/index.js +20 -12
  8. package/dist/cjs/components/PrimaryDropdownButton/index.js +26 -5
  9. package/dist/cjs/components/ProductHome/custom-product-home.js +13 -13
  10. package/dist/cjs/components/ProductHome/product-home.js +13 -14
  11. package/dist/cjs/components/ProductHome/skeleton.js +7 -7
  12. package/dist/cjs/components/Profile/index.js +44 -9
  13. package/dist/cjs/components/Search/index.js +39 -11
  14. package/dist/cjs/components/Settings/index.js +34 -4
  15. package/dist/cjs/components/SignIn/index.js +35 -4
  16. package/dist/cjs/components/SkeletonPrimaryButton/index.js +1 -2
  17. package/dist/es2019/components/AppSwitcher/index.js +73 -19
  18. package/dist/es2019/components/Create/index.js +1 -1
  19. package/dist/es2019/components/Help/index.js +34 -2
  20. package/dist/es2019/components/IconButton/index.js +36 -7
  21. package/dist/es2019/components/Notifications/index.js +36 -4
  22. package/dist/es2019/components/PrimaryButton/index.js +20 -11
  23. package/dist/es2019/components/PrimaryDropdownButton/index.js +26 -3
  24. package/dist/es2019/components/ProductHome/custom-product-home.js +5 -3
  25. package/dist/es2019/components/ProductHome/product-home.js +5 -4
  26. package/dist/es2019/components/Profile/index.js +41 -8
  27. package/dist/es2019/components/Search/index.js +36 -7
  28. package/dist/es2019/components/Settings/index.js +32 -2
  29. package/dist/es2019/components/SignIn/index.js +33 -2
  30. package/dist/esm/components/AppSwitcher/index.js +77 -23
  31. package/dist/esm/components/Create/index.js +1 -1
  32. package/dist/esm/components/Help/index.js +35 -3
  33. package/dist/esm/components/IconButton/index.js +37 -8
  34. package/dist/esm/components/Notifications/index.js +37 -5
  35. package/dist/esm/components/PrimaryButton/index.js +20 -12
  36. package/dist/esm/components/PrimaryDropdownButton/index.js +26 -3
  37. package/dist/esm/components/ProductHome/custom-product-home.js +13 -13
  38. package/dist/esm/components/ProductHome/product-home.js +13 -14
  39. package/dist/esm/components/ProductHome/skeleton.js +5 -7
  40. package/dist/esm/components/Profile/index.js +44 -9
  41. package/dist/esm/components/Search/index.js +39 -11
  42. package/dist/esm/components/Settings/index.js +34 -4
  43. package/dist/esm/components/SignIn/index.js +35 -4
  44. package/dist/esm/components/SkeletonPrimaryButton/index.js +1 -2
  45. package/dist/types/components/AppSwitcher/index.d.ts +0 -9
  46. package/dist/types/components/ProductHome/product-home.d.ts +1 -1
  47. package/dist/types/controllers/overflow/index.d.ts +1 -1
  48. package/dist/types-ts4.5/components/AppSwitcher/index.d.ts +0 -9
  49. package/dist/types-ts4.5/components/ProductHome/product-home.d.ts +1 -1
  50. package/dist/types-ts4.5/controllers/overflow/index.d.ts +1 -1
  51. 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
- }), {}, (_objectSpread2 = {}, _defineProperty(_objectSpread2, VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR, primaryButton.selected.borderColor), _defineProperty(_objectSpread2, VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR, isHighlighted ? primaryButton.default.borderColor : primaryButton.default.color), _objectSpread2)));
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, siteTitle, onClick, href, onMouseDown, testId, logoMaxWidth, "aria-label": ariaLabel, ...rest }: ProductHomeProps) => jsx.JSX.Element;
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").DebouncedFunc<React.Dispatch<React.SetStateAction<number>>>;
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, siteTitle, onClick, href, onMouseDown, testId, logoMaxWidth, "aria-label": ariaLabel, ...rest }: ProductHomeProps) => jsx.JSX.Element;
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").DebouncedFunc<React.Dispatch<React.SetStateAction<number>>>;
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.9.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.0.0",
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": "^18.9.0",
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": "*",