@atlaskit/atlassian-navigation 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +7 -6
- package/dist/cjs/components/ProductHome/product-home.js +7 -6
- 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/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 +7 -7
- package/dist/es2019/components/ProductHome/product-home.js +7 -7
- 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/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 +7 -7
- package/dist/esm/components/ProductHome/product-home.js +7 -7
- 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/version.json +1 -1
- package/dist/types/common/constants.d.ts +0 -2
- package/package.json +10 -10
|
@@ -4,7 +4,7 @@ var _css;
|
|
|
4
4
|
|
|
5
5
|
import { Fragment } from 'react';
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
|
-
import {
|
|
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:
|
|
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(
|
|
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(
|
|
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:
|
|
89
|
-
marginRight:
|
|
90
|
-
marginLeft:
|
|
91
|
-
paddingRight:
|
|
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:
|
|
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,
|
|
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:
|
|
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: "
|
|
31
|
-
padding: "0 ".concat(
|
|
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
|
|
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:
|
|
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: "
|
|
19
|
-
padding: "0 ".concat(
|
|
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:
|
|
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:
|
|
10
|
+
size: 38
|
|
12
11
|
});
|
|
13
12
|
};
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/atlassian-navigation",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "A horizontal navigation component for Atlassian products.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -24,16 +24,16 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@atlaskit/analytics-namespaced-context": "^6.
|
|
28
|
-
"@atlaskit/button": "^16.
|
|
29
|
-
"@atlaskit/ds-lib": "^2.
|
|
30
|
-
"@atlaskit/icon": "^21.
|
|
27
|
+
"@atlaskit/analytics-namespaced-context": "^6.7.0",
|
|
28
|
+
"@atlaskit/button": "^16.7.0",
|
|
29
|
+
"@atlaskit/ds-lib": "^2.2.0",
|
|
30
|
+
"@atlaskit/icon": "^21.12.0",
|
|
31
31
|
"@atlaskit/logo": "*",
|
|
32
|
-
"@atlaskit/popup": "^1.
|
|
33
|
-
"@atlaskit/theme": "^12.
|
|
34
|
-
"@atlaskit/tokens": "^1.
|
|
35
|
-
"@atlaskit/tooltip": "^17.
|
|
36
|
-
"@atlaskit/width-detector": "^4.
|
|
32
|
+
"@atlaskit/popup": "^1.6.0",
|
|
33
|
+
"@atlaskit/theme": "^12.5.0",
|
|
34
|
+
"@atlaskit/tokens": "^1.3.0",
|
|
35
|
+
"@atlaskit/tooltip": "^17.8.0",
|
|
36
|
+
"@atlaskit/width-detector": "^4.1.0",
|
|
37
37
|
"@babel/runtime": "^7.0.0",
|
|
38
38
|
"@emotion/react": "^11.7.1",
|
|
39
39
|
"chromatism": "^2.6.0",
|