@atlaskit/atlassian-navigation 2.4.0 → 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 (58) hide show
  1. package/CHANGELOG.md +6 -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 +7 -6
  13. package/dist/cjs/components/ProductHome/product-home.js +7 -6
  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/version.json +1 -1
  21. package/dist/es2019/common/constants.js +1 -3
  22. package/dist/es2019/components/AtlassianNavigation/index.js +5 -5
  23. package/dist/es2019/components/AtlassianNavigation/skeleton.js +8 -8
  24. package/dist/es2019/components/Create/index.js +2 -2
  25. package/dist/es2019/components/Create/skeleton.js +3 -3
  26. package/dist/es2019/components/IconButton/skeleton.js +2 -3
  27. package/dist/es2019/components/PrimaryButton/index.js +2 -3
  28. package/dist/es2019/components/PrimaryButton/skeleton.js +3 -3
  29. package/dist/es2019/components/PrimaryItemsContainer/index.js +1 -2
  30. package/dist/es2019/components/PrimaryItemsContainer/skeleton.js +2 -3
  31. package/dist/es2019/components/ProductHome/custom-product-home.js +7 -7
  32. package/dist/es2019/components/ProductHome/product-home.js +7 -7
  33. package/dist/es2019/components/ProductHome/skeleton.js +8 -8
  34. package/dist/es2019/components/Profile/skeleton.js +1 -2
  35. package/dist/es2019/components/Search/index.js +4 -4
  36. package/dist/es2019/components/Search/skeleton.js +5 -5
  37. package/dist/es2019/components/SignIn/skeleton.js +1 -2
  38. package/dist/es2019/version.json +1 -1
  39. package/dist/esm/common/constants.js +1 -3
  40. package/dist/esm/components/AtlassianNavigation/index.js +5 -5
  41. package/dist/esm/components/AtlassianNavigation/skeleton.js +8 -8
  42. package/dist/esm/components/Create/index.js +2 -2
  43. package/dist/esm/components/Create/skeleton.js +3 -3
  44. package/dist/esm/components/IconButton/skeleton.js +2 -3
  45. package/dist/esm/components/PrimaryButton/index.js +2 -3
  46. package/dist/esm/components/PrimaryButton/skeleton.js +3 -3
  47. package/dist/esm/components/PrimaryItemsContainer/index.js +1 -2
  48. package/dist/esm/components/PrimaryItemsContainer/skeleton.js +2 -3
  49. package/dist/esm/components/ProductHome/custom-product-home.js +7 -7
  50. package/dist/esm/components/ProductHome/product-home.js +7 -7
  51. package/dist/esm/components/ProductHome/skeleton.js +8 -8
  52. package/dist/esm/components/Profile/skeleton.js +1 -2
  53. package/dist/esm/components/Search/index.js +4 -4
  54. package/dist/esm/components/Search/skeleton.js +5 -5
  55. package/dist/esm/components/SignIn/skeleton.js +1 -2
  56. package/dist/esm/version.json +1 -1
  57. package/dist/types/common/constants.d.ts +0 -2
  58. package/package.json +1 -1
@@ -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,
@@ -71,18 +71,18 @@ const productHomeButtonStyles = css({
71
71
  },
72
72
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
73
73
  [`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
74
- margin: `0 ${gridSize}px`
74
+ margin: `0 ${"var(--ds-space-100, 8px)"}`
75
75
  },
76
76
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
77
77
  [`@media (min-width: ${PRODUCT_HOME_BREAKPOINT}px)`]: {
78
- margin: `0 ${gridSize * 2}px`
78
+ margin: `0 ${"var(--ds-space-200, 16px)"}`
79
79
  }
80
80
  });
81
81
  const siteTitleStyles = css({
82
82
  display: 'flex',
83
- marginRight: gridSize / 2,
84
- marginLeft: gridSize * 0.5,
85
- paddingRight: gridSize * 2,
83
+ marginRight: "var(--ds-space-050, 4px)",
84
+ marginLeft: "var(--ds-space-050, 4px)",
85
+ paddingRight: "var(--ds-space-200, 16px)",
86
86
  alignItems: 'center'
87
87
  });
88
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,
@@ -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({
@@ -94,9 +94,9 @@ const productIconStyles = css({
94
94
  });
95
95
  const siteTitleStyles = css({
96
96
  display: 'flex',
97
- marginRight: gridSize / 2,
98
- marginLeft: gridSize * 0.5,
99
- paddingRight: gridSize * 2,
97
+ marginRight: "var(--ds-space-050, 4px)",
98
+ marginLeft: "var(--ds-space-050, 4px)",
99
+ paddingRight: "var(--ds-space-200, 16px)",
100
100
  alignItems: 'center'
101
101
  });
102
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
  });
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "2.4.0",
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
@@ -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,
@@ -70,15 +70,15 @@ var productHomeButtonStyles = css((_css3 = {
70
70
  pointerEvents: 'none'
71
71
  }
72
72
  }, _defineProperty(_css3, "@media (max-width: ".concat(PRODUCT_HOME_BREAKPOINT - 0.1, "px)"), {
73
- margin: "0 ".concat(gridSize, "px")
73
+ margin: "0 ".concat("var(--ds-space-100, 8px)")
74
74
  }), _defineProperty(_css3, "@media (min-width: ".concat(PRODUCT_HOME_BREAKPOINT, "px)"), {
75
- margin: "0 ".concat(gridSize * 2, "px")
75
+ margin: "0 ".concat("var(--ds-space-200, 16px)")
76
76
  }), _css3));
77
77
  var siteTitleStyles = css({
78
78
  display: 'flex',
79
- marginRight: gridSize / 2,
80
- marginLeft: gridSize * 0.5,
81
- paddingRight: gridSize * 2,
79
+ marginRight: "var(--ds-space-050, 4px)",
80
+ marginLeft: "var(--ds-space-050, 4px)",
81
+ paddingRight: "var(--ds-space-200, 16px)",
82
82
  alignItems: 'center'
83
83
  });
84
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,
@@ -54,9 +54,9 @@ var productHomeButtonStyles = css((_css = {
54
54
  pointerEvents: 'none'
55
55
  }
56
56
  }, _defineProperty(_css, "@media (max-width: ".concat(PRODUCT_HOME_BREAKPOINT - 0.1, "px)"), {
57
- margin: "0 ".concat(gridSize, "px")
57
+ margin: "0 ".concat("var(--ds-space-100, 8px)")
58
58
  }), _defineProperty(_css, "@media (min-width: ".concat(PRODUCT_HOME_BREAKPOINT, "px)"), {
59
- margin: "0 ".concat(gridSize * 2, "px")
59
+ margin: "0 ".concat("var(--ds-space-200, 16px)")
60
60
  }), _css));
61
61
  var productLogoStyles = css(_defineProperty({
62
62
  // Ensure anything passed into
@@ -90,9 +90,9 @@ var productIconStyles = css(_defineProperty({
90
90
  }));
91
91
  var siteTitleStyles = css({
92
92
  display: 'flex',
93
- marginRight: gridSize / 2,
94
- marginLeft: gridSize * 0.5,
95
- paddingRight: gridSize * 2,
93
+ marginRight: "var(--ds-space-050, 4px)",
94
+ marginLeft: "var(--ds-space-050, 4px)",
95
+ paddingRight: "var(--ds-space-200, 16px)",
96
96
  alignItems: 'center'
97
97
  });
98
98