@atlaskit/atlassian-navigation 3.1.2 → 3.2.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/components/PrimaryDropdownButton/index.js +1 -2
- package/dist/cjs/components/Search/index.js +2 -2
- package/dist/es2019/components/PrimaryDropdownButton/index.js +1 -2
- package/dist/es2019/components/Search/index.js +2 -2
- package/dist/esm/components/PrimaryDropdownButton/index.js +1 -2
- package/dist/esm/components/Search/index.js +2 -2
- package/dist/types/components/AtlassianNavigation/types.d.ts +2 -2
- package/dist/types-ts4.5/components/AtlassianNavigation/types.d.ts +2 -2
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/atlassian-navigation
|
|
2
2
|
|
|
3
|
+
## 3.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#74756](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/74756) [`8e66f751df96`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8e66f751df96) - Use feature flag to roll out border width update from 2px to 1px
|
|
8
|
+
|
|
9
|
+
## 3.2.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#70040](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70040) [`d18ec4d7ce20`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d18ec4d7ce20) - [ux] Tidy up of the `platform.design-system-team.icon-button-spacing-fix_o1zc5` Platform Feature Flag which applies a small adjustment to icon spacing for buttons using `iconBefore` and `iconAfter` props. Small visual adjustment is to be expected — keep this in mind when reviewing any VR tests breaking. The spacing around the icons will be reduced.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 3.1.2
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -9,7 +9,6 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
9
9
|
var _react = require("react");
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
11
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-down"));
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
12
|
var _primitives = require("@atlaskit/primitives");
|
|
14
13
|
var _PrimaryButton = require("../PrimaryButton");
|
|
15
14
|
/** @jsx jsx */
|
|
@@ -30,7 +29,7 @@ var chevronIconStylesWithSpacingFixStyles = (0, _primitives.xcss)({
|
|
|
30
29
|
var PrimaryDropdownButton = exports.PrimaryDropdownButton = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
31
30
|
return (0, _react2.jsx)(_PrimaryButton.PrimaryButton, (0, _extends2.default)({
|
|
32
31
|
iconAfter: (0, _react2.jsx)(_primitives.Bleed, {
|
|
33
|
-
xcss:
|
|
32
|
+
xcss: chevronIconStylesWithSpacingFixStyles,
|
|
34
33
|
inline: "space.100"
|
|
35
34
|
}, (0, _react2.jsx)(_chevronDown.default, {
|
|
36
35
|
label: ""
|
|
@@ -40,7 +40,7 @@ var searchInputStyles = (0, _react2.css)({
|
|
|
40
40
|
height: "var(--ds-space-400, 32px)",
|
|
41
41
|
padding: "0 ".concat("var(--ds-space-100, 8px)", " 0 ", "var(--ds-space-500, 40px)"),
|
|
42
42
|
backgroundColor: "var(".concat(_constants.varSearchBackgroundColor, ")"),
|
|
43
|
-
border: "".concat((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.border-
|
|
43
|
+
border: "".concat((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-input-border-wdith_5abwv') ? "var(--ds-border-width, 1px)" : '2px', " solid"),
|
|
44
44
|
borderColor: "var(".concat(_constants.varSearchBorderColor, ")"),
|
|
45
45
|
borderRadius: "var(--ds-border-radius-200, 6px)",
|
|
46
46
|
color: "var(".concat(_constants.varSearchColor, ")"),
|
|
@@ -51,7 +51,7 @@ var searchInputStyles = (0, _react2.css)({
|
|
|
51
51
|
},
|
|
52
52
|
'&:focus': {
|
|
53
53
|
borderColor: "var(".concat(_constants.varSearchFocusBorderColor, ")"),
|
|
54
|
-
boxShadow: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.border-
|
|
54
|
+
boxShadow: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-input-border-wdith_5abwv') ? "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " var(", _constants.varSearchFocusBorderColor, ")") : undefined
|
|
55
55
|
},
|
|
56
56
|
'&:hover': {
|
|
57
57
|
backgroundColor: "var(".concat(_constants.varSearchHoverBackgroundColor, ")")
|
|
@@ -3,7 +3,6 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { jsx } from '@emotion/react';
|
|
5
5
|
import ChevronIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
6
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
import { Bleed, xcss } from '@atlaskit/primitives';
|
|
8
7
|
import { PrimaryButton } from '../PrimaryButton';
|
|
9
8
|
const chevronIconStylesWithSpacingFixStyles = xcss({
|
|
@@ -22,7 +21,7 @@ const chevronIconStylesWithSpacingFixStyles = xcss({
|
|
|
22
21
|
export const PrimaryDropdownButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
23
22
|
return jsx(PrimaryButton, _extends({
|
|
24
23
|
iconAfter: jsx(Bleed, {
|
|
25
|
-
xcss:
|
|
24
|
+
xcss: chevronIconStylesWithSpacingFixStyles,
|
|
26
25
|
inline: "space.100"
|
|
27
26
|
}, jsx(ChevronIcon, {
|
|
28
27
|
label: ""
|
|
@@ -32,7 +32,7 @@ const searchInputStyles = css({
|
|
|
32
32
|
height: "var(--ds-space-400, 32px)",
|
|
33
33
|
padding: `0 ${"var(--ds-space-100, 8px)"} 0 ${"var(--ds-space-500, 40px)"}`,
|
|
34
34
|
backgroundColor: `var(${varSearchBackgroundColor})`,
|
|
35
|
-
border: `${getBooleanFF('platform.design-system-team.border-
|
|
35
|
+
border: `${getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') ? "var(--ds-border-width, 1px)" : '2px'} solid`,
|
|
36
36
|
borderColor: `var(${varSearchBorderColor})`,
|
|
37
37
|
borderRadius: "var(--ds-border-radius-200, 6px)",
|
|
38
38
|
color: `var(${varSearchColor})`,
|
|
@@ -43,7 +43,7 @@ const searchInputStyles = css({
|
|
|
43
43
|
},
|
|
44
44
|
'&:focus': {
|
|
45
45
|
borderColor: `var(${varSearchFocusBorderColor})`,
|
|
46
|
-
boxShadow: getBooleanFF('platform.design-system-team.border-
|
|
46
|
+
boxShadow: getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') ? `inset 0 0 0 ${"var(--ds-border-width, 1px)"} var(${varSearchFocusBorderColor})` : undefined
|
|
47
47
|
},
|
|
48
48
|
'&:hover': {
|
|
49
49
|
backgroundColor: `var(${varSearchHoverBackgroundColor})`
|
|
@@ -3,7 +3,6 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { jsx } from '@emotion/react';
|
|
5
5
|
import ChevronIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
6
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
import { Bleed, xcss } from '@atlaskit/primitives';
|
|
8
7
|
import { PrimaryButton } from '../PrimaryButton';
|
|
9
8
|
var chevronIconStylesWithSpacingFixStyles = xcss({
|
|
@@ -22,7 +21,7 @@ var chevronIconStylesWithSpacingFixStyles = xcss({
|
|
|
22
21
|
export var PrimaryDropdownButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
23
22
|
return jsx(PrimaryButton, _extends({
|
|
24
23
|
iconAfter: jsx(Bleed, {
|
|
25
|
-
xcss:
|
|
24
|
+
xcss: chevronIconStylesWithSpacingFixStyles,
|
|
26
25
|
inline: "space.100"
|
|
27
26
|
}, jsx(ChevronIcon, {
|
|
28
27
|
label: ""
|
|
@@ -33,7 +33,7 @@ var searchInputStyles = css({
|
|
|
33
33
|
height: "var(--ds-space-400, 32px)",
|
|
34
34
|
padding: "0 ".concat("var(--ds-space-100, 8px)", " 0 ", "var(--ds-space-500, 40px)"),
|
|
35
35
|
backgroundColor: "var(".concat(varSearchBackgroundColor, ")"),
|
|
36
|
-
border: "".concat(getBooleanFF('platform.design-system-team.border-
|
|
36
|
+
border: "".concat(getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') ? "var(--ds-border-width, 1px)" : '2px', " solid"),
|
|
37
37
|
borderColor: "var(".concat(varSearchBorderColor, ")"),
|
|
38
38
|
borderRadius: "var(--ds-border-radius-200, 6px)",
|
|
39
39
|
color: "var(".concat(varSearchColor, ")"),
|
|
@@ -44,7 +44,7 @@ var searchInputStyles = css({
|
|
|
44
44
|
},
|
|
45
45
|
'&:focus': {
|
|
46
46
|
borderColor: "var(".concat(varSearchFocusBorderColor, ")"),
|
|
47
|
-
boxShadow: getBooleanFF('platform.design-system-team.border-
|
|
47
|
+
boxShadow: getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') ? "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " var(", varSearchFocusBorderColor, ")") : undefined
|
|
48
48
|
},
|
|
49
49
|
'&:hover': {
|
|
50
50
|
backgroundColor: "var(".concat(varSearchHoverBackgroundColor, ")")
|
|
@@ -51,7 +51,7 @@ export interface AtlassianNavigationProps {
|
|
|
51
51
|
*/
|
|
52
52
|
moreLabel?: ReactNode;
|
|
53
53
|
/**
|
|
54
|
-
* __Slow and discouraged custom theme API__
|
|
54
|
+
* __Slow and discouraged custom theme API__
|
|
55
55
|
*/
|
|
56
56
|
theme?: NavigationTheme;
|
|
57
57
|
/**
|
|
@@ -87,7 +87,7 @@ export interface NavigationSkeletonProps {
|
|
|
87
87
|
*/
|
|
88
88
|
shouldShowSearch?: boolean;
|
|
89
89
|
/**
|
|
90
|
-
* __Slow and discouraged custom theme API__
|
|
90
|
+
* __Slow and discouraged custom theme API__
|
|
91
91
|
*/
|
|
92
92
|
theme?: NavigationTheme;
|
|
93
93
|
/**
|
|
@@ -51,7 +51,7 @@ export interface AtlassianNavigationProps {
|
|
|
51
51
|
*/
|
|
52
52
|
moreLabel?: ReactNode;
|
|
53
53
|
/**
|
|
54
|
-
* __Slow and discouraged custom theme API__
|
|
54
|
+
* __Slow and discouraged custom theme API__
|
|
55
55
|
*/
|
|
56
56
|
theme?: NavigationTheme;
|
|
57
57
|
/**
|
|
@@ -87,7 +87,7 @@ export interface NavigationSkeletonProps {
|
|
|
87
87
|
*/
|
|
88
88
|
shouldShowSearch?: boolean;
|
|
89
89
|
/**
|
|
90
|
-
* __Slow and discouraged custom theme API__
|
|
90
|
+
* __Slow and discouraged custom theme API__
|
|
91
91
|
*/
|
|
92
92
|
theme?: NavigationTheme;
|
|
93
93
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/atlassian-navigation",
|
|
3
|
-
"version": "3.1
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "A horizontal navigation component for Atlassian products.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@atlaskit/analytics-namespaced-context": "^6.9.0",
|
|
46
|
-
"@atlaskit/button": "^17.
|
|
46
|
+
"@atlaskit/button": "^17.4.0",
|
|
47
47
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
48
48
|
"@atlaskit/icon": "^22.0.0",
|
|
49
49
|
"@atlaskit/logo": "*",
|
|
50
50
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
51
|
-
"@atlaskit/popup": "^1.
|
|
51
|
+
"@atlaskit/popup": "^1.12.0",
|
|
52
52
|
"@atlaskit/primitives": "^2.0.0",
|
|
53
53
|
"@atlaskit/theme": "^12.6.0",
|
|
54
|
-
"@atlaskit/tokens": "^1.
|
|
54
|
+
"@atlaskit/tokens": "^1.38.0",
|
|
55
55
|
"@atlaskit/tooltip": "^18.1.0",
|
|
56
56
|
"@atlaskit/width-detector": "^4.1.0",
|
|
57
57
|
"@babel/runtime": "^7.0.0",
|
|
@@ -65,12 +65,12 @@
|
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@af/accessibility-testing": "*",
|
|
67
67
|
"@af/visual-regression": "*",
|
|
68
|
-
"@atlaskit/dropdown-menu": "^12.
|
|
68
|
+
"@atlaskit/dropdown-menu": "^12.5.0",
|
|
69
69
|
"@atlaskit/notification-indicator": "*",
|
|
70
70
|
"@atlaskit/notification-log-client": "*",
|
|
71
71
|
"@atlaskit/visual-regression": "*",
|
|
72
72
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
73
|
-
"@atlassian/feature-flags-test-utils": "^0.
|
|
73
|
+
"@atlassian/feature-flags-test-utils": "^0.2.0",
|
|
74
74
|
"@testing-library/react": "^12.1.5",
|
|
75
75
|
"@testing-library/react-hooks": "^8.0.1",
|
|
76
76
|
"jest-axe": "^8.0.0",
|
|
@@ -106,10 +106,10 @@
|
|
|
106
106
|
"platform.design-system-team.navigation-v2-no-jank_5yhbd": {
|
|
107
107
|
"type": "boolean"
|
|
108
108
|
},
|
|
109
|
-
"platform.design-system-team.border-
|
|
109
|
+
"platform.design-system-team.update-input-border-wdith_5abwv": {
|
|
110
110
|
"type": "boolean"
|
|
111
111
|
},
|
|
112
|
-
"platform.design-system-team.
|
|
112
|
+
"platform.design-system-team.border-checkbox_nyoiu": {
|
|
113
113
|
"type": "boolean"
|
|
114
114
|
}
|
|
115
115
|
}
|