@atlaskit/atlassian-navigation 2.3.5 → 2.4.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 (66) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/common/constants.js +1 -5
  3. package/dist/cjs/components/AtlassianNavigation/index.js +4 -4
  4. package/dist/cjs/components/AtlassianNavigation/skeleton.js +7 -7
  5. package/dist/cjs/components/Create/index.js +1 -1
  6. package/dist/cjs/components/Create/skeleton.js +2 -2
  7. package/dist/cjs/components/IconButton/skeleton.js +3 -4
  8. package/dist/cjs/components/PrimaryButton/index.js +3 -3
  9. package/dist/cjs/components/PrimaryButton/skeleton.js +4 -4
  10. package/dist/cjs/components/PrimaryItemsContainer/index.js +1 -2
  11. package/dist/cjs/components/PrimaryItemsContainer/skeleton.js +2 -3
  12. package/dist/cjs/components/ProductHome/custom-product-home.js +9 -9
  13. package/dist/cjs/components/ProductHome/product-home.js +9 -9
  14. package/dist/cjs/components/ProductHome/skeleton.js +8 -7
  15. package/dist/cjs/components/Profile/skeleton.js +1 -2
  16. package/dist/cjs/components/Search/index.js +4 -3
  17. package/dist/cjs/components/Search/skeleton.js +4 -4
  18. package/dist/cjs/components/SignIn/skeleton.js +1 -2
  19. package/dist/cjs/components/SkeletonPrimaryButton/index.js +1 -1
  20. package/dist/cjs/theme/default-theme.js +5 -5
  21. package/dist/cjs/theme/theme-generator.js +1 -1
  22. package/dist/cjs/version.json +1 -1
  23. package/dist/es2019/common/constants.js +1 -3
  24. package/dist/es2019/components/AtlassianNavigation/index.js +5 -5
  25. package/dist/es2019/components/AtlassianNavigation/skeleton.js +8 -8
  26. package/dist/es2019/components/Create/index.js +2 -2
  27. package/dist/es2019/components/Create/skeleton.js +3 -3
  28. package/dist/es2019/components/IconButton/skeleton.js +2 -3
  29. package/dist/es2019/components/PrimaryButton/index.js +2 -3
  30. package/dist/es2019/components/PrimaryButton/skeleton.js +3 -3
  31. package/dist/es2019/components/PrimaryItemsContainer/index.js +1 -2
  32. package/dist/es2019/components/PrimaryItemsContainer/skeleton.js +2 -3
  33. package/dist/es2019/components/ProductHome/custom-product-home.js +9 -10
  34. package/dist/es2019/components/ProductHome/product-home.js +9 -10
  35. package/dist/es2019/components/ProductHome/skeleton.js +8 -8
  36. package/dist/es2019/components/Profile/skeleton.js +1 -2
  37. package/dist/es2019/components/Search/index.js +4 -4
  38. package/dist/es2019/components/Search/skeleton.js +5 -5
  39. package/dist/es2019/components/SignIn/skeleton.js +1 -2
  40. package/dist/es2019/theme/default-theme.js +5 -5
  41. package/dist/es2019/theme/theme-generator.js +1 -1
  42. package/dist/es2019/version.json +1 -1
  43. package/dist/esm/common/constants.js +1 -3
  44. package/dist/esm/components/AtlassianNavigation/index.js +5 -5
  45. package/dist/esm/components/AtlassianNavigation/skeleton.js +8 -8
  46. package/dist/esm/components/Create/index.js +2 -2
  47. package/dist/esm/components/Create/skeleton.js +3 -3
  48. package/dist/esm/components/IconButton/skeleton.js +2 -3
  49. package/dist/esm/components/PrimaryButton/index.js +2 -3
  50. package/dist/esm/components/PrimaryButton/skeleton.js +3 -3
  51. package/dist/esm/components/PrimaryItemsContainer/index.js +1 -2
  52. package/dist/esm/components/PrimaryItemsContainer/skeleton.js +2 -3
  53. package/dist/esm/components/ProductHome/custom-product-home.js +9 -10
  54. package/dist/esm/components/ProductHome/product-home.js +9 -10
  55. package/dist/esm/components/ProductHome/skeleton.js +8 -8
  56. package/dist/esm/components/Profile/skeleton.js +1 -2
  57. package/dist/esm/components/Search/index.js +4 -4
  58. package/dist/esm/components/Search/skeleton.js +5 -5
  59. package/dist/esm/components/SignIn/skeleton.js +1 -2
  60. package/dist/esm/theme/default-theme.js +5 -5
  61. package/dist/esm/theme/theme-generator.js +1 -1
  62. package/dist/esm/version.json +1 -1
  63. package/dist/types/common/constants.d.ts +0 -2
  64. package/dist/types/theme/types.d.ts +1 -6
  65. package/package.json +8 -7
  66. package/report.api.md +1 -8
@@ -7,7 +7,6 @@ import { forwardRef } from 'react';
7
7
  import { css, jsx } from '@emotion/react';
8
8
  import Button from '@atlaskit/button/custom-theme-button';
9
9
  import Tooltip from '@atlaskit/tooltip';
10
- import { gridSize } from '../../common/constants';
11
10
  import { useTheme } from '../../theme';
12
11
  import { getPrimaryButtonTheme } from './styles';
13
12
  var VAR_BUTTON_SELECTED_COLOR = '--button-selected-color';
@@ -28,9 +27,9 @@ var buttonHighlightedStyles = css({
28
27
  '&:after': {
29
28
  height: 3,
30
29
  position: 'absolute',
31
- right: gridSize / 2,
30
+ right: "var(--ds-space-050, 4px)",
32
31
  bottom: 0,
33
- left: gridSize / 2,
32
+ left: "var(--ds-space-050, 4px)",
34
33
  backgroundColor: "var(".concat(VAR_BUTTON_SELECTED_BORDER_COLOR, ")"),
35
34
  borderTopLeftRadius: 1,
36
35
  borderTopRightRadius: 1,
@@ -1,14 +1,14 @@
1
1
  /** @jsx jsx */
2
2
 
3
3
  import { css, jsx } from '@emotion/react';
4
- import { buttonHeight, gridSize } from '../../common/constants';
5
4
  import { useTheme } from '../../theme';
6
- var paddingAll = gridSize / 2;
5
+ var paddingAll = 4;
6
+ var buttonHeight = 32;
7
7
  var skeletonStyles = css({
8
8
  display: 'inline-flex',
9
9
  width: '68px',
10
10
  height: "".concat(buttonHeight - paddingAll * 2.5, "px"),
11
- borderRadius: "".concat(gridSize / 2, "px"),
11
+ borderRadius: "var(--ds-radius-100, 4px)",
12
12
  opacity: 0.15
13
13
  });
14
14
 
@@ -5,7 +5,6 @@ import { useCallback, useState } from 'react';
5
5
  import { css, jsx } from '@emotion/react';
6
6
  import Popup from '@atlaskit/popup';
7
7
  import { WidthObserver } from '@atlaskit/width-detector';
8
- import { gridSize } from '../../common/constants';
9
8
  import { OverflowProvider, useOverflowController } from '../../controllers/overflow';
10
9
  import { PrimaryDropdownButton } from '../PrimaryDropdownButton';
11
10
  var containerStyles = css({
@@ -18,7 +17,7 @@ var containerStyles = css({
18
17
  flexShrink: 0,
19
18
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
20
19
  '& > *': {
21
- margin: "0 ".concat(gridSize / 2, "px"),
20
+ margin: "0 ".concat("var(--ds-space-050, 4px)"),
22
21
  flexShrink: 0
23
22
  }
24
23
  });
@@ -1,11 +1,10 @@
1
1
  /** @jsx jsx */
2
2
  import { Fragment } from 'react';
3
3
  import { css, jsx } from '@emotion/react';
4
- import { gridSize } from '../../common/constants';
5
4
  import { PrimaryButtonSkeleton } from '../PrimaryButton/skeleton';
6
5
  var primaryButtonSkeletonStyles = css({
7
- marginRight: gridSize * 1.5,
8
- marginLeft: gridSize * 1.5
6
+ marginRight: "var(--ds-space-150, 12px)",
7
+ marginLeft: "var(--ds-space-150, 12px)"
9
8
  });
10
9
 
11
10
  // Internal only
@@ -6,7 +6,7 @@ var _css3;
6
6
  /** @jsx jsx */
7
7
  import { Fragment } from 'react';
8
8
  import { css, jsx } from '@emotion/react';
9
- import { gridSize, PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
9
+ import { PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
10
10
  import { useTheme } from '../../theme';
11
11
  import { getTag } from './utils';
12
12
  var VAR_PRODUCT_HOME_COLOR_ACTIVE = '--product-home-color-active';
@@ -37,7 +37,7 @@ var productIconStyles = css(_defineProperty({
37
37
  }));
38
38
  var productHomeButtonStyles = css((_css3 = {
39
39
  display: 'flex',
40
- padding: gridSize / 2,
40
+ padding: "var(--ds-space-050, 4px)",
41
41
  alignItems: 'center',
42
42
  background: 'none',
43
43
  border: 0,
@@ -60,26 +60,25 @@ var productHomeButtonStyles = css((_css3 = {
60
60
  boxShadow: "var(".concat(VAR_PRODUCT_HOME_BOX_SHADOW_ACTIVE, ")"),
61
61
  color: "var(".concat(VAR_PRODUCT_HOME_COLOR_ACTIVE, ")")
62
62
  },
63
- '&:focus': {
63
+ '&:focus-visible': {
64
64
  backgroundColor: "var(".concat(VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS, ")"),
65
- boxShadow: "var(".concat(VAR_PRODUCT_HOME_BOX_SHADOW_FOCUS, ")"),
66
65
  color: "var(".concat(VAR_PRODUCT_HOME_COLOR_FOCUS, ")"),
67
- outline: 0
66
+ outline: "2px solid ".concat("var(--ds-border-focused, #4C9AFF)")
68
67
  },
69
68
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
70
69
  'div&': {
71
70
  pointerEvents: 'none'
72
71
  }
73
72
  }, _defineProperty(_css3, "@media (max-width: ".concat(PRODUCT_HOME_BREAKPOINT - 0.1, "px)"), {
74
- margin: "0 ".concat(gridSize, "px")
73
+ margin: "0 ".concat("var(--ds-space-100, 8px)")
75
74
  }), _defineProperty(_css3, "@media (min-width: ".concat(PRODUCT_HOME_BREAKPOINT, "px)"), {
76
- margin: "0 ".concat(gridSize * 2, "px")
75
+ margin: "0 ".concat("var(--ds-space-200, 16px)")
77
76
  }), _css3));
78
77
  var siteTitleStyles = css({
79
78
  display: 'flex',
80
- marginRight: gridSize / 2,
81
- marginLeft: gridSize * 0.5,
82
- paddingRight: gridSize * 2,
79
+ marginRight: "var(--ds-space-050, 4px)",
80
+ marginLeft: "var(--ds-space-050, 4px)",
81
+ paddingRight: "var(--ds-space-200, 16px)",
83
82
  alignItems: 'center'
84
83
  });
85
84
 
@@ -6,7 +6,7 @@ var _css;
6
6
  /** @jsx jsx */
7
7
  import { Fragment } from 'react';
8
8
  import { css, jsx } from '@emotion/react';
9
- import { gridSize, PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
9
+ import { PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
10
10
  import { useTheme } from '../../theme';
11
11
  import { getTag } from './utils';
12
12
  var VAR_LOGO_MAX_WIDTH = '--logo-max-width';
@@ -21,7 +21,7 @@ var VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER = '--product-home-bg-color-hover';
21
21
  var VAR_PRODUCT_HOME_BOX_SHADOW_HOVER = '--product-home-box-shadow-hover';
22
22
  var productHomeButtonStyles = css((_css = {
23
23
  display: 'flex',
24
- padding: gridSize / 2,
24
+ padding: "var(--ds-space-050, 4px)",
25
25
  alignItems: 'center',
26
26
  background: 'none',
27
27
  border: 0,
@@ -44,20 +44,19 @@ var productHomeButtonStyles = css((_css = {
44
44
  boxShadow: "var(".concat(VAR_PRODUCT_HOME_BOX_SHADOW_ACTIVE, ")"),
45
45
  color: "var(".concat(VAR_PRODUCT_HOME_COLOR_ACTIVE, ")")
46
46
  },
47
- '&:focus': {
47
+ '&:focus-visible': {
48
48
  backgroundColor: "var(".concat(VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS, ")"),
49
- boxShadow: "var(".concat(VAR_PRODUCT_HOME_BOX_SHADOW_FOCUS, ")"),
50
49
  color: "var(".concat(VAR_PRODUCT_HOME_COLOR_FOCUS, ")"),
51
- outline: 0
50
+ outline: "2px solid ".concat("var(--ds-border-focused, #4C9AFF)")
52
51
  },
53
52
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
54
53
  'div&': {
55
54
  pointerEvents: 'none'
56
55
  }
57
56
  }, _defineProperty(_css, "@media (max-width: ".concat(PRODUCT_HOME_BREAKPOINT - 0.1, "px)"), {
58
- margin: "0 ".concat(gridSize, "px")
57
+ margin: "0 ".concat("var(--ds-space-100, 8px)")
59
58
  }), _defineProperty(_css, "@media (min-width: ".concat(PRODUCT_HOME_BREAKPOINT, "px)"), {
60
- margin: "0 ".concat(gridSize * 2, "px")
59
+ margin: "0 ".concat("var(--ds-space-200, 16px)")
61
60
  }), _css));
62
61
  var productLogoStyles = css(_defineProperty({
63
62
  // Ensure anything passed into
@@ -91,9 +90,9 @@ var productIconStyles = css(_defineProperty({
91
90
  }));
92
91
  var siteTitleStyles = css({
93
92
  display: 'flex',
94
- marginRight: gridSize / 2,
95
- marginLeft: gridSize * 0.5,
96
- paddingRight: gridSize * 2,
93
+ marginRight: "var(--ds-space-050, 4px)",
94
+ marginLeft: "var(--ds-space-050, 4px)",
95
+ paddingRight: "var(--ds-space-200, 16px)",
97
96
  alignItems: 'center'
98
97
  });
99
98
 
@@ -4,7 +4,7 @@ var _css;
4
4
 
5
5
  import { Fragment } from 'react';
6
6
  import { css, jsx } from '@emotion/react';
7
- import { gridSize, PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
7
+ import { PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
8
8
  import { useTheme } from '../../theme';
9
9
  var VAR_PRODUCT_HOME_COLOR_ACTIVE = '--product-home-color-active';
10
10
  var VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE = '--product-home-bg-color-active';
@@ -18,7 +18,7 @@ var VAR_PRODUCT_HOME_BOX_SHADOW_HOVER = '--product-home-box-shadow-hover';
18
18
  var VAR_SITE_TITLE_BG_COLOR_AFTER = '--site-title-bg-color-after';
19
19
  var productHomeButtonStyles = css((_css = {
20
20
  display: 'flex',
21
- padding: gridSize / 2,
21
+ padding: "var(--ds-space-050, 4px)",
22
22
  alignItems: 'center',
23
23
  background: 'none',
24
24
  border: 0,
@@ -52,9 +52,9 @@ var productHomeButtonStyles = css((_css = {
52
52
  pointerEvents: 'none'
53
53
  }
54
54
  }, _defineProperty(_css, "@media (max-width: ".concat(PRODUCT_HOME_BREAKPOINT - 0.1, "px)"), {
55
- margin: "0 ".concat(gridSize, "px")
55
+ margin: "0 ".concat("var(--ds-space-100, 8px)")
56
56
  }), _defineProperty(_css, "@media (min-width: ".concat(PRODUCT_HOME_BREAKPOINT, "px)"), {
57
- margin: "0 ".concat(gridSize * 2, "px")
57
+ margin: "0 ".concat("var(--ds-space-200, 16px)")
58
58
  }), _css));
59
59
  var productLogoStyles = css(_defineProperty({
60
60
  display: 'flex',
@@ -85,10 +85,10 @@ var productIconStyles = css(_defineProperty({
85
85
  }));
86
86
  var siteTitleStyles = css({
87
87
  display: 'flex',
88
- width: gridSize * 5,
89
- marginRight: gridSize / 2,
90
- marginLeft: gridSize * 0.5,
91
- paddingRight: gridSize * 2,
88
+ width: "var(--ds-space-500, 40px)",
89
+ marginRight: "var(--ds-space-050, 4px)",
90
+ marginLeft: "var(--ds-space-050, 4px)",
91
+ paddingRight: "var(--ds-space-200, 16px)",
92
92
  alignItems: 'center',
93
93
  backgroundColor: 'transparent',
94
94
  '&:after': {
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import { gridSize } from '@atlaskit/theme/constants';
3
2
  import { IconButtonSkeleton } from '../IconButton/skeleton';
4
3
 
5
4
  // Not exported to consumers, only used in NavigationSkeleton
@@ -8,6 +7,6 @@ export var ProfileSkeleton = function ProfileSkeleton() {
8
7
  return /*#__PURE__*/React.createElement(IconButtonSkeleton, {
9
8
  marginLeft: 6,
10
9
  marginRight: 6,
11
- size: gridSize() * 3.25
10
+ size: 26
12
11
  });
13
12
  };
@@ -6,11 +6,11 @@ var _excluded = ["placeholder", "tooltip", "label", "value"];
6
6
  import { Fragment } from 'react';
7
7
  import { css, jsx } from '@emotion/react';
8
8
  import SearchIcon from '@atlaskit/icon/glyph/search';
9
- import { CREATE_BREAKPOINT, fontSize, gridSize, varSearchBackgroundColor, varSearchBorderColor, varSearchColor, varSearchFocusBorderColor, varSearchHoverBackgroundColor } from '../../common/constants';
9
+ import { CREATE_BREAKPOINT, fontSize, varSearchBackgroundColor, varSearchBorderColor, varSearchColor, varSearchFocusBorderColor, varSearchHoverBackgroundColor } from '../../common/constants';
10
10
  import { useTheme } from '../../theme';
11
11
  import { IconButton } from '../IconButton';
12
12
  var searchInputContainerStyles = css(_defineProperty({
13
- marginRight: gridSize,
13
+ marginRight: "var(--ds-space-100, 8px)",
14
14
  marginLeft: 20,
15
15
  position: 'relative'
16
16
  }, "@media (max-width: ".concat(CREATE_BREAKPOINT - 1, "px)"), {
@@ -27,8 +27,8 @@ var searchInputIconStyles = css({
27
27
  var searchInputStyles = css({
28
28
  boxSizing: 'border-box',
29
29
  width: '220px',
30
- height: "".concat(gridSize * 4, "px"),
31
- padding: "0 ".concat(gridSize, "px 0 40px"),
30
+ height: "var(--ds-space-400, 32px)",
31
+ padding: "0 ".concat("var(--ds-space-100, 8px)", " 0 ", "var(--ds-space-500, 40px)"),
32
32
  backgroundColor: "var(".concat(varSearchBackgroundColor, ")"),
33
33
  border: '2px solid',
34
34
  borderColor: "var(".concat(varSearchBorderColor, ")"),
@@ -2,11 +2,11 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  /** @jsx jsx */
3
3
  import { Fragment } from 'react';
4
4
  import { css, jsx } from '@emotion/react';
5
- import { CREATE_BREAKPOINT, gridSize } from '../../common/constants';
5
+ import { CREATE_BREAKPOINT } from '../../common/constants';
6
6
  import { useTheme } from '../../theme';
7
7
  import { IconButtonSkeleton } from '../IconButton/skeleton';
8
8
  var searchInputContainerStyles = css(_defineProperty({
9
- marginRight: gridSize,
9
+ marginRight: "var(--ds-space-100, 8px)",
10
10
  marginLeft: 20,
11
11
  position: 'relative'
12
12
  }, "@media (max-width: ".concat(CREATE_BREAKPOINT - 1, "px)"), {
@@ -15,8 +15,8 @@ var searchInputContainerStyles = css(_defineProperty({
15
15
  var searchInputSkeletonStyles = css({
16
16
  boxSizing: 'border-box',
17
17
  width: '220px',
18
- height: "".concat(gridSize * 4, "px"),
19
- padding: "0 ".concat(gridSize, "px 0 40px"),
18
+ height: "var(--ds-space-400, 32px)",
19
+ padding: "0 ".concat("var(--ds-space-100, 8px)", " 0 ", "var(--ds-space-500, 40px)"),
20
20
  borderRadius: 6,
21
21
  opacity: 0.15
22
22
  });
@@ -36,6 +36,6 @@ export var SearchSkeleton = function SearchSkeleton() {
36
36
  })), jsx(IconButtonSkeleton, {
37
37
  css: searchIconStyles,
38
38
  marginRight: 5,
39
- size: gridSize * 3.25
39
+ size: 26
40
40
  }));
41
41
  };
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import { gridSize } from '@atlaskit/theme/constants';
3
2
  import { IconButtonSkeleton } from '../IconButton/skeleton';
4
3
 
5
4
  // Not exported to consumers, only used in NavigationSkeleton
@@ -8,6 +7,6 @@ export var SignInSkeleton = function SignInSkeleton() {
8
7
  return /*#__PURE__*/React.createElement(IconButtonSkeleton, {
9
8
  marginLeft: 6,
10
9
  marginRight: 6,
11
- size: gridSize() * 4.75
10
+ size: 38
12
11
  });
13
12
  };
@@ -15,8 +15,8 @@ var defaultTheme = {
15
15
  },
16
16
  focus: {
17
17
  color: "var(--ds-text-inverse, ".concat(N0, ")"),
18
- backgroundColor: "var(--ds-background-brand-bold, ".concat(B400, ")"),
19
- boxShadow: "0 0 0 2px ".concat("var(--ds-border-focused, rgb(128,169,230))")
18
+ backgroundColor: '',
19
+ boxShadow: ''
20
20
  },
21
21
  hover: {
22
22
  color: "var(--ds-text-inverse, ".concat(N0, ")"),
@@ -42,8 +42,8 @@ var defaultTheme = {
42
42
  },
43
43
  focus: {
44
44
  color: "var(--ds-text-subtle, ".concat(N600, ")"),
45
- backgroundColor: "var(--ds-background-selected-hovered, ".concat(hexToRGBA(B50, 0.5), ")"),
46
- boxShadow: "0 0 0 2px ".concat("var(--ds-border-focused, ".concat(B200, ")"))
45
+ backgroundColor: '',
46
+ boxShadow: ''
47
47
  },
48
48
  hover: {
49
49
  color: "var(--ds-text-subtle, ".concat(B400, ")"),
@@ -91,7 +91,7 @@ var defaultTheme = {
91
91
  focus: {
92
92
  color: "var(--ds-text-subtle, ".concat(N600, ")"),
93
93
  backgroundColor: '',
94
- boxShadow: "0 0 0 2px ".concat("var(--ds-border-focused, ".concat(B200, ")"))
94
+ boxShadow: ''
95
95
  },
96
96
  hover: {
97
97
  color: "var(--ds-text-subtle, ".concat(B400, ")"),
@@ -29,7 +29,7 @@ var generateButtonCSSStates = function generateButtonCSSStates(colors, buttonTyp
29
29
  color: color
30
30
  },
31
31
  focus: {
32
- boxShadow: getBoxShadow(hexToRGBA(highlightColor, 0.5)),
32
+ boxShadow: 'none',
33
33
  color: color,
34
34
  backgroundColor: backgroundColor
35
35
  },
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "2.3.5",
3
+ "version": "2.4.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,3 @@
1
- export declare const gridSize: number;
2
- export declare const buttonHeight: number;
3
1
  export declare const fontSize: number;
4
2
  export declare const HORIZONTAL_GLOBAL_NAV_HEIGHT = 56;
5
3
  export declare const PRODUCT_HOME_BREAKPOINT = 1280;
@@ -6,15 +6,10 @@ export declare type CSSProperties = CSSObject & {
6
6
  export declare type ButtonCSSProperties = CSSProperties & {
7
7
  boxShadow: string;
8
8
  };
9
- export declare type ButtonFocusCSSProperties = {
10
- boxShadow: string;
11
- color: string;
12
- backgroundColor: string;
13
- };
14
9
  export declare type ButtonCSSContext = {
15
10
  default: ButtonCSSProperties;
16
11
  hover: ButtonCSSProperties;
17
- focus: ButtonFocusCSSProperties;
12
+ focus: ButtonCSSProperties;
18
13
  active: ButtonCSSProperties;
19
14
  selected: ButtonCSSProperties;
20
15
  selectedHover?: ButtonCSSProperties;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "2.3.5",
3
+ "version": "2.4.1",
4
4
  "description": "A horizontal navigation component for Atlassian products.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -15,7 +15,6 @@
15
15
  "sideEffects": false,
16
16
  "atlaskit:src": "src/index.tsx",
17
17
  "atlassian": {
18
- "disableProductCI": true,
19
18
  "team": "Design System Team",
20
19
  "deprecatedAutoEntryPoints": true,
21
20
  "releaseModel": "scheduled",
@@ -26,14 +25,14 @@
26
25
  },
27
26
  "dependencies": {
28
27
  "@atlaskit/analytics-namespaced-context": "^6.6.0",
29
- "@atlaskit/button": "^16.5.0",
28
+ "@atlaskit/button": "^16.6.0",
30
29
  "@atlaskit/ds-lib": "^2.1.0",
31
30
  "@atlaskit/icon": "^21.11.0",
32
31
  "@atlaskit/logo": "*",
33
32
  "@atlaskit/popup": "^1.5.0",
34
- "@atlaskit/theme": "^12.2.0",
35
- "@atlaskit/tokens": "^1.0.0",
36
- "@atlaskit/tooltip": "^17.6.0",
33
+ "@atlaskit/theme": "^12.3.0",
34
+ "@atlaskit/tokens": "^1.2.0",
35
+ "@atlaskit/tooltip": "^17.7.0",
37
36
  "@atlaskit/width-detector": "^4.0.0",
38
37
  "@babel/runtime": "^7.0.0",
39
38
  "@emotion/react": "^11.7.1",
@@ -79,7 +78,9 @@
79
78
  "emotion",
80
79
  "static"
81
80
  ],
82
- "theming": "tokens",
81
+ "design-tokens": [
82
+ "color"
83
+ ],
83
84
  "deprecation": "no-deprecated-imports"
84
85
  }
85
86
  },
package/report.api.md CHANGED
@@ -97,7 +97,7 @@ interface BaseIconButtonProps {
97
97
  type ButtonCSSContext = {
98
98
  default: ButtonCSSProperties;
99
99
  hover: ButtonCSSProperties;
100
- focus: ButtonFocusCSSProperties;
100
+ focus: ButtonCSSProperties;
101
101
  active: ButtonCSSProperties;
102
102
  selected: ButtonCSSProperties;
103
103
  selectedHover?: ButtonCSSProperties;
@@ -108,13 +108,6 @@ type ButtonCSSProperties = CSSProperties & {
108
108
  boxShadow: string;
109
109
  };
110
110
 
111
- // @public (undocumented)
112
- type ButtonFocusCSSProperties = {
113
- boxShadow: string;
114
- color: string;
115
- backgroundColor: string;
116
- };
117
-
118
111
  // @public (undocumented)
119
112
  export type Colors = {
120
113
  backgroundColor: string;