@atlaskit/atlassian-navigation 1.2.0 → 2.0.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 +84 -0
- package/dist/cjs/common/constants.js +1 -1
- package/dist/cjs/components/AtlassianNavigation/styles.js +2 -4
- package/dist/cjs/components/IconButton/styles.js +1 -1
- package/dist/cjs/components/PrimaryButton/styles.js +1 -1
- package/dist/cjs/components/PrimaryItemsContainer/index.js +6 -11
- package/dist/cjs/components/PrimaryItemsContainer/styles.js +1 -10
- package/dist/cjs/components/ProductHome/index.js +4 -4
- package/dist/cjs/components/ProductHome/styles.js +1 -1
- package/dist/cjs/components/Search/styles.js +1 -1
- package/dist/cjs/controllers/overflow/index.js +1 -1
- package/dist/cjs/index.js +26 -26
- package/dist/cjs/theme/defaultTheme.js +42 -44
- package/dist/cjs/theme/index.js +8 -8
- package/dist/cjs/theme/themeGenerator.js +1 -1
- package/dist/cjs/theme/themeHelpers.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/AtlassianNavigation/styles.js +2 -3
- package/dist/es2019/components/PrimaryItemsContainer/index.js +6 -11
- package/dist/es2019/components/PrimaryItemsContainer/styles.js +0 -9
- package/dist/es2019/theme/defaultTheme.js +42 -43
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/AtlassianNavigation/styles.js +2 -3
- package/dist/esm/components/PrimaryItemsContainer/index.js +6 -11
- package/dist/esm/components/PrimaryItemsContainer/styles.js +0 -9
- package/dist/esm/theme/defaultTheme.js +42 -43
- package/dist/esm/version.json +1 -1
- package/dist/types/components/AtlassianNavigation/index.d.ts +1 -0
- package/dist/types/components/AtlassianNavigation/skeleton.d.ts +1 -0
- package/dist/types/components/BadgeContainer/index.d.ts +1 -0
- package/dist/types/components/Create/index.d.ts +1 -0
- package/dist/types/components/Create/skeleton.d.ts +1 -0
- package/dist/types/components/IconButton/skeleton.d.ts +1 -0
- package/dist/types/components/PrimaryButton/skeleton.d.ts +1 -0
- package/dist/types/components/PrimaryItemsContainer/index.d.ts +1 -0
- package/dist/types/components/PrimaryItemsContainer/skeleton.d.ts +1 -0
- package/dist/types/components/ProductHome/custom-product-home.d.ts +1 -0
- package/dist/types/components/ProductHome/product-home.d.ts +1 -0
- package/dist/types/components/ProductHome/skeleton.d.ts +1 -0
- package/dist/types/components/Profile/skeleton.d.ts +1 -0
- package/dist/types/components/Search/index.d.ts +1 -0
- package/dist/types/components/Search/skeleton.d.ts +1 -0
- package/dist/types/components/SignIn/index.d.ts +1 -0
- package/dist/types/components/SignIn/skeleton.d.ts +1 -0
- package/dist/types/components/SkeletonCreateButton/index.d.ts +1 -0
- package/dist/types/components/SkeletonIconButton/index.d.ts +1 -0
- package/dist/types/components/SkeletonPrimaryButton/index.d.ts +1 -0
- package/dist/types/skeleton-help-button.d.ts +1 -0
- package/dist/types/skeleton-notification-button.d.ts +1 -0
- package/dist/types/skeleton-settings-button.d.ts +1 -0
- package/dist/types/skeleton-switcher-button.d.ts +1 -0
- package/package.json +3 -3
|
@@ -35,16 +35,6 @@ export const PrimaryItemsContainer = ({
|
|
|
35
35
|
isSelected: isMoreOpen,
|
|
36
36
|
testId: testId ? `${testId}-overflow-menu-trigger` : 'overflow-menu-trigger'
|
|
37
37
|
}, triggerProps), moreLabel), [moreLabel, onMoreClick, isMoreOpen, testId]);
|
|
38
|
-
|
|
39
|
-
const WidthObserverRelativeWrapper = () => {
|
|
40
|
-
return jsx("div", {
|
|
41
|
-
style: widthObserverContainerStyle
|
|
42
|
-
}, jsx(WidthObserver, {
|
|
43
|
-
offscreen: true,
|
|
44
|
-
setWidth: updateWidth
|
|
45
|
-
}));
|
|
46
|
-
};
|
|
47
|
-
|
|
48
38
|
const content = useCallback(() => jsx(OverflowProvider, {
|
|
49
39
|
isVisible: false,
|
|
50
40
|
openOverflowMenu: openOverflowMenu,
|
|
@@ -67,5 +57,10 @@ export const PrimaryItemsContainer = ({
|
|
|
67
57
|
onClose: onMoreClose,
|
|
68
58
|
trigger: trigger,
|
|
69
59
|
testId: testId ? `${testId}-overflow-menu-popup` : 'overflow-menu-popup'
|
|
70
|
-
}), Create && jsx(Create, null), jsx(
|
|
60
|
+
}), Create && jsx(Create, null), jsx("div", {
|
|
61
|
+
style: widthObserverContainerStyle
|
|
62
|
+
}, jsx(WidthObserver, {
|
|
63
|
+
offscreen: true,
|
|
64
|
+
setWidth: updateWidth
|
|
65
|
+
})));
|
|
71
66
|
};
|
|
@@ -15,15 +15,6 @@ export const containerCSS = ({
|
|
|
15
15
|
'& > *': {
|
|
16
16
|
flexShrink: 0,
|
|
17
17
|
margin
|
|
18
|
-
},
|
|
19
|
-
'&::after': {
|
|
20
|
-
content: '""',
|
|
21
|
-
position: 'absolute',
|
|
22
|
-
top: 0,
|
|
23
|
-
right: 0,
|
|
24
|
-
height: '100%',
|
|
25
|
-
width: `${gridSize() * 3}px`,
|
|
26
|
-
background: `linear-gradient(90deg, transparent 0%, ${navigation.backgroundColor} 100%)`
|
|
27
18
|
}
|
|
28
19
|
});
|
|
29
20
|
export const widthObserverContainerStyle = {
|
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
import { B200, B400, B50, N0, N20, N200, N40, N600, N700 } from '@atlaskit/theme/colors';
|
|
2
|
-
import { token } from '@atlaskit/tokens';
|
|
3
2
|
import { hexToRGBA } from './themeHelpers';
|
|
4
3
|
const defaultTheme = {
|
|
5
4
|
mode: {
|
|
6
5
|
create: {
|
|
7
6
|
active: {
|
|
8
|
-
color:
|
|
9
|
-
backgroundColor:
|
|
7
|
+
color: `var(--ds-text-onBold, ${N0})`,
|
|
8
|
+
backgroundColor: `var(--ds-background-boldBrand-pressed, ${hexToRGBA(B400, 0.8)})`,
|
|
10
9
|
boxShadow: ''
|
|
11
10
|
},
|
|
12
11
|
default: {
|
|
13
|
-
color:
|
|
14
|
-
backgroundColor:
|
|
12
|
+
color: `var(--ds-text-onBold, ${N0})`,
|
|
13
|
+
backgroundColor: `var(--ds-background-boldBrand-resting, ${B400})`,
|
|
15
14
|
boxShadow: ''
|
|
16
15
|
},
|
|
17
16
|
focus: {
|
|
18
|
-
color:
|
|
19
|
-
backgroundColor:
|
|
20
|
-
boxShadow: `0 0 0 2px ${
|
|
17
|
+
color: `var(--ds-text-onBold, ${N0})`,
|
|
18
|
+
backgroundColor: `var(--ds-background-boldBrand-resting, ${B400})`,
|
|
19
|
+
boxShadow: `0 0 0 2px ${"var(--ds-border-focus, rgb(128,169,230))"}`
|
|
21
20
|
},
|
|
22
21
|
hover: {
|
|
23
|
-
color:
|
|
24
|
-
backgroundColor:
|
|
22
|
+
color: `var(--ds-text-onBold, ${N0})`,
|
|
23
|
+
backgroundColor: `var(--ds-background-boldBrand-hover, ${hexToRGBA(B400, 0.9)})`,
|
|
25
24
|
boxShadow: ''
|
|
26
25
|
},
|
|
27
26
|
selected: {
|
|
@@ -32,39 +31,39 @@ const defaultTheme = {
|
|
|
32
31
|
},
|
|
33
32
|
iconButton: {
|
|
34
33
|
active: {
|
|
35
|
-
color:
|
|
36
|
-
backgroundColor:
|
|
34
|
+
color: `var(--ds-text-mediumEmphasis, ${B400})`,
|
|
35
|
+
backgroundColor: `var(--ds-background-subtleNeutral-pressed, ${hexToRGBA(B50, 0.6)})`,
|
|
37
36
|
boxShadow: ''
|
|
38
37
|
},
|
|
39
38
|
default: {
|
|
40
|
-
color:
|
|
39
|
+
color: `var(--ds-text-mediumEmphasis, ${N600})`,
|
|
41
40
|
backgroundColor: 'transparent',
|
|
42
41
|
boxShadow: ''
|
|
43
42
|
},
|
|
44
43
|
focus: {
|
|
45
|
-
color:
|
|
46
|
-
backgroundColor:
|
|
47
|
-
boxShadow: `0 0 0 2px ${
|
|
44
|
+
color: `var(--ds-text-mediumEmphasis, ${N600})`,
|
|
45
|
+
backgroundColor: `var(--ds-background-subtleBrand-hover, ${hexToRGBA(B50, 0.5)})`,
|
|
46
|
+
boxShadow: `0 0 0 2px ${`var(--ds-border-focus, ${B200})`}`
|
|
48
47
|
},
|
|
49
48
|
hover: {
|
|
50
|
-
color:
|
|
51
|
-
backgroundColor:
|
|
49
|
+
color: `var(--ds-text-mediumEmphasis, ${B400})`,
|
|
50
|
+
backgroundColor: `var(--ds-background-subtleNeutral-hover, ${hexToRGBA(B50, 0.9)})`,
|
|
52
51
|
boxShadow: ''
|
|
53
52
|
},
|
|
54
53
|
selected: {
|
|
55
|
-
color:
|
|
56
|
-
backgroundColor:
|
|
54
|
+
color: "var(--ds-text-selected)",
|
|
55
|
+
backgroundColor: "var(--ds-background-selected-resting)",
|
|
57
56
|
boxShadow: ''
|
|
58
57
|
}
|
|
59
58
|
},
|
|
60
59
|
navigation: {
|
|
61
|
-
backgroundColor:
|
|
62
|
-
color:
|
|
60
|
+
backgroundColor: `var(--ds-background-default, ${N0})`,
|
|
61
|
+
color: `var(--ds-text-lowEmphasis, ${N200})`
|
|
63
62
|
},
|
|
64
63
|
productHome: {
|
|
65
|
-
backgroundColor:
|
|
66
|
-
color:
|
|
67
|
-
borderRight: `1px solid ${
|
|
64
|
+
backgroundColor: `var(--ds-text-brand, ${B400})`,
|
|
65
|
+
color: `var(--ds-text-highEmphasis, ${N700})`,
|
|
66
|
+
borderRight: `1px solid ${`var(--ds-border-neutral, ${hexToRGBA(N200, 0.3)})`}`,
|
|
68
67
|
// TODO: (DSP-1256) These colors should be moved into the Logo package
|
|
69
68
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
70
69
|
iconGradientStart: B400,
|
|
@@ -75,49 +74,49 @@ const defaultTheme = {
|
|
|
75
74
|
},
|
|
76
75
|
primaryButton: {
|
|
77
76
|
active: {
|
|
78
|
-
color:
|
|
79
|
-
backgroundColor:
|
|
77
|
+
color: `var(--ds-text-mediumEmphasis, ${B400})`,
|
|
78
|
+
backgroundColor: `var(--ds-background-subtleNeutral-pressed, ${hexToRGBA(B50, 0.7)})`,
|
|
80
79
|
boxShadow: ''
|
|
81
80
|
},
|
|
82
81
|
default: {
|
|
83
|
-
color:
|
|
82
|
+
color: `var(--ds-text-mediumEmphasis, ${N600})`,
|
|
84
83
|
backgroundColor: 'transparent',
|
|
85
84
|
boxShadow: ''
|
|
86
85
|
},
|
|
87
86
|
focus: {
|
|
88
|
-
color:
|
|
87
|
+
color: `var(--ds-text-mediumEmphasis, ${N600})`,
|
|
89
88
|
backgroundColor: '',
|
|
90
|
-
boxShadow: `0 0 0 2px ${
|
|
89
|
+
boxShadow: `0 0 0 2px ${`var(--ds-border-focus, ${B200})`}`
|
|
91
90
|
},
|
|
92
91
|
hover: {
|
|
93
|
-
color:
|
|
94
|
-
backgroundColor:
|
|
92
|
+
color: `var(--ds-text-mediumEmphasis, ${B400})`,
|
|
93
|
+
backgroundColor: `var(--ds-background-subtleNeutral-hover, ${hexToRGBA(B50, 0.9)})`,
|
|
95
94
|
boxShadow: ''
|
|
96
95
|
},
|
|
97
96
|
selected: {
|
|
98
|
-
color:
|
|
99
|
-
backgroundColor:
|
|
97
|
+
color: `var(--ds-text-mediumEmphasis, ${B400})`,
|
|
98
|
+
backgroundColor: "var(--ds-background-selected-resting)",
|
|
100
99
|
boxShadow: '',
|
|
101
|
-
borderColor:
|
|
102
|
-
bordorBottom: `4px solid ${
|
|
100
|
+
borderColor: `var(--ds-iconBorder-brand, ${B400})`,
|
|
101
|
+
bordorBottom: `4px solid ${`var(--ds-iconBorder-brand, ${B400})`}`
|
|
103
102
|
}
|
|
104
103
|
},
|
|
105
104
|
search: {
|
|
106
105
|
default: {
|
|
107
|
-
backgroundColor:
|
|
108
|
-
color:
|
|
109
|
-
borderColor:
|
|
106
|
+
backgroundColor: `var(--ds-background-default, ${N0})`,
|
|
107
|
+
color: `var(--ds-text-lowEmphasis, ${N200})`,
|
|
108
|
+
borderColor: `var(--ds-border-neutral, ${N40})`
|
|
110
109
|
},
|
|
111
110
|
focus: {
|
|
112
|
-
borderColor:
|
|
111
|
+
borderColor: `var(--ds-border-focus, ${B200})`
|
|
113
112
|
},
|
|
114
113
|
hover: {
|
|
115
|
-
color:
|
|
116
|
-
backgroundColor:
|
|
114
|
+
color: `var(--ds-text-brand, ${B400})`,
|
|
115
|
+
backgroundColor: `var(--ds-background-default, ${hexToRGBA(B50, 0.9)})`
|
|
117
116
|
}
|
|
118
117
|
},
|
|
119
118
|
skeleton: {
|
|
120
|
-
backgroundColor:
|
|
119
|
+
backgroundColor: `var(--ds-background-subtleNeutral-resting, ${N20})`,
|
|
121
120
|
opacity: 1
|
|
122
121
|
}
|
|
123
122
|
}
|
package/dist/es2019/version.json
CHANGED
|
@@ -6,7 +6,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6
6
|
|
|
7
7
|
import { N30A, N40A, N900 } from '@atlaskit/theme/colors';
|
|
8
8
|
import { gridSize as gridSizeFn } from '@atlaskit/theme/constants';
|
|
9
|
-
import { token } from '@atlaskit/tokens';
|
|
10
9
|
import { HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
|
|
11
10
|
import { hexToRGBA } from '../../theme';
|
|
12
11
|
var gridSize = gridSizeFn();
|
|
@@ -23,8 +22,8 @@ export var containerCSS = function containerCSS(_ref) {
|
|
|
23
22
|
height: HORIZONTAL_GLOBAL_NAV_HEIGHT,
|
|
24
23
|
position: 'relative',
|
|
25
24
|
'[data-theme="light"] &, [data-theme="dark"] &': {
|
|
26
|
-
// eslint-disable-next-line @atlaskit/design-system/
|
|
27
|
-
borderBottom: "1px solid ".concat(
|
|
25
|
+
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
26
|
+
borderBottom: "1px solid ".concat("var(--ds-border-neutral, #091E4224)"),
|
|
28
27
|
// TODO: (DSP-2087) Remove the below once tokens have launched
|
|
29
28
|
'&::after': {
|
|
30
29
|
content: 'none'
|
|
@@ -42,16 +42,6 @@ export var PrimaryItemsContainer = function PrimaryItemsContainer(_ref) {
|
|
|
42
42
|
testId: testId ? "".concat(testId, "-overflow-menu-trigger") : 'overflow-menu-trigger'
|
|
43
43
|
}, triggerProps), moreLabel);
|
|
44
44
|
}, [moreLabel, onMoreClick, isMoreOpen, testId]);
|
|
45
|
-
|
|
46
|
-
var WidthObserverRelativeWrapper = function WidthObserverRelativeWrapper() {
|
|
47
|
-
return jsx("div", {
|
|
48
|
-
style: widthObserverContainerStyle
|
|
49
|
-
}, jsx(WidthObserver, {
|
|
50
|
-
offscreen: true,
|
|
51
|
-
setWidth: updateWidth
|
|
52
|
-
}));
|
|
53
|
-
};
|
|
54
|
-
|
|
55
45
|
var content = useCallback(function () {
|
|
56
46
|
return jsx(OverflowProvider, {
|
|
57
47
|
isVisible: false,
|
|
@@ -76,5 +66,10 @@ export var PrimaryItemsContainer = function PrimaryItemsContainer(_ref) {
|
|
|
76
66
|
onClose: onMoreClose,
|
|
77
67
|
trigger: trigger,
|
|
78
68
|
testId: testId ? "".concat(testId, "-overflow-menu-popup") : 'overflow-menu-popup'
|
|
79
|
-
}), Create && jsx(Create, null), jsx(
|
|
69
|
+
}), Create && jsx(Create, null), jsx("div", {
|
|
70
|
+
style: widthObserverContainerStyle
|
|
71
|
+
}, jsx(WidthObserver, {
|
|
72
|
+
offscreen: true,
|
|
73
|
+
setWidth: updateWidth
|
|
74
|
+
})));
|
|
80
75
|
};
|
|
@@ -13,15 +13,6 @@ export var containerCSS = function containerCSS(_ref) {
|
|
|
13
13
|
'& > *': {
|
|
14
14
|
flexShrink: 0,
|
|
15
15
|
margin: margin
|
|
16
|
-
},
|
|
17
|
-
'&::after': {
|
|
18
|
-
content: '""',
|
|
19
|
-
position: 'absolute',
|
|
20
|
-
top: 0,
|
|
21
|
-
right: 0,
|
|
22
|
-
height: '100%',
|
|
23
|
-
width: "".concat(gridSize() * 3, "px"),
|
|
24
|
-
background: "linear-gradient(90deg, transparent 0%, ".concat(navigation.backgroundColor, " 100%)")
|
|
25
16
|
}
|
|
26
17
|
};
|
|
27
18
|
};
|
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
import { B200, B400, B50, N0, N20, N200, N40, N600, N700 } from '@atlaskit/theme/colors';
|
|
2
|
-
import { token } from '@atlaskit/tokens';
|
|
3
2
|
import { hexToRGBA } from './themeHelpers';
|
|
4
3
|
var defaultTheme = {
|
|
5
4
|
mode: {
|
|
6
5
|
create: {
|
|
7
6
|
active: {
|
|
8
|
-
color:
|
|
9
|
-
backgroundColor:
|
|
7
|
+
color: "var(--ds-text-onBold, ".concat(N0, ")"),
|
|
8
|
+
backgroundColor: "var(--ds-background-boldBrand-pressed, ".concat(hexToRGBA(B400, 0.8), ")"),
|
|
10
9
|
boxShadow: ''
|
|
11
10
|
},
|
|
12
11
|
default: {
|
|
13
|
-
color:
|
|
14
|
-
backgroundColor:
|
|
12
|
+
color: "var(--ds-text-onBold, ".concat(N0, ")"),
|
|
13
|
+
backgroundColor: "var(--ds-background-boldBrand-resting, ".concat(B400, ")"),
|
|
15
14
|
boxShadow: ''
|
|
16
15
|
},
|
|
17
16
|
focus: {
|
|
18
|
-
color:
|
|
19
|
-
backgroundColor:
|
|
20
|
-
boxShadow: "0 0 0 2px ".concat(
|
|
17
|
+
color: "var(--ds-text-onBold, ".concat(N0, ")"),
|
|
18
|
+
backgroundColor: "var(--ds-background-boldBrand-resting, ".concat(B400, ")"),
|
|
19
|
+
boxShadow: "0 0 0 2px ".concat("var(--ds-border-focus, rgb(128,169,230))")
|
|
21
20
|
},
|
|
22
21
|
hover: {
|
|
23
|
-
color:
|
|
24
|
-
backgroundColor:
|
|
22
|
+
color: "var(--ds-text-onBold, ".concat(N0, ")"),
|
|
23
|
+
backgroundColor: "var(--ds-background-boldBrand-hover, ".concat(hexToRGBA(B400, 0.9), ")"),
|
|
25
24
|
boxShadow: ''
|
|
26
25
|
},
|
|
27
26
|
selected: {
|
|
@@ -32,39 +31,39 @@ var defaultTheme = {
|
|
|
32
31
|
},
|
|
33
32
|
iconButton: {
|
|
34
33
|
active: {
|
|
35
|
-
color:
|
|
36
|
-
backgroundColor:
|
|
34
|
+
color: "var(--ds-text-mediumEmphasis, ".concat(B400, ")"),
|
|
35
|
+
backgroundColor: "var(--ds-background-subtleNeutral-pressed, ".concat(hexToRGBA(B50, 0.6), ")"),
|
|
37
36
|
boxShadow: ''
|
|
38
37
|
},
|
|
39
38
|
default: {
|
|
40
|
-
color:
|
|
39
|
+
color: "var(--ds-text-mediumEmphasis, ".concat(N600, ")"),
|
|
41
40
|
backgroundColor: 'transparent',
|
|
42
41
|
boxShadow: ''
|
|
43
42
|
},
|
|
44
43
|
focus: {
|
|
45
|
-
color:
|
|
46
|
-
backgroundColor:
|
|
47
|
-
boxShadow: "0 0 0 2px ".concat(
|
|
44
|
+
color: "var(--ds-text-mediumEmphasis, ".concat(N600, ")"),
|
|
45
|
+
backgroundColor: "var(--ds-background-subtleBrand-hover, ".concat(hexToRGBA(B50, 0.5), ")"),
|
|
46
|
+
boxShadow: "0 0 0 2px ".concat("var(--ds-border-focus, ".concat(B200, ")"))
|
|
48
47
|
},
|
|
49
48
|
hover: {
|
|
50
|
-
color:
|
|
51
|
-
backgroundColor:
|
|
49
|
+
color: "var(--ds-text-mediumEmphasis, ".concat(B400, ")"),
|
|
50
|
+
backgroundColor: "var(--ds-background-subtleNeutral-hover, ".concat(hexToRGBA(B50, 0.9), ")"),
|
|
52
51
|
boxShadow: ''
|
|
53
52
|
},
|
|
54
53
|
selected: {
|
|
55
|
-
color:
|
|
56
|
-
backgroundColor:
|
|
54
|
+
color: "var(--ds-text-selected)",
|
|
55
|
+
backgroundColor: "var(--ds-background-selected-resting)",
|
|
57
56
|
boxShadow: ''
|
|
58
57
|
}
|
|
59
58
|
},
|
|
60
59
|
navigation: {
|
|
61
|
-
backgroundColor:
|
|
62
|
-
color:
|
|
60
|
+
backgroundColor: "var(--ds-background-default, ".concat(N0, ")"),
|
|
61
|
+
color: "var(--ds-text-lowEmphasis, ".concat(N200, ")")
|
|
63
62
|
},
|
|
64
63
|
productHome: {
|
|
65
|
-
backgroundColor:
|
|
66
|
-
color:
|
|
67
|
-
borderRight: "1px solid ".concat(
|
|
64
|
+
backgroundColor: "var(--ds-text-brand, ".concat(B400, ")"),
|
|
65
|
+
color: "var(--ds-text-highEmphasis, ".concat(N700, ")"),
|
|
66
|
+
borderRight: "1px solid ".concat("var(--ds-border-neutral, ".concat(hexToRGBA(N200, 0.3), ")")),
|
|
68
67
|
// TODO: (DSP-1256) These colors should be moved into the Logo package
|
|
69
68
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
70
69
|
iconGradientStart: B400,
|
|
@@ -75,49 +74,49 @@ var defaultTheme = {
|
|
|
75
74
|
},
|
|
76
75
|
primaryButton: {
|
|
77
76
|
active: {
|
|
78
|
-
color:
|
|
79
|
-
backgroundColor:
|
|
77
|
+
color: "var(--ds-text-mediumEmphasis, ".concat(B400, ")"),
|
|
78
|
+
backgroundColor: "var(--ds-background-subtleNeutral-pressed, ".concat(hexToRGBA(B50, 0.7), ")"),
|
|
80
79
|
boxShadow: ''
|
|
81
80
|
},
|
|
82
81
|
default: {
|
|
83
|
-
color:
|
|
82
|
+
color: "var(--ds-text-mediumEmphasis, ".concat(N600, ")"),
|
|
84
83
|
backgroundColor: 'transparent',
|
|
85
84
|
boxShadow: ''
|
|
86
85
|
},
|
|
87
86
|
focus: {
|
|
88
|
-
color:
|
|
87
|
+
color: "var(--ds-text-mediumEmphasis, ".concat(N600, ")"),
|
|
89
88
|
backgroundColor: '',
|
|
90
|
-
boxShadow: "0 0 0 2px ".concat(
|
|
89
|
+
boxShadow: "0 0 0 2px ".concat("var(--ds-border-focus, ".concat(B200, ")"))
|
|
91
90
|
},
|
|
92
91
|
hover: {
|
|
93
|
-
color:
|
|
94
|
-
backgroundColor:
|
|
92
|
+
color: "var(--ds-text-mediumEmphasis, ".concat(B400, ")"),
|
|
93
|
+
backgroundColor: "var(--ds-background-subtleNeutral-hover, ".concat(hexToRGBA(B50, 0.9), ")"),
|
|
95
94
|
boxShadow: ''
|
|
96
95
|
},
|
|
97
96
|
selected: {
|
|
98
|
-
color:
|
|
99
|
-
backgroundColor:
|
|
97
|
+
color: "var(--ds-text-mediumEmphasis, ".concat(B400, ")"),
|
|
98
|
+
backgroundColor: "var(--ds-background-selected-resting)",
|
|
100
99
|
boxShadow: '',
|
|
101
|
-
borderColor:
|
|
102
|
-
bordorBottom: "4px solid ".concat(
|
|
100
|
+
borderColor: "var(--ds-iconBorder-brand, ".concat(B400, ")"),
|
|
101
|
+
bordorBottom: "4px solid ".concat("var(--ds-iconBorder-brand, ".concat(B400, ")"))
|
|
103
102
|
}
|
|
104
103
|
},
|
|
105
104
|
search: {
|
|
106
105
|
default: {
|
|
107
|
-
backgroundColor:
|
|
108
|
-
color:
|
|
109
|
-
borderColor:
|
|
106
|
+
backgroundColor: "var(--ds-background-default, ".concat(N0, ")"),
|
|
107
|
+
color: "var(--ds-text-lowEmphasis, ".concat(N200, ")"),
|
|
108
|
+
borderColor: "var(--ds-border-neutral, ".concat(N40, ")")
|
|
110
109
|
},
|
|
111
110
|
focus: {
|
|
112
|
-
borderColor:
|
|
111
|
+
borderColor: "var(--ds-border-focus, ".concat(B200, ")")
|
|
113
112
|
},
|
|
114
113
|
hover: {
|
|
115
|
-
color:
|
|
116
|
-
backgroundColor:
|
|
114
|
+
color: "var(--ds-text-brand, ".concat(B400, ")"),
|
|
115
|
+
backgroundColor: "var(--ds-background-default, ".concat(hexToRGBA(B50, 0.9), ")")
|
|
117
116
|
}
|
|
118
117
|
},
|
|
119
118
|
skeleton: {
|
|
120
|
-
backgroundColor:
|
|
119
|
+
backgroundColor: "var(--ds-background-subtleNeutral-resting, ".concat(N20, ")"),
|
|
121
120
|
opacity: 1
|
|
122
121
|
}
|
|
123
122
|
}
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/atlassian-navigation",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "A horizontal navigation component for Atlassian products.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@atlaskit/logo": "*",
|
|
30
30
|
"@atlaskit/popup": "^1.1.0",
|
|
31
31
|
"@atlaskit/theme": "^12.0.0",
|
|
32
|
-
"@atlaskit/tokens": "^0.
|
|
32
|
+
"@atlaskit/tokens": "^0.4.0",
|
|
33
33
|
"@atlaskit/tooltip": "^17.5.0",
|
|
34
34
|
"@atlaskit/width-detector": "^3.0.0",
|
|
35
35
|
"@babel/runtime": "^7.0.0",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"jest-axe": "^4.0.0",
|
|
59
59
|
"jest-emotion": "^10.0.32",
|
|
60
60
|
"react": "^16.8.0",
|
|
61
|
-
"react-intl": "
|
|
61
|
+
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
62
62
|
"typescript": "3.9.6"
|
|
63
63
|
},
|
|
64
64
|
"techstack": {
|