@atlaskit/atlassian-navigation 3.6.0 → 3.6.2
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 +14 -0
- package/dist/cjs/components/PrimaryItemsContainer/index.js +7 -1
- package/dist/cjs/components/PrimaryItemsContainerV2/index.js +6 -1
- package/dist/es2019/components/PrimaryItemsContainer/index.js +7 -1
- package/dist/es2019/components/PrimaryItemsContainerV2/index.js +6 -1
- package/dist/esm/components/PrimaryItemsContainer/index.js +7 -1
- package/dist/esm/components/PrimaryItemsContainerV2/index.js +6 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/atlassian-navigation
|
|
2
2
|
|
|
3
|
+
## 3.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 3.6.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#95006](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/95006)
|
|
14
|
+
[`26d9763b841d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/26d9763b841d) -
|
|
15
|
+
Fix broken colors for "more" button items.
|
|
16
|
+
|
|
3
17
|
## 3.6.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -10,6 +10,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
10
10
|
var _react = require("react");
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
12
|
var _popup = _interopRequireDefault(require("@atlaskit/popup"));
|
|
13
|
+
var _colors = require("@atlaskit/theme/colors");
|
|
13
14
|
var _widthDetector = require("@atlaskit/width-detector");
|
|
14
15
|
var _overflow = require("../../controllers/overflow");
|
|
15
16
|
var _PrimaryDropdownButton = require("../PrimaryDropdownButton");
|
|
@@ -36,6 +37,9 @@ var widthObserverContainerStyles = (0, _react2.css)({
|
|
|
36
37
|
position: 'relative',
|
|
37
38
|
flexShrink: 1
|
|
38
39
|
});
|
|
40
|
+
var overflowItemsStyles = (0, _react2.css)({
|
|
41
|
+
color: "var(--ds-text, ".concat(_colors.N700, ")")
|
|
42
|
+
});
|
|
39
43
|
|
|
40
44
|
// Internal only
|
|
41
45
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -74,7 +78,9 @@ var PrimaryItemsContainer = exports.PrimaryItemsContainer = function PrimaryItem
|
|
|
74
78
|
isVisible: false,
|
|
75
79
|
openOverflowMenu: openOverflowMenu,
|
|
76
80
|
closeOverflowMenu: onMoreClose
|
|
77
|
-
},
|
|
81
|
+
}, (0, _react2.jsx)("div", {
|
|
82
|
+
css: overflowItemsStyles
|
|
83
|
+
}, overflowItems));
|
|
78
84
|
},
|
|
79
85
|
// Overflow items has an unstable reference - so we will only recalculate
|
|
80
86
|
// content if `overflowItems` length changes.
|
|
@@ -42,6 +42,9 @@ var largeContainerStyles = (0, _primitives.xcss)((0, _defineProperty2.default)({
|
|
|
42
42
|
}, _responsive.media.above.lg, {
|
|
43
43
|
display: 'flex'
|
|
44
44
|
}));
|
|
45
|
+
var overflowItemsStyles = (0, _primitives.xcss)({
|
|
46
|
+
color: 'color.text'
|
|
47
|
+
});
|
|
45
48
|
var MoreItemsPopup = function MoreItemsPopup(_ref) {
|
|
46
49
|
var moreLabel = _ref.moreLabel,
|
|
47
50
|
testId = _ref.testId,
|
|
@@ -73,7 +76,9 @@ var MoreItemsPopup = function MoreItemsPopup(_ref) {
|
|
|
73
76
|
isVisible: false,
|
|
74
77
|
openOverflowMenu: openOverflowMenu,
|
|
75
78
|
closeOverflowMenu: onMoreClose
|
|
76
|
-
},
|
|
79
|
+
}, /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
80
|
+
xcss: overflowItemsStyles
|
|
81
|
+
}, items));
|
|
77
82
|
}, [items, openOverflowMenu, onMoreClose]);
|
|
78
83
|
return /*#__PURE__*/_react.default.createElement(_popup.default, {
|
|
79
84
|
shouldRenderToParent: true,
|
|
@@ -3,6 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import { useCallback, useState } from 'react';
|
|
4
4
|
import { css, jsx } from '@emotion/react';
|
|
5
5
|
import Popup from '@atlaskit/popup';
|
|
6
|
+
import { N700 } from '@atlaskit/theme/colors';
|
|
6
7
|
import { WidthObserver } from '@atlaskit/width-detector';
|
|
7
8
|
import { OverflowProvider, useOverflowController } from '../../controllers/overflow';
|
|
8
9
|
import { PrimaryDropdownButton } from '../PrimaryDropdownButton';
|
|
@@ -27,6 +28,9 @@ const widthObserverContainerStyles = css({
|
|
|
27
28
|
position: 'relative',
|
|
28
29
|
flexShrink: 1
|
|
29
30
|
});
|
|
31
|
+
const overflowItemsStyles = css({
|
|
32
|
+
color: `var(--ds-text, ${N700})`
|
|
33
|
+
});
|
|
30
34
|
|
|
31
35
|
// Internal only
|
|
32
36
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -61,7 +65,9 @@ export const PrimaryItemsContainer = ({
|
|
|
61
65
|
isVisible: false,
|
|
62
66
|
openOverflowMenu: openOverflowMenu,
|
|
63
67
|
closeOverflowMenu: onMoreClose
|
|
64
|
-
},
|
|
68
|
+
}, jsx("div", {
|
|
69
|
+
css: overflowItemsStyles
|
|
70
|
+
}, overflowItems)),
|
|
65
71
|
// Overflow items has an unstable reference - so we will only recalculate
|
|
66
72
|
// content if `overflowItems` length changes.
|
|
67
73
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -34,6 +34,9 @@ const largeContainerStyles = xcss({
|
|
|
34
34
|
display: 'flex'
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
|
+
const overflowItemsStyles = xcss({
|
|
38
|
+
color: 'color.text'
|
|
39
|
+
});
|
|
37
40
|
const MoreItemsPopup = ({
|
|
38
41
|
moreLabel,
|
|
39
42
|
testId,
|
|
@@ -52,7 +55,9 @@ const MoreItemsPopup = ({
|
|
|
52
55
|
isVisible: false,
|
|
53
56
|
openOverflowMenu: openOverflowMenu,
|
|
54
57
|
closeOverflowMenu: onMoreClose
|
|
55
|
-
},
|
|
58
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
59
|
+
xcss: overflowItemsStyles
|
|
60
|
+
}, items)), [items, openOverflowMenu, onMoreClose]);
|
|
56
61
|
return /*#__PURE__*/React.createElement(Popup, {
|
|
57
62
|
shouldRenderToParent: true,
|
|
58
63
|
placement: "bottom-start",
|
|
@@ -4,6 +4,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
4
4
|
import { useCallback, useState } from 'react';
|
|
5
5
|
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import Popup from '@atlaskit/popup';
|
|
7
|
+
import { N700 } from '@atlaskit/theme/colors';
|
|
7
8
|
import { WidthObserver } from '@atlaskit/width-detector';
|
|
8
9
|
import { OverflowProvider, useOverflowController } from '../../controllers/overflow';
|
|
9
10
|
import { PrimaryDropdownButton } from '../PrimaryDropdownButton';
|
|
@@ -28,6 +29,9 @@ var widthObserverContainerStyles = css({
|
|
|
28
29
|
position: 'relative',
|
|
29
30
|
flexShrink: 1
|
|
30
31
|
});
|
|
32
|
+
var overflowItemsStyles = css({
|
|
33
|
+
color: "var(--ds-text, ".concat(N700, ")")
|
|
34
|
+
});
|
|
31
35
|
|
|
32
36
|
// Internal only
|
|
33
37
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -66,7 +70,9 @@ export var PrimaryItemsContainer = function PrimaryItemsContainer(_ref) {
|
|
|
66
70
|
isVisible: false,
|
|
67
71
|
openOverflowMenu: openOverflowMenu,
|
|
68
72
|
closeOverflowMenu: onMoreClose
|
|
69
|
-
},
|
|
73
|
+
}, jsx("div", {
|
|
74
|
+
css: overflowItemsStyles
|
|
75
|
+
}, overflowItems));
|
|
70
76
|
},
|
|
71
77
|
// Overflow items has an unstable reference - so we will only recalculate
|
|
72
78
|
// content if `overflowItems` length changes.
|
|
@@ -32,6 +32,9 @@ var largeContainerStyles = xcss(_defineProperty({
|
|
|
32
32
|
}, media.above.lg, {
|
|
33
33
|
display: 'flex'
|
|
34
34
|
}));
|
|
35
|
+
var overflowItemsStyles = xcss({
|
|
36
|
+
color: 'color.text'
|
|
37
|
+
});
|
|
35
38
|
var MoreItemsPopup = function MoreItemsPopup(_ref) {
|
|
36
39
|
var moreLabel = _ref.moreLabel,
|
|
37
40
|
testId = _ref.testId,
|
|
@@ -63,7 +66,9 @@ var MoreItemsPopup = function MoreItemsPopup(_ref) {
|
|
|
63
66
|
isVisible: false,
|
|
64
67
|
openOverflowMenu: openOverflowMenu,
|
|
65
68
|
closeOverflowMenu: onMoreClose
|
|
66
|
-
},
|
|
69
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
70
|
+
xcss: overflowItemsStyles
|
|
71
|
+
}, items));
|
|
67
72
|
}, [items, openOverflowMenu, onMoreClose]);
|
|
68
73
|
return /*#__PURE__*/React.createElement(Popup, {
|
|
69
74
|
shouldRenderToParent: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/atlassian-navigation",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.2",
|
|
4
4
|
"description": "A horizontal navigation component for Atlassian products.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"@atlaskit/icon": "^22.1.0",
|
|
50
50
|
"@atlaskit/logo": "*",
|
|
51
51
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
52
|
-
"@atlaskit/popup": "^1.
|
|
53
|
-
"@atlaskit/primitives": "^
|
|
52
|
+
"@atlaskit/popup": "^1.17.0",
|
|
53
|
+
"@atlaskit/primitives": "^6.0.0",
|
|
54
54
|
"@atlaskit/theme": "^12.7.0",
|
|
55
55
|
"@atlaskit/tokens": "^1.45.0",
|
|
56
56
|
"@atlaskit/tooltip": "^18.3.0",
|