@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
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import { css, jsx } from '@emotion/react';
3
3
  import { N30A, N40A, N900 } from '@atlaskit/theme/colors';
4
- import { gridSize, HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
4
+ import { HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
5
5
  import { defaultTheme, hexToRGBA, ThemeProvider } from '../../theme';
6
6
  import { IconButtonSkeleton } from '../IconButton/skeleton';
7
7
  import { PrimaryItemsContainerSkeleton } from '../PrimaryItemsContainer/skeleton';
@@ -12,8 +12,8 @@ const containerStyles = css({
12
12
  display: 'flex',
13
13
  boxSizing: 'border-box',
14
14
  height: HORIZONTAL_GLOBAL_NAV_HEIGHT,
15
- paddingRight: gridSize * 1.5,
16
- paddingLeft: gridSize * 1.5,
15
+ paddingRight: "var(--ds-space-150, 12px)",
16
+ paddingLeft: "var(--ds-space-150, 12px)",
17
17
  position: 'relative',
18
18
  alignItems: 'center',
19
19
  justifyContent: 'space-between',
@@ -29,7 +29,7 @@ const containerStyles = css({
29
29
  },
30
30
  // TODO: (DSP-2087) Remove the below once tokens have launched
31
31
  '&::after': {
32
- height: gridSize / 2,
32
+ height: "var(--ds-space-050, 4px)",
33
33
  position: 'absolute',
34
34
  top: '100%',
35
35
  right: 0,
@@ -58,7 +58,7 @@ const rightStyles = css({
58
58
  flexShrink: 0,
59
59
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
60
60
  '& > *': {
61
- marginRight: gridSize / 2,
61
+ marginRight: "var(--ds-space-050, 4px)",
62
62
  flexShrink: 0
63
63
  }
64
64
  });
@@ -95,7 +95,7 @@ export const NavigationSkeleton = ({
95
95
  }, jsx(IconButtonSkeleton, {
96
96
  marginLeft: 0,
97
97
  marginRight: 5,
98
- size: gridSize * 3.25
98
+ size: 26
99
99
  }), jsx(ProductHomeSkeleton, {
100
100
  showSiteName: showSiteName
101
101
  }), jsx(PrimaryItemsContainerSkeleton, {
@@ -107,8 +107,8 @@ export const NavigationSkeleton = ({
107
107
  }, (_, index) => jsx(IconButtonSkeleton, {
108
108
  key: index,
109
109
  marginLeft: 0,
110
- marginRight: gridSize / 2,
111
- size: gridSize * 3.25
110
+ marginRight: 4,
111
+ size: 26
112
112
  })), jsx(ProfileSkeleton, null))));
113
113
  };
114
114
  export default NavigationSkeleton;
@@ -4,7 +4,7 @@ import { css, jsx } from '@emotion/react';
4
4
  import Button from '@atlaskit/button/custom-theme-button';
5
5
  import AddIcon from '@atlaskit/icon/glyph/editor/add';
6
6
  import Tooltip from '@atlaskit/tooltip';
7
- import { CREATE_BREAKPOINT, gridSize } from '../../common/constants';
7
+ import { CREATE_BREAKPOINT } from '../../common/constants';
8
8
  import { useTheme } from '../../theme';
9
9
  import { IconButton } from '../IconButton';
10
10
  import { getCreateButtonTheme } from './styles';
@@ -27,7 +27,7 @@ const wrapperStyles = css({
27
27
  },
28
28
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
29
29
  '&&': {
30
- marginLeft: gridSize * 1.5
30
+ marginLeft: "var(--ds-space-150, 12px)"
31
31
  }
32
32
  });
33
33
  const TooltipSwitch = ({
@@ -1,10 +1,10 @@
1
1
  /** @jsx jsx */
2
2
  import { Fragment } from 'react';
3
3
  import { css, jsx } from '@emotion/react';
4
- import { CREATE_BREAKPOINT, gridSize } from '../../common/constants';
4
+ import { CREATE_BREAKPOINT } from '../../common/constants';
5
5
  import { useTheme } from '../../theme';
6
6
  import { IconButtonSkeleton } from '../IconButton/skeleton';
7
- const buttonHeight = gridSize * 4;
7
+ const buttonHeight = "var(--ds-space-400, 32px)";
8
8
  const skeletonStyles = css({
9
9
  width: 68,
10
10
  height: buttonHeight,
@@ -28,6 +28,6 @@ export const CreateSkeleton = () => {
28
28
  css: [skeletonStyles, mobileStyles]
29
29
  }), jsx(IconButtonSkeleton, {
30
30
  css: mobileStyles,
31
- size: gridSize * 3.25
31
+ size: 26
32
32
  }));
33
33
  };
@@ -1,8 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import { css, jsx } from '@emotion/react';
3
- import { gridSize } from '../../common/constants';
4
3
  import { useTheme } from '../../theme';
5
- const buttonHeight = gridSize * 4;
4
+ const buttonHeight = "var(--ds-space-400, 32px)";
6
5
  const skeletonStyles = css({
7
6
  borderRadius: '50%',
8
7
  opacity: 0.15
@@ -18,7 +17,7 @@ export const IconButtonSkeleton = ({
18
17
  }) => {
19
18
  const theme = useTheme();
20
19
  const dynamicStyles = {
21
- marginLeft: typeof marginLeft === 'number' ? marginLeft : gridSize / 2,
20
+ marginLeft: typeof marginLeft === 'number' ? marginLeft : "var(--ds-space-050, 4px)",
22
21
  marginRight: typeof marginRight === 'number' ? marginRight : 0,
23
22
  width: typeof size === 'number' ? size : buttonHeight,
24
23
  height: typeof size === 'number' ? size : buttonHeight,
@@ -4,7 +4,6 @@ import { forwardRef } from 'react';
4
4
  import { css, jsx } from '@emotion/react';
5
5
  import Button from '@atlaskit/button/custom-theme-button';
6
6
  import Tooltip from '@atlaskit/tooltip';
7
- import { gridSize } from '../../common/constants';
8
7
  import { useTheme } from '../../theme';
9
8
  import { getPrimaryButtonTheme } from './styles';
10
9
  const VAR_BUTTON_SELECTED_COLOR = '--button-selected-color';
@@ -25,9 +24,9 @@ const buttonHighlightedStyles = css({
25
24
  '&:after': {
26
25
  height: 3,
27
26
  position: 'absolute',
28
- right: gridSize / 2,
27
+ right: "var(--ds-space-050, 4px)",
29
28
  bottom: 0,
30
- left: gridSize / 2,
29
+ left: "var(--ds-space-050, 4px)",
31
30
  backgroundColor: `var(${VAR_BUTTON_SELECTED_BORDER_COLOR})`,
32
31
  borderTopLeftRadius: 1,
33
32
  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
- const paddingAll = gridSize / 2;
5
+ const paddingAll = 4;
6
+ const buttonHeight = 32;
7
7
  const skeletonStyles = css({
8
8
  display: 'inline-flex',
9
9
  width: '68px',
10
10
  height: `${buttonHeight - paddingAll * 2.5}px`,
11
- borderRadius: `${gridSize / 2}px`,
11
+ borderRadius: "var(--ds-radius-100, 4px)",
12
12
  opacity: 0.15
13
13
  });
14
14
 
@@ -4,7 +4,6 @@ import { useCallback, useState } from 'react';
4
4
  import { css, jsx } from '@emotion/react';
5
5
  import Popup from '@atlaskit/popup';
6
6
  import { WidthObserver } from '@atlaskit/width-detector';
7
- import { gridSize } from '../../common/constants';
8
7
  import { OverflowProvider, useOverflowController } from '../../controllers/overflow';
9
8
  import { PrimaryDropdownButton } from '../PrimaryDropdownButton';
10
9
  const containerStyles = css({
@@ -17,7 +16,7 @@ const containerStyles = css({
17
16
  flexShrink: 0,
18
17
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
19
18
  '& > *': {
20
- margin: `0 ${gridSize / 2}px`,
19
+ margin: `0 ${"var(--ds-space-050, 4px)"}`,
21
20
  flexShrink: 0
22
21
  }
23
22
  });
@@ -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
  const 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
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  /** @jsx jsx */
3
3
  import { Fragment } from 'react';
4
4
  import { css, jsx } from '@emotion/react';
5
- import { gridSize, PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
5
+ import { PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
6
6
  import { useTheme } from '../../theme';
7
7
  import { getTag } from './utils';
8
8
  const VAR_PRODUCT_HOME_COLOR_ACTIVE = '--product-home-color-active';
@@ -37,7 +37,7 @@ const productIconStyles = css({
37
37
  });
38
38
  const productHomeButtonStyles = css({
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,11 +60,10 @@ const productHomeButtonStyles = css({
60
60
  boxShadow: `var(${VAR_PRODUCT_HOME_BOX_SHADOW_ACTIVE})`,
61
61
  color: `var(${VAR_PRODUCT_HOME_COLOR_ACTIVE})`
62
62
  },
63
- '&:focus': {
63
+ '&:focus-visible': {
64
64
  backgroundColor: `var(${VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS})`,
65
- boxShadow: `var(${VAR_PRODUCT_HOME_BOX_SHADOW_FOCUS})`,
66
65
  color: `var(${VAR_PRODUCT_HOME_COLOR_FOCUS})`,
67
- outline: 0
66
+ outline: `2px solid ${"var(--ds-border-focused, #4C9AFF)"}`
68
67
  },
69
68
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
70
69
  'div&': {
@@ -72,18 +71,18 @@ const productHomeButtonStyles = css({
72
71
  },
73
72
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
74
73
  [`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
75
- margin: `0 ${gridSize}px`
74
+ margin: `0 ${"var(--ds-space-100, 8px)"}`
76
75
  },
77
76
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
78
77
  [`@media (min-width: ${PRODUCT_HOME_BREAKPOINT}px)`]: {
79
- margin: `0 ${gridSize * 2}px`
78
+ margin: `0 ${"var(--ds-space-200, 16px)"}`
80
79
  }
81
80
  });
82
81
  const siteTitleStyles = css({
83
82
  display: 'flex',
84
- marginRight: gridSize / 2,
85
- marginLeft: gridSize * 0.5,
86
- paddingRight: gridSize * 2,
83
+ marginRight: "var(--ds-space-050, 4px)",
84
+ marginLeft: "var(--ds-space-050, 4px)",
85
+ paddingRight: "var(--ds-space-200, 16px)",
87
86
  alignItems: 'center'
88
87
  });
89
88
 
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  /** @jsx jsx */
3
3
  import { Fragment } from 'react';
4
4
  import { css, jsx } from '@emotion/react';
5
- import { gridSize, PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
5
+ import { PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
6
6
  import { useTheme } from '../../theme';
7
7
  import { getTag } from './utils';
8
8
  const VAR_LOGO_MAX_WIDTH = '--logo-max-width';
@@ -17,7 +17,7 @@ const VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER = '--product-home-bg-color-hover';
17
17
  const VAR_PRODUCT_HOME_BOX_SHADOW_HOVER = '--product-home-box-shadow-hover';
18
18
  const productHomeButtonStyles = css({
19
19
  display: 'flex',
20
- padding: gridSize / 2,
20
+ padding: "var(--ds-space-050, 4px)",
21
21
  alignItems: 'center',
22
22
  background: 'none',
23
23
  border: 0,
@@ -40,11 +40,10 @@ const productHomeButtonStyles = css({
40
40
  boxShadow: `var(${VAR_PRODUCT_HOME_BOX_SHADOW_ACTIVE})`,
41
41
  color: `var(${VAR_PRODUCT_HOME_COLOR_ACTIVE})`
42
42
  },
43
- '&:focus': {
43
+ '&:focus-visible': {
44
44
  backgroundColor: `var(${VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS})`,
45
- boxShadow: `var(${VAR_PRODUCT_HOME_BOX_SHADOW_FOCUS})`,
46
45
  color: `var(${VAR_PRODUCT_HOME_COLOR_FOCUS})`,
47
- outline: 0
46
+ outline: `2px solid ${"var(--ds-border-focused, #4C9AFF)"}`
48
47
  },
49
48
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
50
49
  'div&': {
@@ -52,11 +51,11 @@ const productHomeButtonStyles = css({
52
51
  },
53
52
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
54
53
  [`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
55
- margin: `0 ${gridSize}px`
54
+ margin: `0 ${"var(--ds-space-100, 8px)"}`
56
55
  },
57
56
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
58
57
  [`@media (min-width: ${PRODUCT_HOME_BREAKPOINT}px)`]: {
59
- margin: `0 ${gridSize * 2}px`
58
+ margin: `0 ${"var(--ds-space-200, 16px)"}`
60
59
  }
61
60
  });
62
61
  const productLogoStyles = css({
@@ -95,9 +94,9 @@ const productIconStyles = css({
95
94
  });
96
95
  const siteTitleStyles = css({
97
96
  display: 'flex',
98
- marginRight: gridSize / 2,
99
- marginLeft: gridSize * 0.5,
100
- paddingRight: gridSize * 2,
97
+ marginRight: "var(--ds-space-050, 4px)",
98
+ marginLeft: "var(--ds-space-050, 4px)",
99
+ paddingRight: "var(--ds-space-200, 16px)",
101
100
  alignItems: 'center'
102
101
  });
103
102
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { Fragment } from 'react';
4
4
  import { css, jsx } from '@emotion/react';
5
- import { gridSize, PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
5
+ import { PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
6
6
  import { useTheme } from '../../theme';
7
7
  const VAR_PRODUCT_HOME_COLOR_ACTIVE = '--product-home-color-active';
8
8
  const VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE = '--product-home-bg-color-active';
@@ -16,7 +16,7 @@ const VAR_PRODUCT_HOME_BOX_SHADOW_HOVER = '--product-home-box-shadow-hover';
16
16
  const VAR_SITE_TITLE_BG_COLOR_AFTER = '--site-title-bg-color-after';
17
17
  const productHomeButtonStyles = css({
18
18
  display: 'flex',
19
- padding: gridSize / 2,
19
+ padding: "var(--ds-space-050, 4px)",
20
20
  alignItems: 'center',
21
21
  background: 'none',
22
22
  border: 0,
@@ -51,11 +51,11 @@ const productHomeButtonStyles = css({
51
51
  },
52
52
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
53
53
  [`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
54
- margin: `0 ${gridSize}px`
54
+ margin: `0 ${"var(--ds-space-100, 8px)"}`
55
55
  },
56
56
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
57
57
  [`@media (min-width: ${PRODUCT_HOME_BREAKPOINT}px)`]: {
58
- margin: `0 ${gridSize * 2}px`
58
+ margin: `0 ${"var(--ds-space-200, 16px)"}`
59
59
  }
60
60
  });
61
61
  const productLogoStyles = css({
@@ -91,10 +91,10 @@ const productIconStyles = css({
91
91
  });
92
92
  const siteTitleStyles = css({
93
93
  display: 'flex',
94
- width: gridSize * 5,
95
- marginRight: gridSize / 2,
96
- marginLeft: gridSize * 0.5,
97
- paddingRight: gridSize * 2,
94
+ width: "var(--ds-space-500, 40px)",
95
+ marginRight: "var(--ds-space-050, 4px)",
96
+ marginLeft: "var(--ds-space-050, 4px)",
97
+ paddingRight: "var(--ds-space-200, 16px)",
98
98
  alignItems: 'center',
99
99
  backgroundColor: 'transparent',
100
100
  '&: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
@@ -7,5 +6,5 @@ import { IconButtonSkeleton } from '../IconButton/skeleton';
7
6
  export const ProfileSkeleton = () => /*#__PURE__*/React.createElement(IconButtonSkeleton, {
8
7
  marginLeft: 6,
9
8
  marginRight: 6,
10
- size: gridSize() * 3.25
9
+ size: 26
11
10
  });
@@ -3,11 +3,11 @@ import _extends from "@babel/runtime/helpers/extends";
3
3
  import { Fragment } from 'react';
4
4
  import { css, jsx } from '@emotion/react';
5
5
  import SearchIcon from '@atlaskit/icon/glyph/search';
6
- import { CREATE_BREAKPOINT, fontSize, gridSize, varSearchBackgroundColor, varSearchBorderColor, varSearchColor, varSearchFocusBorderColor, varSearchHoverBackgroundColor } from '../../common/constants';
6
+ import { CREATE_BREAKPOINT, fontSize, varSearchBackgroundColor, varSearchBorderColor, varSearchColor, varSearchFocusBorderColor, varSearchHoverBackgroundColor } from '../../common/constants';
7
7
  import { useTheme } from '../../theme';
8
8
  import { IconButton } from '../IconButton';
9
9
  const searchInputContainerStyles = css({
10
- marginRight: gridSize,
10
+ marginRight: "var(--ds-space-100, 8px)",
11
11
  marginLeft: 20,
12
12
  position: 'relative',
13
13
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
@@ -26,8 +26,8 @@ const searchInputIconStyles = css({
26
26
  const searchInputStyles = css({
27
27
  boxSizing: 'border-box',
28
28
  width: '220px',
29
- height: `${gridSize * 4}px`,
30
- padding: `0 ${gridSize}px 0 40px`,
29
+ height: "var(--ds-space-400, 32px)",
30
+ padding: `0 ${"var(--ds-space-100, 8px)"} 0 ${"var(--ds-space-500, 40px)"}`,
31
31
  backgroundColor: `var(${varSearchBackgroundColor})`,
32
32
  border: '2px solid',
33
33
  borderColor: `var(${varSearchBorderColor})`,
@@ -1,11 +1,11 @@
1
1
  /** @jsx jsx */
2
2
  import { Fragment } from 'react';
3
3
  import { css, jsx } from '@emotion/react';
4
- import { CREATE_BREAKPOINT, gridSize } from '../../common/constants';
4
+ import { CREATE_BREAKPOINT } from '../../common/constants';
5
5
  import { useTheme } from '../../theme';
6
6
  import { IconButtonSkeleton } from '../IconButton/skeleton';
7
7
  const searchInputContainerStyles = css({
8
- marginRight: gridSize,
8
+ marginRight: "var(--ds-space-100, 8px)",
9
9
  marginLeft: 20,
10
10
  position: 'relative',
11
11
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
@@ -16,8 +16,8 @@ const searchInputContainerStyles = css({
16
16
  const searchInputSkeletonStyles = css({
17
17
  boxSizing: 'border-box',
18
18
  width: '220px',
19
- height: `${gridSize * 4}px`,
20
- padding: `0 ${gridSize}px 0 40px`,
19
+ height: "var(--ds-space-400, 32px)",
20
+ padding: `0 ${"var(--ds-space-100, 8px)"} 0 ${"var(--ds-space-500, 40px)"}`,
21
21
  borderRadius: 6,
22
22
  opacity: 0.15
23
23
  });
@@ -40,6 +40,6 @@ export const SearchSkeleton = () => {
40
40
  })), jsx(IconButtonSkeleton, {
41
41
  css: searchIconStyles,
42
42
  marginRight: 5,
43
- size: gridSize * 3.25
43
+ size: 26
44
44
  }));
45
45
  };
@@ -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
@@ -7,5 +6,5 @@ import { IconButtonSkeleton } from '../IconButton/skeleton';
7
6
  export const SignInSkeleton = () => /*#__PURE__*/React.createElement(IconButtonSkeleton, {
8
7
  marginLeft: 6,
9
8
  marginRight: 6,
10
- size: gridSize() * 4.75
9
+ size: 38
11
10
  });
@@ -15,8 +15,8 @@ const defaultTheme = {
15
15
  },
16
16
  focus: {
17
17
  color: `var(--ds-text-inverse, ${N0})`,
18
- backgroundColor: `var(--ds-background-brand-bold, ${B400})`,
19
- boxShadow: `0 0 0 2px ${"var(--ds-border-focused, rgb(128,169,230))"}`
18
+ backgroundColor: '',
19
+ boxShadow: ''
20
20
  },
21
21
  hover: {
22
22
  color: `var(--ds-text-inverse, ${N0})`,
@@ -42,8 +42,8 @@ const defaultTheme = {
42
42
  },
43
43
  focus: {
44
44
  color: `var(--ds-text-subtle, ${N600})`,
45
- backgroundColor: `var(--ds-background-selected-hovered, ${hexToRGBA(B50, 0.5)})`,
46
- boxShadow: `0 0 0 2px ${`var(--ds-border-focused, ${B200})`}`
45
+ backgroundColor: '',
46
+ boxShadow: ''
47
47
  },
48
48
  hover: {
49
49
  color: `var(--ds-text-subtle, ${B400})`,
@@ -91,7 +91,7 @@ const defaultTheme = {
91
91
  focus: {
92
92
  color: `var(--ds-text-subtle, ${N600})`,
93
93
  backgroundColor: '',
94
- boxShadow: `0 0 0 2px ${`var(--ds-border-focused, ${B200})`}`
94
+ boxShadow: ''
95
95
  },
96
96
  hover: {
97
97
  color: `var(--ds-text-subtle, ${B400})`,
@@ -26,7 +26,7 @@ const generateButtonCSSStates = (colors, buttonType) => {
26
26
  color
27
27
  },
28
28
  focus: {
29
- boxShadow: getBoxShadow(hexToRGBA(highlightColor, 0.5)),
29
+ boxShadow: 'none',
30
30
  color,
31
31
  backgroundColor
32
32
  },
@@ -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,6 +1,4 @@
1
- import { fontSize as getFontSize, gridSize as getGridSize } from '@atlaskit/theme/constants';
2
- export var gridSize = getGridSize();
3
- export var buttonHeight = gridSize * 4;
1
+ import { fontSize as getFontSize } from '@atlaskit/theme/constants';
4
2
  export var fontSize = getFontSize();
5
3
  export var HORIZONTAL_GLOBAL_NAV_HEIGHT = 56;
6
4
  export var PRODUCT_HOME_BREAKPOINT = 1280;
@@ -2,15 +2,15 @@
2
2
  import { css, jsx } from '@emotion/react';
3
3
  import { NavigationAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
4
4
  import { N30A, N40A, N900 } from '@atlaskit/theme/colors';
5
- import { gridSize, HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
5
+ import { HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
6
6
  import { defaultTheme, hexToRGBA, ThemeProvider } from '../../theme';
7
7
  import { PrimaryItemsContainer } from '../PrimaryItemsContainer';
8
8
  var containerStyles = css({
9
9
  display: 'flex',
10
10
  boxSizing: 'border-box',
11
11
  height: HORIZONTAL_GLOBAL_NAV_HEIGHT,
12
- paddingRight: gridSize * 1.5,
13
- paddingLeft: gridSize * 1.5,
12
+ paddingRight: "var(--ds-space-150, 12px)",
13
+ paddingLeft: "var(--ds-space-150, 12px)",
14
14
  position: 'relative',
15
15
  alignItems: 'center',
16
16
  justifyContent: 'space-between',
@@ -26,7 +26,7 @@ var containerStyles = css({
26
26
  },
27
27
  // TODO: (DSP-2087) Remove the below once tokens have launched
28
28
  '&::after': {
29
- height: gridSize / 2,
29
+ height: "var(--ds-space-050, 4px)",
30
30
  position: 'absolute',
31
31
  top: '100%',
32
32
  right: 0,
@@ -55,7 +55,7 @@ var rightStyles = css({
55
55
  flexShrink: 0,
56
56
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
57
57
  '& > *': {
58
- marginRight: gridSize / 2,
58
+ marginRight: "var(--ds-space-050, 4px)",
59
59
  flexShrink: 0
60
60
  }
61
61
  });
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import { css, jsx } from '@emotion/react';
3
3
  import { N30A, N40A, N900 } from '@atlaskit/theme/colors';
4
- import { gridSize, HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
4
+ import { HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
5
5
  import { defaultTheme, hexToRGBA, ThemeProvider } from '../../theme';
6
6
  import { IconButtonSkeleton } from '../IconButton/skeleton';
7
7
  import { PrimaryItemsContainerSkeleton } from '../PrimaryItemsContainer/skeleton';
@@ -12,8 +12,8 @@ var containerStyles = css({
12
12
  display: 'flex',
13
13
  boxSizing: 'border-box',
14
14
  height: HORIZONTAL_GLOBAL_NAV_HEIGHT,
15
- paddingRight: gridSize * 1.5,
16
- paddingLeft: gridSize * 1.5,
15
+ paddingRight: "var(--ds-space-150, 12px)",
16
+ paddingLeft: "var(--ds-space-150, 12px)",
17
17
  position: 'relative',
18
18
  alignItems: 'center',
19
19
  justifyContent: 'space-between',
@@ -29,7 +29,7 @@ var containerStyles = css({
29
29
  },
30
30
  // TODO: (DSP-2087) Remove the below once tokens have launched
31
31
  '&::after': {
32
- height: gridSize / 2,
32
+ height: "var(--ds-space-050, 4px)",
33
33
  position: 'absolute',
34
34
  top: '100%',
35
35
  right: 0,
@@ -58,7 +58,7 @@ var rightStyles = css({
58
58
  flexShrink: 0,
59
59
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
60
60
  '& > *': {
61
- marginRight: gridSize / 2,
61
+ marginRight: "var(--ds-space-050, 4px)",
62
62
  flexShrink: 0
63
63
  }
64
64
  });
@@ -99,7 +99,7 @@ export var NavigationSkeleton = function NavigationSkeleton(_ref) {
99
99
  }, jsx(IconButtonSkeleton, {
100
100
  marginLeft: 0,
101
101
  marginRight: 5,
102
- size: gridSize * 3.25
102
+ size: 26
103
103
  }), jsx(ProductHomeSkeleton, {
104
104
  showSiteName: showSiteName
105
105
  }), jsx(PrimaryItemsContainerSkeleton, {
@@ -112,8 +112,8 @@ export var NavigationSkeleton = function NavigationSkeleton(_ref) {
112
112
  return jsx(IconButtonSkeleton, {
113
113
  key: index,
114
114
  marginLeft: 0,
115
- marginRight: gridSize / 2,
116
- size: gridSize * 3.25
115
+ marginRight: 4,
116
+ size: 26
117
117
  });
118
118
  }), jsx(ProfileSkeleton, null))));
119
119
  };
@@ -5,7 +5,7 @@ import { css, jsx } from '@emotion/react';
5
5
  import Button from '@atlaskit/button/custom-theme-button';
6
6
  import AddIcon from '@atlaskit/icon/glyph/editor/add';
7
7
  import Tooltip from '@atlaskit/tooltip';
8
- import { CREATE_BREAKPOINT, gridSize } from '../../common/constants';
8
+ import { CREATE_BREAKPOINT } from '../../common/constants';
9
9
  import { useTheme } from '../../theme';
10
10
  import { IconButton } from '../IconButton';
11
11
  import { getCreateButtonTheme } from './styles';
@@ -22,7 +22,7 @@ var wrapperStyles = css({
22
22
  }),
23
23
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
24
24
  '&&': {
25
- marginLeft: gridSize * 1.5
25
+ marginLeft: "var(--ds-space-150, 12px)"
26
26
  }
27
27
  });
28
28
  var TooltipSwitch = function TooltipSwitch(_ref) {
@@ -2,10 +2,10 @@ 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
- var buttonHeight = gridSize * 4;
8
+ var buttonHeight = "var(--ds-space-400, 32px)";
9
9
  var skeletonStyles = css({
10
10
  width: 68,
11
11
  height: buttonHeight,
@@ -26,6 +26,6 @@ export var CreateSkeleton = function CreateSkeleton() {
26
26
  css: [skeletonStyles, mobileStyles]
27
27
  }), jsx(IconButtonSkeleton, {
28
28
  css: mobileStyles,
29
- size: gridSize * 3.25
29
+ size: 26
30
30
  }));
31
31
  };
@@ -3,9 +3,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
3
3
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
4
  /** @jsx jsx */
5
5
  import { css, jsx } from '@emotion/react';
6
- import { gridSize } from '../../common/constants';
7
6
  import { useTheme } from '../../theme';
8
- var buttonHeight = gridSize * 4;
7
+ var buttonHeight = "var(--ds-space-400, 32px)";
9
8
  var skeletonStyles = css({
10
9
  borderRadius: '50%',
11
10
  opacity: 0.15
@@ -20,7 +19,7 @@ export var IconButtonSkeleton = function IconButtonSkeleton(_ref) {
20
19
  size = _ref.size;
21
20
  var theme = useTheme();
22
21
  var dynamicStyles = _objectSpread({
23
- marginLeft: typeof marginLeft === 'number' ? marginLeft : gridSize / 2,
22
+ marginLeft: typeof marginLeft === 'number' ? marginLeft : "var(--ds-space-050, 4px)",
24
23
  marginRight: typeof marginRight === 'number' ? marginRight : 0,
25
24
  width: typeof size === 'number' ? size : buttonHeight,
26
25
  height: typeof size === 'number' ? size : buttonHeight