@atlaskit/atlassian-navigation 3.3.5 → 3.4.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 +13 -0
- package/dist/cjs/components/Create/index.js +3 -1
- package/dist/cjs/components/PrimaryDropdownButton/index.js +1 -1
- package/dist/es2019/components/Create/index.js +3 -1
- package/dist/es2019/components/PrimaryDropdownButton/index.js +1 -1
- package/dist/esm/components/Create/index.js +3 -1
- package/dist/esm/components/PrimaryDropdownButton/index.js +1 -1
- package/dist/types/components/Create/index.d.ts +1 -1
- package/dist/types/components/Create/types.d.ts +4 -0
- package/dist/types-ts4.5/components/Create/index.d.ts +1 -1
- package/dist/types-ts4.5/components/Create/types.d.ts +4 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/atlassian-navigation
|
|
2
2
|
|
|
3
|
+
## 3.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#85960](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/85960) [`529d60f091ea`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/529d60f091ea) - Add aria label prop for Create button
|
|
8
|
+
|
|
9
|
+
## 3.3.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#88354](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88354) [`4c87d9b4f0c2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4c87d9b4f0c2) - The internal composition of this component has changed. There is no expected change in behavior.
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 3.3.5
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -57,7 +57,8 @@ var Create = exports.Create = function Create(_ref2) {
|
|
|
57
57
|
text = _ref2.text,
|
|
58
58
|
buttonTooltip = _ref2.buttonTooltip,
|
|
59
59
|
iconButtonTooltip = _ref2.iconButtonTooltip,
|
|
60
|
-
testId = _ref2.testId
|
|
60
|
+
testId = _ref2.testId,
|
|
61
|
+
label = _ref2.label;
|
|
61
62
|
var theme = (0, _theme.useTheme)();
|
|
62
63
|
return (0, _react2.jsx)("div", {
|
|
63
64
|
css: wrapperStyles,
|
|
@@ -67,6 +68,7 @@ var Create = exports.Create = function Create(_ref2) {
|
|
|
67
68
|
buttonTooltip: buttonTooltip
|
|
68
69
|
}, (0, _react2.jsx)(_customThemeButton.default, {
|
|
69
70
|
id: "createGlobalItem",
|
|
71
|
+
"aria-label": label,
|
|
70
72
|
onClick: onClick,
|
|
71
73
|
href: href
|
|
72
74
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
|
|
@@ -14,7 +14,7 @@ var _PrimaryButton = require("../PrimaryButton");
|
|
|
14
14
|
/** @jsx jsx */
|
|
15
15
|
|
|
16
16
|
var chevronIconStylesWithSpacingFixStyles = (0, _primitives.xcss)({
|
|
17
|
-
marginInlineEnd:
|
|
17
|
+
marginInlineEnd: 'space.negative.050'
|
|
18
18
|
});
|
|
19
19
|
|
|
20
20
|
/**
|
|
@@ -53,7 +53,8 @@ export const Create = ({
|
|
|
53
53
|
text,
|
|
54
54
|
buttonTooltip,
|
|
55
55
|
iconButtonTooltip,
|
|
56
|
-
testId
|
|
56
|
+
testId,
|
|
57
|
+
label
|
|
57
58
|
}) => {
|
|
58
59
|
const theme = useTheme();
|
|
59
60
|
return jsx("div", {
|
|
@@ -64,6 +65,7 @@ export const Create = ({
|
|
|
64
65
|
buttonTooltip: buttonTooltip
|
|
65
66
|
}, jsx(Button, {
|
|
66
67
|
id: "createGlobalItem",
|
|
68
|
+
"aria-label": label,
|
|
67
69
|
onClick: onClick,
|
|
68
70
|
href: href
|
|
69
71
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
|
|
@@ -6,7 +6,7 @@ import ChevronIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
|
6
6
|
import { Bleed, xcss } from '@atlaskit/primitives';
|
|
7
7
|
import { PrimaryButton } from '../PrimaryButton';
|
|
8
8
|
const chevronIconStylesWithSpacingFixStyles = xcss({
|
|
9
|
-
marginInlineEnd:
|
|
9
|
+
marginInlineEnd: 'space.negative.050'
|
|
10
10
|
});
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -49,7 +49,8 @@ export var Create = function Create(_ref2) {
|
|
|
49
49
|
text = _ref2.text,
|
|
50
50
|
buttonTooltip = _ref2.buttonTooltip,
|
|
51
51
|
iconButtonTooltip = _ref2.iconButtonTooltip,
|
|
52
|
-
testId = _ref2.testId
|
|
52
|
+
testId = _ref2.testId,
|
|
53
|
+
label = _ref2.label;
|
|
53
54
|
var theme = useTheme();
|
|
54
55
|
return jsx("div", {
|
|
55
56
|
css: wrapperStyles,
|
|
@@ -59,6 +60,7 @@ export var Create = function Create(_ref2) {
|
|
|
59
60
|
buttonTooltip: buttonTooltip
|
|
60
61
|
}, jsx(Button, {
|
|
61
62
|
id: "createGlobalItem",
|
|
63
|
+
"aria-label": label,
|
|
62
64
|
onClick: onClick,
|
|
63
65
|
href: href
|
|
64
66
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
|
|
@@ -6,7 +6,7 @@ import ChevronIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
|
6
6
|
import { Bleed, xcss } from '@atlaskit/primitives';
|
|
7
7
|
import { PrimaryButton } from '../PrimaryButton';
|
|
8
8
|
var chevronIconStylesWithSpacingFixStyles = xcss({
|
|
9
|
-
marginInlineEnd:
|
|
9
|
+
marginInlineEnd: 'space.negative.050'
|
|
10
10
|
});
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -9,5 +9,5 @@ import { CreateProps } from './types';
|
|
|
9
9
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#create)
|
|
10
10
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
11
11
|
*/
|
|
12
|
-
export declare const Create: ({ onClick, href, text, buttonTooltip, iconButtonTooltip, testId, }: CreateProps) => jsx.JSX.Element;
|
|
12
|
+
export declare const Create: ({ onClick, href, text, buttonTooltip, iconButtonTooltip, testId, label, }: CreateProps) => jsx.JSX.Element;
|
|
13
13
|
export default Create;
|
|
@@ -9,5 +9,5 @@ import { CreateProps } from './types';
|
|
|
9
9
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#create)
|
|
10
10
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
11
11
|
*/
|
|
12
|
-
export declare const Create: ({ onClick, href, text, buttonTooltip, iconButtonTooltip, testId, }: CreateProps) => jsx.JSX.Element;
|
|
12
|
+
export declare const Create: ({ onClick, href, text, buttonTooltip, iconButtonTooltip, testId, label, }: CreateProps) => jsx.JSX.Element;
|
|
13
13
|
export default Create;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/atlassian-navigation",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
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.11.0",
|
|
47
47
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
48
48
|
"@atlaskit/icon": "^22.1.0",
|
|
49
49
|
"@atlaskit/logo": "*",
|
|
50
50
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
51
|
-
"@atlaskit/popup": "^1.
|
|
52
|
-
"@atlaskit/primitives": "^5.
|
|
53
|
-
"@atlaskit/theme": "^12.
|
|
54
|
-
"@atlaskit/tokens": "^1.
|
|
51
|
+
"@atlaskit/popup": "^1.14.0",
|
|
52
|
+
"@atlaskit/primitives": "^5.5.0",
|
|
53
|
+
"@atlaskit/theme": "^12.7.0",
|
|
54
|
+
"@atlaskit/tokens": "^1.43.0",
|
|
55
55
|
"@atlaskit/tooltip": "^18.1.0",
|
|
56
56
|
"@atlaskit/width-detector": "^4.1.0",
|
|
57
57
|
"@babel/runtime": "^7.0.0",
|