@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.
- package/CHANGELOG.md +16 -0
- package/dist/cjs/common/constants.js +1 -5
- package/dist/cjs/components/AtlassianNavigation/index.js +4 -4
- package/dist/cjs/components/AtlassianNavigation/skeleton.js +7 -7
- package/dist/cjs/components/Create/index.js +1 -1
- package/dist/cjs/components/Create/skeleton.js +2 -2
- package/dist/cjs/components/IconButton/skeleton.js +3 -4
- package/dist/cjs/components/PrimaryButton/index.js +3 -3
- package/dist/cjs/components/PrimaryButton/skeleton.js +4 -4
- package/dist/cjs/components/PrimaryItemsContainer/index.js +1 -2
- package/dist/cjs/components/PrimaryItemsContainer/skeleton.js +2 -3
- package/dist/cjs/components/ProductHome/custom-product-home.js +9 -9
- package/dist/cjs/components/ProductHome/product-home.js +9 -9
- package/dist/cjs/components/ProductHome/skeleton.js +8 -7
- package/dist/cjs/components/Profile/skeleton.js +1 -2
- package/dist/cjs/components/Search/index.js +4 -3
- package/dist/cjs/components/Search/skeleton.js +4 -4
- package/dist/cjs/components/SignIn/skeleton.js +1 -2
- package/dist/cjs/components/SkeletonPrimaryButton/index.js +1 -1
- package/dist/cjs/theme/default-theme.js +5 -5
- package/dist/cjs/theme/theme-generator.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/common/constants.js +1 -3
- package/dist/es2019/components/AtlassianNavigation/index.js +5 -5
- package/dist/es2019/components/AtlassianNavigation/skeleton.js +8 -8
- package/dist/es2019/components/Create/index.js +2 -2
- package/dist/es2019/components/Create/skeleton.js +3 -3
- package/dist/es2019/components/IconButton/skeleton.js +2 -3
- package/dist/es2019/components/PrimaryButton/index.js +2 -3
- package/dist/es2019/components/PrimaryButton/skeleton.js +3 -3
- package/dist/es2019/components/PrimaryItemsContainer/index.js +1 -2
- package/dist/es2019/components/PrimaryItemsContainer/skeleton.js +2 -3
- package/dist/es2019/components/ProductHome/custom-product-home.js +9 -10
- package/dist/es2019/components/ProductHome/product-home.js +9 -10
- package/dist/es2019/components/ProductHome/skeleton.js +8 -8
- package/dist/es2019/components/Profile/skeleton.js +1 -2
- package/dist/es2019/components/Search/index.js +4 -4
- package/dist/es2019/components/Search/skeleton.js +5 -5
- package/dist/es2019/components/SignIn/skeleton.js +1 -2
- package/dist/es2019/theme/default-theme.js +5 -5
- package/dist/es2019/theme/theme-generator.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/common/constants.js +1 -3
- package/dist/esm/components/AtlassianNavigation/index.js +5 -5
- package/dist/esm/components/AtlassianNavigation/skeleton.js +8 -8
- package/dist/esm/components/Create/index.js +2 -2
- package/dist/esm/components/Create/skeleton.js +3 -3
- package/dist/esm/components/IconButton/skeleton.js +2 -3
- package/dist/esm/components/PrimaryButton/index.js +2 -3
- package/dist/esm/components/PrimaryButton/skeleton.js +3 -3
- package/dist/esm/components/PrimaryItemsContainer/index.js +1 -2
- package/dist/esm/components/PrimaryItemsContainer/skeleton.js +2 -3
- package/dist/esm/components/ProductHome/custom-product-home.js +9 -10
- package/dist/esm/components/ProductHome/product-home.js +9 -10
- package/dist/esm/components/ProductHome/skeleton.js +8 -8
- package/dist/esm/components/Profile/skeleton.js +1 -2
- package/dist/esm/components/Search/index.js +4 -4
- package/dist/esm/components/Search/skeleton.js +5 -5
- package/dist/esm/components/SignIn/skeleton.js +1 -2
- package/dist/esm/theme/default-theme.js +5 -5
- package/dist/esm/theme/theme-generator.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/common/constants.d.ts +0 -2
- package/dist/types/theme/types.d.ts +1 -6
- package/package.json +8 -7
- 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 {
|
|
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:
|
|
16
|
-
paddingLeft:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
111
|
-
size:
|
|
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
|
|
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:
|
|
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
|
|
4
|
+
import { CREATE_BREAKPOINT } from '../../common/constants';
|
|
5
5
|
import { useTheme } from '../../theme';
|
|
6
6
|
import { IconButtonSkeleton } from '../IconButton/skeleton';
|
|
7
|
-
const buttonHeight =
|
|
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:
|
|
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 =
|
|
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 :
|
|
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:
|
|
27
|
+
right: "var(--ds-space-050, 4px)",
|
|
29
28
|
bottom: 0,
|
|
30
|
-
left:
|
|
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 =
|
|
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:
|
|
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 ${
|
|
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:
|
|
8
|
-
marginLeft:
|
|
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 {
|
|
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:
|
|
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:
|
|
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 ${
|
|
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 ${
|
|
78
|
+
margin: `0 ${"var(--ds-space-200, 16px)"}`
|
|
80
79
|
}
|
|
81
80
|
});
|
|
82
81
|
const siteTitleStyles = css({
|
|
83
82
|
display: 'flex',
|
|
84
|
-
marginRight:
|
|
85
|
-
marginLeft:
|
|
86
|
-
paddingRight:
|
|
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 {
|
|
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:
|
|
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:
|
|
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 ${
|
|
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 ${
|
|
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:
|
|
99
|
-
marginLeft:
|
|
100
|
-
paddingRight:
|
|
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 {
|
|
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:
|
|
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 ${
|
|
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 ${
|
|
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:
|
|
95
|
-
marginRight:
|
|
96
|
-
marginLeft:
|
|
97
|
-
paddingRight:
|
|
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:
|
|
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,
|
|
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:
|
|
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:
|
|
30
|
-
padding: `0 ${
|
|
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
|
|
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:
|
|
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:
|
|
20
|
-
padding: `0 ${
|
|
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:
|
|
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:
|
|
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:
|
|
19
|
-
boxShadow:
|
|
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:
|
|
46
|
-
boxShadow:
|
|
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:
|
|
94
|
+
boxShadow: ''
|
|
95
95
|
},
|
|
96
96
|
hover: {
|
|
97
97
|
color: `var(--ds-text-subtle, ${B400})`,
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { fontSize as getFontSize
|
|
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 {
|
|
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:
|
|
13
|
-
paddingLeft:
|
|
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:
|
|
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:
|
|
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 {
|
|
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:
|
|
16
|
-
paddingLeft:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
116
|
-
size:
|
|
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
|
|
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:
|
|
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
|
|
5
|
+
import { CREATE_BREAKPOINT } from '../../common/constants';
|
|
6
6
|
import { useTheme } from '../../theme';
|
|
7
7
|
import { IconButtonSkeleton } from '../IconButton/skeleton';
|
|
8
|
-
var buttonHeight =
|
|
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:
|
|
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 =
|
|
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 :
|
|
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
|