@atlaskit/menu 8.0.8 → 8.1.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 +17 -0
- package/dist/cjs/internal/components/menu-item-primitive.js +2 -3
- package/dist/cjs/menu-item/button-item.js +1 -3
- package/dist/cjs/menu-item/link-item.js +1 -3
- package/dist/cjs/menu-section/menu-group.js +4 -2
- package/dist/es2019/internal/components/menu-item-primitive.js +2 -3
- package/dist/es2019/menu-item/button-item.js +1 -3
- package/dist/es2019/menu-item/link-item.js +1 -3
- package/dist/es2019/menu-section/menu-group.js +3 -1
- package/dist/esm/internal/components/menu-item-primitive.js +2 -3
- package/dist/esm/menu-item/button-item.js +1 -3
- package/dist/esm/menu-item/link-item.js +1 -3
- package/dist/esm/menu-section/menu-group.js +4 -2
- package/dist/types/menu-section/menu-group.d.ts +1 -1
- package/dist/types/types.d.ts +4 -0
- package/dist/types-ts4.5/menu-section/menu-group.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +4 -0
- package/package.json +7 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/menu
|
|
2
2
|
|
|
3
|
+
## 8.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#191911](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/191911)
|
|
8
|
+
[`c1fc152f611b8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c1fc152f611b8) -
|
|
9
|
+
Icons will now display consistently in menu items regardless of their spacing
|
|
10
|
+
|
|
11
|
+
## 8.0.9
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#188621](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/188621)
|
|
16
|
+
[`94981059e9ba8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/94981059e9ba8) -
|
|
17
|
+
Added accessible label for MenuGroup in DropdownMenu
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 8.0.8
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -23,7 +23,6 @@ var renderTitle = function renderTitle(Component, props) {
|
|
|
23
23
|
};
|
|
24
24
|
var styles = {
|
|
25
25
|
root: "_19itidpf _12ji1r31 _1qu2glyw _12y3idpf _4bfu1r31 _1hmsglyw _ajmmnqa1 _kqswh2mm _1e0c1txw _vchhusvi _1bsb1osq _1tke1ylp _19pkze3t _2hwxze3t _otyrze3t _18u0ze3t _4cvr1h6o _uiztglyw _80omtlke _ymio1r31 _ypr0glyw _zcxs1o36 _nt75194a _mizu194a _1bg411pw _1ah311pw _49pcnqa1 _ra3xnqa1 _1hvw1bk5 _128m1bk5 _9oik1r31 _1bnxglyw _jf4cnqa1 _1cvmnqa1 _4davt94y",
|
|
26
|
-
beforeAfterElementOld: "_1e0c1txw _4cvr1h6o _1bah1h6o _1o9zidpf",
|
|
27
26
|
beforeAfterElement: "_1e0c1txw _1ul91tcg _1tke1tcg _4cvr1h6o _1bah1h6o _1o9zidpf",
|
|
28
27
|
content: "_12ji1r31 _1qu2glyw _12y31o36 _1reo15vq _18m915vq _1e0c1txw _2lx21bp4 _1bah1h6o _16jlkb7n _y3gn1e5h",
|
|
29
28
|
truncate: "_1reo15vq _18m915vq _1e0c1ule _1bto1l2s _o5721q9c",
|
|
@@ -95,7 +94,7 @@ var MenuItemPrimitive = function MenuItemPrimitive(_ref) {
|
|
|
95
94
|
}, iconBefore && /*#__PURE__*/React.createElement("span", {
|
|
96
95
|
"data-item-elem-before": true,
|
|
97
96
|
"data-testid": testId && "".concat(testId, "--icon-before"),
|
|
98
|
-
className: (0, _runtime.ax)([
|
|
97
|
+
className: (0, _runtime.ax)([styles.beforeAfterElement])
|
|
99
98
|
}, iconBefore), title && /*#__PURE__*/React.createElement("div", {
|
|
100
99
|
className: (0, _runtime.ax)([styles.content])
|
|
101
100
|
}, renderTitle(isTitleHeading ? 'h2' : 'span', {
|
|
@@ -108,7 +107,7 @@ var MenuItemPrimitive = function MenuItemPrimitive(_ref) {
|
|
|
108
107
|
}, description)), iconAfter && /*#__PURE__*/React.createElement("span", {
|
|
109
108
|
"data-item-elem-after": true,
|
|
110
109
|
"data-testid": testId && "".concat(testId, "--icon-after"),
|
|
111
|
-
className: (0, _runtime.ax)([
|
|
110
|
+
className: (0, _runtime.ax)([styles.beforeAfterElement])
|
|
112
111
|
}, iconAfter))
|
|
113
112
|
});
|
|
114
113
|
}();
|
|
@@ -24,9 +24,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
24
24
|
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/menu/docs/button-item)
|
|
25
25
|
* - [Code](https://atlaskit.atlassian.com/packages/design-system/menu)
|
|
26
26
|
*/
|
|
27
|
-
var ButtonItem = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(
|
|
28
|
-
// Type needed on props to extract types with extract react types.
|
|
29
|
-
function (props, ref) {
|
|
27
|
+
var ButtonItem = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
30
28
|
var children = props.children,
|
|
31
29
|
description = props.description,
|
|
32
30
|
iconAfter = props.iconAfter,
|
|
@@ -31,9 +31,7 @@ var preventEvent = function preventEvent(e) {
|
|
|
31
31
|
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/menu/docs/link-item)
|
|
32
32
|
* - [Code](https://atlaskit.atlassian.com/packages/design-system/menu)
|
|
33
33
|
*/
|
|
34
|
-
var LinkItem = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(
|
|
35
|
-
// Type needed on props to extract types with extract react types.
|
|
36
|
-
function (props, ref) {
|
|
34
|
+
var LinkItem = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
37
35
|
var children = props.children,
|
|
38
36
|
href = props.href,
|
|
39
37
|
description = props.description,
|
|
@@ -13,7 +13,7 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
13
13
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
14
14
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
15
|
var _menuContext = require("../internal/components/menu-context");
|
|
16
|
-
var _excluded = ["isLoading", "maxWidth", "minWidth", "minHeight", "maxHeight", "testId", "role", "spacing", "className"];
|
|
16
|
+
var _excluded = ["isLoading", "maxWidth", "minWidth", "minHeight", "maxHeight", "testId", "role", "spacing", "menuLabel", "className"];
|
|
17
17
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
18
18
|
var baseStyles = null;
|
|
19
19
|
|
|
@@ -35,6 +35,7 @@ var MenuGroup = function MenuGroup(_ref) {
|
|
|
35
35
|
role = _ref.role,
|
|
36
36
|
_ref$spacing = _ref.spacing,
|
|
37
37
|
spacing = _ref$spacing === void 0 ? 'cozy' : _ref$spacing,
|
|
38
|
+
menuLabel = _ref.menuLabel,
|
|
38
39
|
UNSAFE_className = _ref.className,
|
|
39
40
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
40
41
|
return /*#__PURE__*/React.createElement(_menuContext.SpacingContext.Provider, {
|
|
@@ -53,7 +54,8 @@ var MenuGroup = function MenuGroup(_ref) {
|
|
|
53
54
|
role: role
|
|
54
55
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
55
56
|
,
|
|
56
|
-
className: (0, _runtime.ax)(["_1reo1wug _18m91wug _1e0c1txw _kqswpfqs _2lx21bp4", UNSAFE_className])
|
|
57
|
+
className: (0, _runtime.ax)(["_1reo1wug _18m91wug _1e0c1txw _kqswpfqs _2lx21bp4", UNSAFE_className]),
|
|
58
|
+
"aria-label": menuLabel
|
|
57
59
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
58
60
|
}, rest))));
|
|
59
61
|
};
|
|
@@ -12,7 +12,6 @@ const renderTitle = (Component, props) =>
|
|
|
12
12
|
React.createElement(Component, props);
|
|
13
13
|
const styles = {
|
|
14
14
|
root: "_19itidpf _12ji1r31 _1qu2glyw _12y3idpf _4bfu1r31 _1hmsglyw _ajmmnqa1 _kqswh2mm _1e0c1txw _vchhusvi _1bsb1osq _1tke1ylp _19pkze3t _2hwxze3t _otyrze3t _18u0ze3t _4cvr1h6o _uiztglyw _80omtlke _ymio1r31 _ypr0glyw _zcxs1o36 _nt75194a _mizu194a _1bg411pw _1ah311pw _49pcnqa1 _ra3xnqa1 _1hvw1bk5 _128m1bk5 _9oik1r31 _1bnxglyw _jf4cnqa1 _1cvmnqa1 _4davt94y",
|
|
15
|
-
beforeAfterElementOld: "_1e0c1txw _4cvr1h6o _1bah1h6o _1o9zidpf",
|
|
16
15
|
beforeAfterElement: "_1e0c1txw _1ul91tcg _1tke1tcg _4cvr1h6o _1bah1h6o _1o9zidpf",
|
|
17
16
|
content: "_12ji1r31 _1qu2glyw _12y31o36 _1reo15vq _18m915vq _1e0c1txw _2lx21bp4 _1bah1h6o _16jlkb7n _y3gn1e5h",
|
|
18
17
|
truncate: "_1reo15vq _18m915vq _1e0c1ule _1bto1l2s _o5721q9c",
|
|
@@ -80,7 +79,7 @@ const MenuItemPrimitive = ({
|
|
|
80
79
|
}, iconBefore && /*#__PURE__*/React.createElement("span", {
|
|
81
80
|
"data-item-elem-before": true,
|
|
82
81
|
"data-testid": testId && `${testId}--icon-before`,
|
|
83
|
-
className: ax([
|
|
82
|
+
className: ax([styles.beforeAfterElement])
|
|
84
83
|
}, iconBefore), title && /*#__PURE__*/React.createElement("div", {
|
|
85
84
|
className: ax([styles.content])
|
|
86
85
|
}, renderTitle(isTitleHeading ? 'h2' : 'span', {
|
|
@@ -93,7 +92,7 @@ const MenuItemPrimitive = ({
|
|
|
93
92
|
}, description)), iconAfter && /*#__PURE__*/React.createElement("span", {
|
|
94
93
|
"data-item-elem-after": true,
|
|
95
94
|
"data-testid": testId && `${testId}--icon-after`,
|
|
96
|
-
className: ax([
|
|
95
|
+
className: ax([styles.beforeAfterElement])
|
|
97
96
|
}, iconAfter))
|
|
98
97
|
});
|
|
99
98
|
})();
|
|
@@ -13,9 +13,7 @@ import MenuItemPrimitive from '../internal/components/menu-item-primitive';
|
|
|
13
13
|
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/menu/docs/button-item)
|
|
14
14
|
* - [Code](https://atlaskit.atlassian.com/packages/design-system/menu)
|
|
15
15
|
*/
|
|
16
|
-
const ButtonItem = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(
|
|
17
|
-
// Type needed on props to extract types with extract react types.
|
|
18
|
-
(props, ref) => {
|
|
16
|
+
const ButtonItem = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((props, ref) => {
|
|
19
17
|
const {
|
|
20
18
|
children,
|
|
21
19
|
description,
|
|
@@ -20,9 +20,7 @@ const preventEvent = e => {
|
|
|
20
20
|
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/menu/docs/link-item)
|
|
21
21
|
* - [Code](https://atlaskit.atlassian.com/packages/design-system/menu)
|
|
22
22
|
*/
|
|
23
|
-
const LinkItem = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(
|
|
24
|
-
// Type needed on props to extract types with extract react types.
|
|
25
|
-
(props, ref) => {
|
|
23
|
+
const LinkItem = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((props, ref) => {
|
|
26
24
|
const {
|
|
27
25
|
children,
|
|
28
26
|
href,
|
|
@@ -23,6 +23,7 @@ const MenuGroup = ({
|
|
|
23
23
|
testId,
|
|
24
24
|
role,
|
|
25
25
|
spacing = 'cozy',
|
|
26
|
+
menuLabel,
|
|
26
27
|
// Although this isn't defined on props it is available because we've used
|
|
27
28
|
// Spread props below and on the jsx element. To forcibly block usage I've
|
|
28
29
|
// picked it out and supressed the expected type error.
|
|
@@ -45,7 +46,8 @@ const MenuGroup = ({
|
|
|
45
46
|
role: role
|
|
46
47
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
47
48
|
,
|
|
48
|
-
className: ax(["_1reo1wug _18m91wug _1e0c1txw _kqswpfqs _2lx21bp4", UNSAFE_className])
|
|
49
|
+
className: ax(["_1reo1wug _18m91wug _1e0c1txw _kqswpfqs _2lx21bp4", UNSAFE_className]),
|
|
50
|
+
"aria-label": menuLabel
|
|
49
51
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
50
52
|
}, rest))));
|
|
51
53
|
export default MenuGroup;
|
|
@@ -15,7 +15,6 @@ var renderTitle = function renderTitle(Component, props) {
|
|
|
15
15
|
};
|
|
16
16
|
var styles = {
|
|
17
17
|
root: "_19itidpf _12ji1r31 _1qu2glyw _12y3idpf _4bfu1r31 _1hmsglyw _ajmmnqa1 _kqswh2mm _1e0c1txw _vchhusvi _1bsb1osq _1tke1ylp _19pkze3t _2hwxze3t _otyrze3t _18u0ze3t _4cvr1h6o _uiztglyw _80omtlke _ymio1r31 _ypr0glyw _zcxs1o36 _nt75194a _mizu194a _1bg411pw _1ah311pw _49pcnqa1 _ra3xnqa1 _1hvw1bk5 _128m1bk5 _9oik1r31 _1bnxglyw _jf4cnqa1 _1cvmnqa1 _4davt94y",
|
|
18
|
-
beforeAfterElementOld: "_1e0c1txw _4cvr1h6o _1bah1h6o _1o9zidpf",
|
|
19
18
|
beforeAfterElement: "_1e0c1txw _1ul91tcg _1tke1tcg _4cvr1h6o _1bah1h6o _1o9zidpf",
|
|
20
19
|
content: "_12ji1r31 _1qu2glyw _12y31o36 _1reo15vq _18m915vq _1e0c1txw _2lx21bp4 _1bah1h6o _16jlkb7n _y3gn1e5h",
|
|
21
20
|
truncate: "_1reo15vq _18m915vq _1e0c1ule _1bto1l2s _o5721q9c",
|
|
@@ -87,7 +86,7 @@ var MenuItemPrimitive = function MenuItemPrimitive(_ref) {
|
|
|
87
86
|
}, iconBefore && /*#__PURE__*/React.createElement("span", {
|
|
88
87
|
"data-item-elem-before": true,
|
|
89
88
|
"data-testid": testId && "".concat(testId, "--icon-before"),
|
|
90
|
-
className: ax([
|
|
89
|
+
className: ax([styles.beforeAfterElement])
|
|
91
90
|
}, iconBefore), title && /*#__PURE__*/React.createElement("div", {
|
|
92
91
|
className: ax([styles.content])
|
|
93
92
|
}, renderTitle(isTitleHeading ? 'h2' : 'span', {
|
|
@@ -100,7 +99,7 @@ var MenuItemPrimitive = function MenuItemPrimitive(_ref) {
|
|
|
100
99
|
}, description)), iconAfter && /*#__PURE__*/React.createElement("span", {
|
|
101
100
|
"data-item-elem-after": true,
|
|
102
101
|
"data-testid": testId && "".concat(testId, "--icon-after"),
|
|
103
|
-
className: ax([
|
|
102
|
+
className: ax([styles.beforeAfterElement])
|
|
104
103
|
}, iconAfter))
|
|
105
104
|
});
|
|
106
105
|
}();
|
|
@@ -15,9 +15,7 @@ import MenuItemPrimitive from '../internal/components/menu-item-primitive';
|
|
|
15
15
|
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/menu/docs/button-item)
|
|
16
16
|
* - [Code](https://atlaskit.atlassian.com/packages/design-system/menu)
|
|
17
17
|
*/
|
|
18
|
-
var ButtonItem = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(
|
|
19
|
-
// Type needed on props to extract types with extract react types.
|
|
20
|
-
function (props, ref) {
|
|
18
|
+
var ButtonItem = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
21
19
|
var children = props.children,
|
|
22
20
|
description = props.description,
|
|
23
21
|
iconAfter = props.iconAfter,
|
|
@@ -22,9 +22,7 @@ var preventEvent = function preventEvent(e) {
|
|
|
22
22
|
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/menu/docs/link-item)
|
|
23
23
|
* - [Code](https://atlaskit.atlassian.com/packages/design-system/menu)
|
|
24
24
|
*/
|
|
25
|
-
var LinkItem = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(
|
|
26
|
-
// Type needed on props to extract types with extract react types.
|
|
27
|
-
function (props, ref) {
|
|
25
|
+
var LinkItem = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
28
26
|
var children = props.children,
|
|
29
27
|
href = props.href,
|
|
30
28
|
description = props.description,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* menu-group.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
-
var _excluded = ["isLoading", "maxWidth", "minWidth", "minHeight", "maxHeight", "testId", "role", "spacing", "className"];
|
|
4
|
+
var _excluded = ["isLoading", "maxWidth", "minWidth", "minHeight", "maxHeight", "testId", "role", "spacing", "menuLabel", "className"];
|
|
5
5
|
import "./menu-group.compiled.css";
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -26,6 +26,7 @@ var MenuGroup = function MenuGroup(_ref) {
|
|
|
26
26
|
role = _ref.role,
|
|
27
27
|
_ref$spacing = _ref.spacing,
|
|
28
28
|
spacing = _ref$spacing === void 0 ? 'cozy' : _ref$spacing,
|
|
29
|
+
menuLabel = _ref.menuLabel,
|
|
29
30
|
UNSAFE_className = _ref.className,
|
|
30
31
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
31
32
|
return /*#__PURE__*/React.createElement(SpacingContext.Provider, {
|
|
@@ -44,7 +45,8 @@ var MenuGroup = function MenuGroup(_ref) {
|
|
|
44
45
|
role: role
|
|
45
46
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
46
47
|
,
|
|
47
|
-
className: ax(["_1reo1wug _18m91wug _1e0c1txw _kqswpfqs _2lx21bp4", UNSAFE_className])
|
|
48
|
+
className: ax(["_1reo1wug _18m91wug _1e0c1txw _kqswpfqs _2lx21bp4", UNSAFE_className]),
|
|
49
|
+
"aria-label": menuLabel
|
|
48
50
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
49
51
|
}, rest))));
|
|
50
52
|
};
|
|
@@ -8,5 +8,5 @@ import type { MenuGroupProps } from '../types';
|
|
|
8
8
|
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/menu/docs/menu-group)
|
|
9
9
|
* - [Code](https://atlaskit.atlassian.com/packages/design-system/menu)
|
|
10
10
|
*/
|
|
11
|
-
declare const MenuGroup: ({ isLoading, maxWidth, minWidth, minHeight, maxHeight, testId, role, spacing, className: UNSAFE_className, ...rest }: MenuGroupProps) => JSX.Element;
|
|
11
|
+
declare const MenuGroup: ({ isLoading, maxWidth, minWidth, minHeight, maxHeight, testId, role, spacing, menuLabel, className: UNSAFE_className, ...rest }: MenuGroupProps) => JSX.Element;
|
|
12
12
|
export default MenuGroup;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -54,6 +54,10 @@ export interface MenuGroupProps extends MenuGroupSizing {
|
|
|
54
54
|
* Useful when needing to stop propagation of child events.
|
|
55
55
|
*/
|
|
56
56
|
onClick?: (event: React.MouseEvent | React.KeyboardEvent) => void;
|
|
57
|
+
/**
|
|
58
|
+
* Provide an accessible label via `aria-label` for the menu element for assistive technology.
|
|
59
|
+
*/
|
|
60
|
+
menuLabel?: string;
|
|
57
61
|
}
|
|
58
62
|
export interface SectionProps {
|
|
59
63
|
/**
|
|
@@ -8,5 +8,5 @@ import type { MenuGroupProps } from '../types';
|
|
|
8
8
|
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/menu/docs/menu-group)
|
|
9
9
|
* - [Code](https://atlaskit.atlassian.com/packages/design-system/menu)
|
|
10
10
|
*/
|
|
11
|
-
declare const MenuGroup: ({ isLoading, maxWidth, minWidth, minHeight, maxHeight, testId, role, spacing, className: UNSAFE_className, ...rest }: MenuGroupProps) => JSX.Element;
|
|
11
|
+
declare const MenuGroup: ({ isLoading, maxWidth, minWidth, minHeight, maxHeight, testId, role, spacing, menuLabel, className: UNSAFE_className, ...rest }: MenuGroupProps) => JSX.Element;
|
|
12
12
|
export default MenuGroup;
|
|
@@ -54,6 +54,10 @@ export interface MenuGroupProps extends MenuGroupSizing {
|
|
|
54
54
|
* Useful when needing to stop propagation of child events.
|
|
55
55
|
*/
|
|
56
56
|
onClick?: (event: React.MouseEvent | React.KeyboardEvent) => void;
|
|
57
|
+
/**
|
|
58
|
+
* Provide an accessible label via `aria-label` for the menu element for assistive technology.
|
|
59
|
+
*/
|
|
60
|
+
menuLabel?: string;
|
|
57
61
|
}
|
|
58
62
|
export interface SectionProps {
|
|
59
63
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/menu",
|
|
3
|
-
"version": "8.0
|
|
3
|
+
"version": "8.1.0",
|
|
4
4
|
"description": "A list of options to help users navigate, or perform actions.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@atlaskit/app-provider": "^2.
|
|
43
|
+
"@atlaskit/app-provider": "^2.3.0",
|
|
44
44
|
"@atlaskit/css": "^0.12.0",
|
|
45
45
|
"@atlaskit/interaction-context": "^3.0.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
47
|
"@atlaskit/primitives": "^14.10.0",
|
|
48
48
|
"@atlaskit/theme": "^19.0.0",
|
|
49
|
-
"@atlaskit/tokens": "^5.
|
|
49
|
+
"@atlaskit/tokens": "^5.6.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"@compiled/react": "^0.18.3"
|
|
52
52
|
},
|
|
@@ -58,14 +58,14 @@
|
|
|
58
58
|
"@af/accessibility-testing": "workspace:^",
|
|
59
59
|
"@af/integration-testing": "workspace:^",
|
|
60
60
|
"@af/visual-regression": "workspace:^",
|
|
61
|
-
"@atlaskit/button": "^23.
|
|
61
|
+
"@atlaskit/button": "^23.3.0",
|
|
62
62
|
"@atlaskit/docs": "^11.0.0",
|
|
63
|
-
"@atlaskit/ds-lib": "^
|
|
64
|
-
"@atlaskit/icon": "^27.
|
|
63
|
+
"@atlaskit/ds-lib": "^5.0.0",
|
|
64
|
+
"@atlaskit/icon": "^27.7.0",
|
|
65
65
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
66
66
|
"@atlaskit/icon-object": "^7.1.0",
|
|
67
67
|
"@atlaskit/link": "^3.2.0",
|
|
68
|
-
"@atlaskit/section-message": "^8.
|
|
68
|
+
"@atlaskit/section-message": "^8.5.0",
|
|
69
69
|
"@atlassian/feature-flags-test-utils": "^0.3.0",
|
|
70
70
|
"@testing-library/react": "^13.4.0",
|
|
71
71
|
"ast-types": "^0.13.3",
|
|
@@ -118,9 +118,6 @@
|
|
|
118
118
|
".": "./src/index.tsx"
|
|
119
119
|
},
|
|
120
120
|
"platform-feature-flags": {
|
|
121
|
-
"platform_ads_component_no_icon_spacing_support": {
|
|
122
|
-
"type": "boolean"
|
|
123
|
-
},
|
|
124
121
|
"platform_fix_a11y_selected_and_hovered_state_color": {
|
|
125
122
|
"type": "boolean"
|
|
126
123
|
}
|