@atlaskit/dropdown-menu 15.2.1 → 16.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 +13 -0
- package/dist/cjs/internal/components/group-title.compiled.css +4 -0
- package/dist/cjs/internal/components/group-title.js +9 -9
- package/dist/cjs/internal/components/menu-wrapper.compiled.css +7 -0
- package/dist/cjs/internal/components/menu-wrapper.js +17 -21
- package/dist/es2019/internal/components/group-title.compiled.css +4 -0
- package/dist/es2019/internal/components/group-title.js +8 -8
- package/dist/es2019/internal/components/menu-wrapper.compiled.css +7 -0
- package/dist/es2019/internal/components/menu-wrapper.js +13 -19
- package/dist/esm/internal/components/group-title.compiled.css +4 -0
- package/dist/esm/internal/components/group-title.js +8 -8
- package/dist/esm/internal/components/menu-wrapper.compiled.css +7 -0
- package/dist/esm/internal/components/menu-wrapper.js +13 -19
- package/dist/types/internal/components/menu-wrapper.d.ts +2 -2
- package/dist/types-ts4.5/internal/components/menu-wrapper.d.ts +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/dropdown-menu
|
|
2
2
|
|
|
3
|
+
## 16.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#158490](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/158490)
|
|
8
|
+
[`71137cb330a17`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/71137cb330a17) -
|
|
9
|
+
Migrated from @emotion/react to @compiled/react in order to improve performance, align with the
|
|
10
|
+
rest of the Atlaskit techstack, and support React 18 Streaming SSR.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 15.2.1
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
._11c81vhk{font:var(--ds-font-heading-xxsmall,normal 600 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._18zrpxbi{padding-inline:var(--ds-space-200,1pc)}
|
|
3
|
+
._1rjcze3t{padding-block:var(--ds-space-0,0)}
|
|
4
|
+
._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* group-title.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -5,14 +6,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.default = void 0;
|
|
9
|
+
require("./group-title.compiled.css");
|
|
10
|
+
var _runtime = require("@compiled/react/runtime");
|
|
8
11
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
paddingBlock: 'space.0',
|
|
14
|
-
paddingInline: 'space.200'
|
|
15
|
-
});
|
|
12
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
13
|
+
var styles = {
|
|
14
|
+
heading: "_11c81vhk _1rjcze3t _18zrpxbi _syaz1gjq"
|
|
15
|
+
};
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* __Group title__
|
|
@@ -24,12 +24,12 @@ var headingStyles = (0, _primitives.xcss)({
|
|
|
24
24
|
var GroupTitle = function GroupTitle(_ref) {
|
|
25
25
|
var id = _ref.id,
|
|
26
26
|
title = _ref.title;
|
|
27
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
27
|
+
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
28
28
|
"data-ds--menu--heading-item": true,
|
|
29
29
|
role: "menuitem",
|
|
30
30
|
id: id,
|
|
31
31
|
"aria-hidden": "true",
|
|
32
|
-
xcss:
|
|
32
|
+
xcss: styles.heading
|
|
33
33
|
}, title);
|
|
34
34
|
};
|
|
35
35
|
var _default = exports.default = GroupTitle;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
._19bvv47k{padding-left:var(--ds-space-250,20px)}
|
|
2
|
+
._1bah1h6o{justify-content:center}
|
|
3
|
+
._1e0c1txw{display:flex}
|
|
4
|
+
._1ul91lit{min-width:10pc}
|
|
5
|
+
._ca0qv47k{padding-top:var(--ds-space-250,20px)}
|
|
6
|
+
._n3tdv47k{padding-bottom:var(--ds-space-250,20px)}
|
|
7
|
+
._u5f3v47k{padding-right:var(--ds-space-250,20px)}
|
|
@@ -1,39 +1,35 @@
|
|
|
1
|
+
/* menu-wrapper.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
6
|
Object.defineProperty(exports, "__esModule", {
|
|
5
7
|
value: true
|
|
6
8
|
});
|
|
7
9
|
exports.default = void 0;
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
+
require("./menu-wrapper.compiled.css");
|
|
11
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
+
var React = _react;
|
|
13
|
+
var _runtime = require("@compiled/react/runtime");
|
|
10
14
|
var _menuGroup = _interopRequireDefault(require("@atlaskit/menu/menu-group"));
|
|
11
|
-
var
|
|
15
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
12
16
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
13
17
|
var _isCheckboxItem = _interopRequireDefault(require("../utils/is-checkbox-item"));
|
|
14
18
|
var _isRadioItem = _interopRequireDefault(require("../utils/is-radio-item"));
|
|
15
19
|
var _focusManager = require("./focus-manager");
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
|
-
|
|
23
|
-
var spinnerContainerStyles = (0, _primitives.xcss)({
|
|
24
|
-
display: 'flex',
|
|
25
|
-
minWidth: '160px',
|
|
26
|
-
padding: 'space.250',
|
|
27
|
-
justifyContent: 'center'
|
|
28
|
-
});
|
|
20
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
21
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
|
+
var styles = {
|
|
23
|
+
spinnerContainer: "_1e0c1txw _1ul91lit _1bah1h6o _ca0qv47k _u5f3v47k _n3tdv47k _19bvv47k"
|
|
24
|
+
};
|
|
29
25
|
var LoadingIndicator = function LoadingIndicator(_ref) {
|
|
30
26
|
var _ref$statusLabel = _ref.statusLabel,
|
|
31
27
|
statusLabel = _ref$statusLabel === void 0 ? 'Loading' : _ref$statusLabel,
|
|
32
28
|
testId = _ref.testId;
|
|
33
|
-
return
|
|
34
|
-
xcss:
|
|
29
|
+
return /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
30
|
+
xcss: styles.spinnerContainer,
|
|
35
31
|
role: "menuitem"
|
|
36
|
-
},
|
|
32
|
+
}, /*#__PURE__*/React.createElement(_spinner.default, {
|
|
37
33
|
size: "small",
|
|
38
34
|
label: statusLabel,
|
|
39
35
|
testId: testId
|
|
@@ -100,7 +96,7 @@ var MenuWrapper = function MenuWrapper(_ref2) {
|
|
|
100
96
|
}
|
|
101
97
|
setInitialFocusRef === null || setInitialFocusRef === void 0 || setInitialFocusRef(firstFocusableRef);
|
|
102
98
|
}, [menuItemRefs, setInitialFocusRef, autoFocus, shouldRenderToParent, isTriggeredUsingKeyboard]);
|
|
103
|
-
return
|
|
99
|
+
return /*#__PURE__*/React.createElement(_menuGroup.default, {
|
|
104
100
|
isLoading: isLoading,
|
|
105
101
|
maxHeight: maxHeight,
|
|
106
102
|
maxWidth: maxWidth,
|
|
@@ -108,7 +104,7 @@ var MenuWrapper = function MenuWrapper(_ref2) {
|
|
|
108
104
|
role: "menu",
|
|
109
105
|
spacing: spacing,
|
|
110
106
|
testId: testId && "".concat(testId, "--menu-group")
|
|
111
|
-
}, isLoading ?
|
|
107
|
+
}, isLoading ? /*#__PURE__*/React.createElement(LoadingIndicator, {
|
|
112
108
|
statusLabel: statusLabel,
|
|
113
109
|
testId: testId && "".concat(testId, "--loading-indicator")
|
|
114
110
|
}) : children);
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
._11c81vhk{font:var(--ds-font-heading-xxsmall,normal 600 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._18zrpxbi{padding-inline:var(--ds-space-200,1pc)}
|
|
3
|
+
._1rjcze3t{padding-block:var(--ds-space-0,0)}
|
|
4
|
+
._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
/* group-title.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./group-title.compiled.css";
|
|
3
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
1
4
|
import React from 'react';
|
|
2
|
-
import { Box
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
paddingBlock: 'space.0',
|
|
7
|
-
paddingInline: 'space.200'
|
|
8
|
-
});
|
|
5
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
6
|
+
const styles = {
|
|
7
|
+
heading: "_11c81vhk _1rjcze3t _18zrpxbi _syaz1gjq"
|
|
8
|
+
};
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* __Group title__
|
|
@@ -22,6 +22,6 @@ const GroupTitle = ({
|
|
|
22
22
|
role: "menuitem",
|
|
23
23
|
id: id,
|
|
24
24
|
"aria-hidden": "true",
|
|
25
|
-
xcss:
|
|
25
|
+
xcss: styles.heading
|
|
26
26
|
}, title);
|
|
27
27
|
export default GroupTitle;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
._19bvv47k{padding-left:var(--ds-space-250,20px)}
|
|
2
|
+
._1bah1h6o{justify-content:center}
|
|
3
|
+
._1e0c1txw{display:flex}
|
|
4
|
+
._1ul91lit{min-width:10pc}
|
|
5
|
+
._ca0qv47k{padding-top:var(--ds-space-250,20px)}
|
|
6
|
+
._n3tdv47k{padding-bottom:var(--ds-space-250,20px)}
|
|
7
|
+
._u5f3v47k{padding-right:var(--ds-space-250,20px)}
|
|
@@ -1,30 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
1
|
+
/* menu-wrapper.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./menu-wrapper.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { useContext, useEffect, useLayoutEffect } from 'react';
|
|
6
|
-
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
-
import { jsx } from '@emotion/react';
|
|
9
6
|
import MenuGroup from '@atlaskit/menu/menu-group';
|
|
10
|
-
import { Box
|
|
7
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
11
8
|
import Spinner from '@atlaskit/spinner';
|
|
12
9
|
import isCheckboxItem from '../utils/is-checkbox-item';
|
|
13
10
|
import isRadioItem from '../utils/is-radio-item';
|
|
14
11
|
import { FocusManagerContext } from './focus-manager';
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
padding: 'space.250',
|
|
19
|
-
justifyContent: 'center'
|
|
20
|
-
});
|
|
12
|
+
const styles = {
|
|
13
|
+
spinnerContainer: "_1e0c1txw _1ul91lit _1bah1h6o _ca0qv47k _u5f3v47k _n3tdv47k _19bvv47k"
|
|
14
|
+
};
|
|
21
15
|
const LoadingIndicator = ({
|
|
22
16
|
statusLabel = 'Loading',
|
|
23
17
|
testId
|
|
24
|
-
}) =>
|
|
25
|
-
xcss:
|
|
18
|
+
}) => /*#__PURE__*/React.createElement(Box, {
|
|
19
|
+
xcss: styles.spinnerContainer,
|
|
26
20
|
role: "menuitem"
|
|
27
|
-
},
|
|
21
|
+
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
28
22
|
size: "small",
|
|
29
23
|
label: statusLabel,
|
|
30
24
|
testId: testId
|
|
@@ -91,7 +85,7 @@ const MenuWrapper = ({
|
|
|
91
85
|
}
|
|
92
86
|
setInitialFocusRef === null || setInitialFocusRef === void 0 ? void 0 : setInitialFocusRef(firstFocusableRef);
|
|
93
87
|
}, [menuItemRefs, setInitialFocusRef, autoFocus, shouldRenderToParent, isTriggeredUsingKeyboard]);
|
|
94
|
-
return
|
|
88
|
+
return /*#__PURE__*/React.createElement(MenuGroup, {
|
|
95
89
|
isLoading: isLoading,
|
|
96
90
|
maxHeight: maxHeight,
|
|
97
91
|
maxWidth: maxWidth,
|
|
@@ -99,7 +93,7 @@ const MenuWrapper = ({
|
|
|
99
93
|
role: "menu",
|
|
100
94
|
spacing: spacing,
|
|
101
95
|
testId: testId && `${testId}--menu-group`
|
|
102
|
-
}, isLoading ?
|
|
96
|
+
}, isLoading ? /*#__PURE__*/React.createElement(LoadingIndicator, {
|
|
103
97
|
statusLabel: statusLabel,
|
|
104
98
|
testId: testId && `${testId}--loading-indicator`
|
|
105
99
|
}) : children);
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
._11c81vhk{font:var(--ds-font-heading-xxsmall,normal 600 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._18zrpxbi{padding-inline:var(--ds-space-200,1pc)}
|
|
3
|
+
._1rjcze3t{padding-block:var(--ds-space-0,0)}
|
|
4
|
+
._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
/* group-title.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./group-title.compiled.css";
|
|
3
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
1
4
|
import React from 'react';
|
|
2
|
-
import { Box
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
paddingBlock: 'space.0',
|
|
7
|
-
paddingInline: 'space.200'
|
|
8
|
-
});
|
|
5
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
6
|
+
var styles = {
|
|
7
|
+
heading: "_11c81vhk _1rjcze3t _18zrpxbi _syaz1gjq"
|
|
8
|
+
};
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* __Group title__
|
|
@@ -22,7 +22,7 @@ var GroupTitle = function GroupTitle(_ref) {
|
|
|
22
22
|
role: "menuitem",
|
|
23
23
|
id: id,
|
|
24
24
|
"aria-hidden": "true",
|
|
25
|
-
xcss:
|
|
25
|
+
xcss: styles.heading
|
|
26
26
|
}, title);
|
|
27
27
|
};
|
|
28
28
|
export default GroupTitle;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
._19bvv47k{padding-left:var(--ds-space-250,20px)}
|
|
2
|
+
._1bah1h6o{justify-content:center}
|
|
3
|
+
._1e0c1txw{display:flex}
|
|
4
|
+
._1ul91lit{min-width:10pc}
|
|
5
|
+
._ca0qv47k{padding-top:var(--ds-space-250,20px)}
|
|
6
|
+
._n3tdv47k{padding-bottom:var(--ds-space-250,20px)}
|
|
7
|
+
._u5f3v47k{padding-right:var(--ds-space-250,20px)}
|
|
@@ -1,31 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
1
|
+
/* menu-wrapper.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./menu-wrapper.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { useContext, useEffect, useLayoutEffect } from 'react';
|
|
6
|
-
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
-
import { jsx } from '@emotion/react';
|
|
9
6
|
import MenuGroup from '@atlaskit/menu/menu-group';
|
|
10
|
-
import { Box
|
|
7
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
11
8
|
import Spinner from '@atlaskit/spinner';
|
|
12
9
|
import isCheckboxItem from '../utils/is-checkbox-item';
|
|
13
10
|
import isRadioItem from '../utils/is-radio-item';
|
|
14
11
|
import { FocusManagerContext } from './focus-manager';
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
padding: 'space.250',
|
|
19
|
-
justifyContent: 'center'
|
|
20
|
-
});
|
|
12
|
+
var styles = {
|
|
13
|
+
spinnerContainer: "_1e0c1txw _1ul91lit _1bah1h6o _ca0qv47k _u5f3v47k _n3tdv47k _19bvv47k"
|
|
14
|
+
};
|
|
21
15
|
var LoadingIndicator = function LoadingIndicator(_ref) {
|
|
22
16
|
var _ref$statusLabel = _ref.statusLabel,
|
|
23
17
|
statusLabel = _ref$statusLabel === void 0 ? 'Loading' : _ref$statusLabel,
|
|
24
18
|
testId = _ref.testId;
|
|
25
|
-
return
|
|
26
|
-
xcss:
|
|
19
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
20
|
+
xcss: styles.spinnerContainer,
|
|
27
21
|
role: "menuitem"
|
|
28
|
-
},
|
|
22
|
+
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
29
23
|
size: "small",
|
|
30
24
|
label: statusLabel,
|
|
31
25
|
testId: testId
|
|
@@ -92,7 +86,7 @@ var MenuWrapper = function MenuWrapper(_ref2) {
|
|
|
92
86
|
}
|
|
93
87
|
setInitialFocusRef === null || setInitialFocusRef === void 0 || setInitialFocusRef(firstFocusableRef);
|
|
94
88
|
}, [menuItemRefs, setInitialFocusRef, autoFocus, shouldRenderToParent, isTriggeredUsingKeyboard]);
|
|
95
|
-
return
|
|
89
|
+
return /*#__PURE__*/React.createElement(MenuGroup, {
|
|
96
90
|
isLoading: isLoading,
|
|
97
91
|
maxHeight: maxHeight,
|
|
98
92
|
maxWidth: maxWidth,
|
|
@@ -100,7 +94,7 @@ var MenuWrapper = function MenuWrapper(_ref2) {
|
|
|
100
94
|
role: "menu",
|
|
101
95
|
spacing: spacing,
|
|
102
96
|
testId: testId && "".concat(testId, "--menu-group")
|
|
103
|
-
}, isLoading ?
|
|
97
|
+
}, isLoading ? /*#__PURE__*/React.createElement(LoadingIndicator, {
|
|
104
98
|
statusLabel: statusLabel,
|
|
105
99
|
testId: testId && "".concat(testId, "--loading-indicator")
|
|
106
100
|
}) : children);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { type MenuWrapperProps } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
@@ -7,5 +7,5 @@ import { type MenuWrapperProps } from '../../types';
|
|
|
7
7
|
* if a CheckboxItem or RadioItem is clicked.
|
|
8
8
|
* It also sets focus to the first menu item when opened.
|
|
9
9
|
*/
|
|
10
|
-
declare const MenuWrapper: ({ children, isLoading, maxHeight, maxWidth, onClose, onUpdate, statusLabel, setInitialFocusRef, shouldRenderToParent, spacing, testId, isTriggeredUsingKeyboard, autoFocus, }: MenuWrapperProps) =>
|
|
10
|
+
declare const MenuWrapper: ({ children, isLoading, maxHeight, maxWidth, onClose, onUpdate, statusLabel, setInitialFocusRef, shouldRenderToParent, spacing, testId, isTriggeredUsingKeyboard, autoFocus, }: MenuWrapperProps) => JSX.Element;
|
|
11
11
|
export default MenuWrapper;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { type MenuWrapperProps } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
@@ -7,5 +7,5 @@ import { type MenuWrapperProps } from '../../types';
|
|
|
7
7
|
* if a CheckboxItem or RadioItem is clicked.
|
|
8
8
|
* It also sets focus to the first menu item when opened.
|
|
9
9
|
*/
|
|
10
|
-
declare const MenuWrapper: ({ children, isLoading, maxHeight, maxWidth, onClose, onUpdate, statusLabel, setInitialFocusRef, shouldRenderToParent, spacing, testId, isTriggeredUsingKeyboard, autoFocus, }: MenuWrapperProps) =>
|
|
10
|
+
declare const MenuWrapper: ({ children, isLoading, maxHeight, maxWidth, onClose, onUpdate, statusLabel, setInitialFocusRef, shouldRenderToParent, spacing, testId, isTriggeredUsingKeyboard, autoFocus, }: MenuWrapperProps) => JSX.Element;
|
|
11
11
|
export default MenuWrapper;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/dropdown-menu",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0",
|
|
4
4
|
"description": "A dropdown menu displays a list of actions or options to a user.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@atlaskit/button": "^23.2.0",
|
|
29
29
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
30
|
+
"@atlaskit/css": "^0.10.0",
|
|
30
31
|
"@atlaskit/ds-lib": "^4.0.0",
|
|
31
32
|
"@atlaskit/icon": "^26.1.0",
|
|
32
33
|
"@atlaskit/layering": "^2.1.0",
|
|
@@ -38,7 +39,6 @@
|
|
|
38
39
|
"@atlaskit/theme": "^18.0.0",
|
|
39
40
|
"@atlaskit/tokens": "^4.9.0",
|
|
40
41
|
"@babel/runtime": "^7.0.0",
|
|
41
|
-
"@emotion/react": "^11.7.1",
|
|
42
42
|
"bind-event-listener": "^3.0.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
],
|
|
116
116
|
"styling": [
|
|
117
117
|
"static",
|
|
118
|
-
"
|
|
118
|
+
"compiled"
|
|
119
119
|
],
|
|
120
120
|
"analytics": "analytics-next",
|
|
121
121
|
"deprecation": "no-deprecated-imports"
|