@atlaskit/dropdown-menu 14.2.0 → 15.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 +12 -0
- package/dist/cjs/checkbox/dropdown-item-checkbox-group.js +2 -6
- package/dist/cjs/dropdown-menu-item-group.js +1 -5
- package/dist/cjs/radio/dropdown-item-radio-group.js +2 -6
- package/dist/es2019/checkbox/dropdown-item-checkbox-group.js +1 -5
- package/dist/es2019/dropdown-menu-item-group.js +0 -4
- package/dist/es2019/radio/dropdown-item-radio-group.js +1 -5
- package/dist/esm/checkbox/dropdown-item-checkbox-group.js +2 -6
- package/dist/esm/dropdown-menu-item-group.js +1 -5
- package/dist/esm/radio/dropdown-item-radio-group.js +2 -6
- package/dist/types/checkbox/dropdown-item-checkbox-group.d.ts +1 -1
- package/dist/types/radio/dropdown-item-radio-group.d.ts +1 -1
- package/dist/types-ts4.5/checkbox/dropdown-item-checkbox-group.d.ts +1 -1
- package/dist/types-ts4.5/radio/dropdown-item-radio-group.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/dropdown-menu
|
|
2
2
|
|
|
3
|
+
## 15.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#148607](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/148607)
|
|
8
|
+
[`30eff9d58e797`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/30eff9d58e797) -
|
|
9
|
+
Removed `overrides` prop from DropdownMenuItemGroup.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 14.2.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -12,7 +12,7 @@ var _useId = require("@atlaskit/ds-lib/use-id");
|
|
|
12
12
|
var _section = _interopRequireDefault(require("@atlaskit/menu/section"));
|
|
13
13
|
var _groupTitle = _interopRequireDefault(require("../internal/components/group-title"));
|
|
14
14
|
var _checkboxGroupContext = require("../internal/context/checkbox-group-context");
|
|
15
|
-
var _excluded = ["children", "hasSeparator", "id", "isList", "isScrollable", "
|
|
15
|
+
var _excluded = ["children", "hasSeparator", "id", "isList", "isScrollable", "testId", "title"];
|
|
16
16
|
/**
|
|
17
17
|
* __Dropdown item checkbox group__
|
|
18
18
|
*
|
|
@@ -25,7 +25,6 @@ var DropdownItemCheckboxGroup = function DropdownItemCheckboxGroup(_ref) {
|
|
|
25
25
|
id = _ref.id,
|
|
26
26
|
isList = _ref.isList,
|
|
27
27
|
isScrollable = _ref.isScrollable,
|
|
28
|
-
overrides = _ref.overrides,
|
|
29
28
|
testId = _ref.testId,
|
|
30
29
|
title = _ref.title,
|
|
31
30
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
@@ -37,10 +36,7 @@ var DropdownItemCheckboxGroup = function DropdownItemCheckboxGroup(_ref) {
|
|
|
37
36
|
hasSeparator: hasSeparator,
|
|
38
37
|
id: id,
|
|
39
38
|
isList: isList,
|
|
40
|
-
isScrollable: isScrollable
|
|
41
|
-
// eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
|
|
42
|
-
,
|
|
43
|
-
overrides: overrides,
|
|
39
|
+
isScrollable: isScrollable,
|
|
44
40
|
testId: testId,
|
|
45
41
|
titleId: title ? titleId : undefined
|
|
46
42
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
@@ -12,7 +12,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var _useId = require("@atlaskit/ds-lib/use-id");
|
|
13
13
|
var _menu = require("@atlaskit/menu");
|
|
14
14
|
var _groupTitle = _interopRequireDefault(require("./internal/components/group-title"));
|
|
15
|
-
var _excluded = ["children", "id", "isList", "isScrollable", "title", "testId", "hasSeparator"
|
|
15
|
+
var _excluded = ["children", "id", "isList", "isScrollable", "title", "testId", "hasSeparator"];
|
|
16
16
|
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); }
|
|
17
17
|
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; }
|
|
18
18
|
/**
|
|
@@ -29,7 +29,6 @@ var DropdownMenuItemGroup = /*#__PURE__*/(0, _react.forwardRef)(function (_ref,
|
|
|
29
29
|
title = _ref.title,
|
|
30
30
|
testId = _ref.testId,
|
|
31
31
|
hasSeparator = _ref.hasSeparator,
|
|
32
|
-
overrides = _ref.overrides,
|
|
33
32
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
34
33
|
var uid = (0, _useId.useId)();
|
|
35
34
|
var titleId = "dropdown-menu-item-group-title-".concat(uid);
|
|
@@ -41,9 +40,6 @@ var DropdownMenuItemGroup = /*#__PURE__*/(0, _react.forwardRef)(function (_ref,
|
|
|
41
40
|
hasSeparator: hasSeparator,
|
|
42
41
|
testId: testId,
|
|
43
42
|
titleId: title ? titleId : undefined
|
|
44
|
-
// eslint-disable-next-line @repo/internal/react/no-unsafe-overrides, @atlaskit/design-system/no-deprecated-apis
|
|
45
|
-
,
|
|
46
|
-
overrides: overrides
|
|
47
43
|
}, rest), title && /*#__PURE__*/_react.default.createElement(_groupTitle.default, {
|
|
48
44
|
id: titleId,
|
|
49
45
|
title: title
|
|
@@ -17,7 +17,7 @@ var _menu = require("@atlaskit/menu");
|
|
|
17
17
|
var _groupTitle = _interopRequireDefault(require("../internal/components/group-title"));
|
|
18
18
|
var _selectionStore = require("../internal/context/selection-store");
|
|
19
19
|
var _resetOptionsInGroup = _interopRequireDefault(require("../internal/utils/reset-options-in-group"));
|
|
20
|
-
var _excluded = ["children", "hasSeparator", "id", "isList", "isScrollable", "
|
|
20
|
+
var _excluded = ["children", "hasSeparator", "id", "isList", "isScrollable", "testId", "title"];
|
|
21
21
|
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); }
|
|
22
22
|
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; }
|
|
23
23
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -44,7 +44,6 @@ var DropdownItemRadioGroup = function DropdownItemRadioGroup(_ref) {
|
|
|
44
44
|
id = _ref.id,
|
|
45
45
|
isList = _ref.isList,
|
|
46
46
|
isScrollable = _ref.isScrollable,
|
|
47
|
-
overrides = _ref.overrides,
|
|
48
47
|
testId = _ref.testId,
|
|
49
48
|
title = _ref.title,
|
|
50
49
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
@@ -79,10 +78,7 @@ var DropdownItemRadioGroup = function DropdownItemRadioGroup(_ref) {
|
|
|
79
78
|
hasSeparator: hasSeparator,
|
|
80
79
|
id: id,
|
|
81
80
|
isList: isList,
|
|
82
|
-
isScrollable: isScrollable
|
|
83
|
-
// eslint-disable-next-line @repo/internal/react/no-unsafe-overrides, @atlaskit/design-system/no-deprecated-apis
|
|
84
|
-
,
|
|
85
|
-
overrides: overrides,
|
|
81
|
+
isScrollable: isScrollable,
|
|
86
82
|
testId: testId,
|
|
87
83
|
titleId: title ? titleId : undefined
|
|
88
84
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
@@ -16,7 +16,6 @@ const DropdownItemCheckboxGroup = ({
|
|
|
16
16
|
id,
|
|
17
17
|
isList,
|
|
18
18
|
isScrollable,
|
|
19
|
-
overrides,
|
|
20
19
|
testId,
|
|
21
20
|
title,
|
|
22
21
|
// DSP-13312 TODO: remove spread props in future major release
|
|
@@ -30,10 +29,7 @@ const DropdownItemCheckboxGroup = ({
|
|
|
30
29
|
hasSeparator: hasSeparator,
|
|
31
30
|
id: id,
|
|
32
31
|
isList: isList,
|
|
33
|
-
isScrollable: isScrollable
|
|
34
|
-
// eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
|
|
35
|
-
,
|
|
36
|
-
overrides: overrides,
|
|
32
|
+
isScrollable: isScrollable,
|
|
37
33
|
testId: testId,
|
|
38
34
|
titleId: title ? titleId : undefined
|
|
39
35
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
@@ -18,7 +18,6 @@ const DropdownMenuItemGroup = /*#__PURE__*/forwardRef(({
|
|
|
18
18
|
title,
|
|
19
19
|
testId,
|
|
20
20
|
hasSeparator,
|
|
21
|
-
overrides,
|
|
22
21
|
...rest
|
|
23
22
|
}, ref) => {
|
|
24
23
|
const uid = useId();
|
|
@@ -31,9 +30,6 @@ const DropdownMenuItemGroup = /*#__PURE__*/forwardRef(({
|
|
|
31
30
|
hasSeparator: hasSeparator,
|
|
32
31
|
testId: testId,
|
|
33
32
|
titleId: title ? titleId : undefined
|
|
34
|
-
// eslint-disable-next-line @repo/internal/react/no-unsafe-overrides, @atlaskit/design-system/no-deprecated-apis
|
|
35
|
-
,
|
|
36
|
-
overrides: overrides
|
|
37
33
|
}, rest), title && /*#__PURE__*/React.createElement(GroupTitle, {
|
|
38
34
|
id: titleId,
|
|
39
35
|
title: title
|
|
@@ -28,7 +28,6 @@ const DropdownItemRadioGroup = ({
|
|
|
28
28
|
id,
|
|
29
29
|
isList,
|
|
30
30
|
isScrollable,
|
|
31
|
-
overrides,
|
|
32
31
|
testId,
|
|
33
32
|
title,
|
|
34
33
|
// DSP-13312 TODO: remove spread props in future major release
|
|
@@ -64,10 +63,7 @@ const DropdownItemRadioGroup = ({
|
|
|
64
63
|
hasSeparator: hasSeparator,
|
|
65
64
|
id: id,
|
|
66
65
|
isList: isList,
|
|
67
|
-
isScrollable: isScrollable
|
|
68
|
-
// eslint-disable-next-line @repo/internal/react/no-unsafe-overrides, @atlaskit/design-system/no-deprecated-apis
|
|
69
|
-
,
|
|
70
|
-
overrides: overrides,
|
|
66
|
+
isScrollable: isScrollable,
|
|
71
67
|
testId: testId,
|
|
72
68
|
titleId: title ? titleId : undefined
|
|
73
69
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["children", "hasSeparator", "id", "isList", "isScrollable", "
|
|
3
|
+
var _excluded = ["children", "hasSeparator", "id", "isList", "isScrollable", "testId", "title"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { useId } from '@atlaskit/ds-lib/use-id';
|
|
6
6
|
import Section from '@atlaskit/menu/section';
|
|
@@ -18,7 +18,6 @@ var DropdownItemCheckboxGroup = function DropdownItemCheckboxGroup(_ref) {
|
|
|
18
18
|
id = _ref.id,
|
|
19
19
|
isList = _ref.isList,
|
|
20
20
|
isScrollable = _ref.isScrollable,
|
|
21
|
-
overrides = _ref.overrides,
|
|
22
21
|
testId = _ref.testId,
|
|
23
22
|
title = _ref.title,
|
|
24
23
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -30,10 +29,7 @@ var DropdownItemCheckboxGroup = function DropdownItemCheckboxGroup(_ref) {
|
|
|
30
29
|
hasSeparator: hasSeparator,
|
|
31
30
|
id: id,
|
|
32
31
|
isList: isList,
|
|
33
|
-
isScrollable: isScrollable
|
|
34
|
-
// eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
|
|
35
|
-
,
|
|
36
|
-
overrides: overrides,
|
|
32
|
+
isScrollable: isScrollable,
|
|
37
33
|
testId: testId,
|
|
38
34
|
titleId: title ? titleId : undefined
|
|
39
35
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["children", "id", "isList", "isScrollable", "title", "testId", "hasSeparator"
|
|
3
|
+
var _excluded = ["children", "id", "isList", "isScrollable", "title", "testId", "hasSeparator"];
|
|
4
4
|
import React, { forwardRef } from 'react';
|
|
5
5
|
import { useId } from '@atlaskit/ds-lib/use-id';
|
|
6
6
|
import { Section } from '@atlaskit/menu';
|
|
@@ -20,7 +20,6 @@ var DropdownMenuItemGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20
20
|
title = _ref.title,
|
|
21
21
|
testId = _ref.testId,
|
|
22
22
|
hasSeparator = _ref.hasSeparator,
|
|
23
|
-
overrides = _ref.overrides,
|
|
24
23
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
25
24
|
var uid = useId();
|
|
26
25
|
var titleId = "dropdown-menu-item-group-title-".concat(uid);
|
|
@@ -32,9 +31,6 @@ var DropdownMenuItemGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
32
31
|
hasSeparator: hasSeparator,
|
|
33
32
|
testId: testId,
|
|
34
33
|
titleId: title ? titleId : undefined
|
|
35
|
-
// eslint-disable-next-line @repo/internal/react/no-unsafe-overrides, @atlaskit/design-system/no-deprecated-apis
|
|
36
|
-
,
|
|
37
|
-
overrides: overrides
|
|
38
34
|
}, rest), title && /*#__PURE__*/React.createElement(GroupTitle, {
|
|
39
35
|
id: titleId,
|
|
40
36
|
title: title
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
5
|
-
var _excluded = ["children", "hasSeparator", "id", "isList", "isScrollable", "
|
|
5
|
+
var _excluded = ["children", "hasSeparator", "id", "isList", "isScrollable", "testId", "title"];
|
|
6
6
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7
7
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8
8
|
import React, { createContext, useContext, useState } from 'react';
|
|
@@ -34,7 +34,6 @@ var DropdownItemRadioGroup = function DropdownItemRadioGroup(_ref) {
|
|
|
34
34
|
id = _ref.id,
|
|
35
35
|
isList = _ref.isList,
|
|
36
36
|
isScrollable = _ref.isScrollable,
|
|
37
|
-
overrides = _ref.overrides,
|
|
38
37
|
testId = _ref.testId,
|
|
39
38
|
title = _ref.title,
|
|
40
39
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -69,10 +68,7 @@ var DropdownItemRadioGroup = function DropdownItemRadioGroup(_ref) {
|
|
|
69
68
|
hasSeparator: hasSeparator,
|
|
70
69
|
id: id,
|
|
71
70
|
isList: isList,
|
|
72
|
-
isScrollable: isScrollable
|
|
73
|
-
// eslint-disable-next-line @repo/internal/react/no-unsafe-overrides, @atlaskit/design-system/no-deprecated-apis
|
|
74
|
-
,
|
|
75
|
-
overrides: overrides,
|
|
71
|
+
isScrollable: isScrollable,
|
|
76
72
|
testId: testId,
|
|
77
73
|
titleId: title ? titleId : undefined
|
|
78
74
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
@@ -12,5 +12,5 @@ interface DropdownItemCheckboxGroupProps extends SectionProps {
|
|
|
12
12
|
* A wrapping element for dropdown menu checkbox items.
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
15
|
-
declare const DropdownItemCheckboxGroup: ({ children, hasSeparator, id, isList, isScrollable,
|
|
15
|
+
declare const DropdownItemCheckboxGroup: ({ children, hasSeparator, id, isList, isScrollable, testId, title, ...rest }: DropdownItemCheckboxGroupProps) => React.JSX.Element;
|
|
16
16
|
export default DropdownItemCheckboxGroup;
|
|
@@ -21,5 +21,5 @@ export declare const RadioGroupContext: React.Context<RadioGroupContextProps>;
|
|
|
21
21
|
* across mount and unmounts.
|
|
22
22
|
*
|
|
23
23
|
*/
|
|
24
|
-
declare const DropdownItemRadioGroup: ({ children, hasSeparator, id, isList, isScrollable,
|
|
24
|
+
declare const DropdownItemRadioGroup: ({ children, hasSeparator, id, isList, isScrollable, testId, title, ...rest }: DropdownItemRadioGroupProps) => React.JSX.Element;
|
|
25
25
|
export default DropdownItemRadioGroup;
|
|
@@ -12,5 +12,5 @@ interface DropdownItemCheckboxGroupProps extends SectionProps {
|
|
|
12
12
|
* A wrapping element for dropdown menu checkbox items.
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
15
|
-
declare const DropdownItemCheckboxGroup: ({ children, hasSeparator, id, isList, isScrollable,
|
|
15
|
+
declare const DropdownItemCheckboxGroup: ({ children, hasSeparator, id, isList, isScrollable, testId, title, ...rest }: DropdownItemCheckboxGroupProps) => React.JSX.Element;
|
|
16
16
|
export default DropdownItemCheckboxGroup;
|
|
@@ -21,5 +21,5 @@ export declare const RadioGroupContext: React.Context<RadioGroupContextProps>;
|
|
|
21
21
|
* across mount and unmounts.
|
|
22
22
|
*
|
|
23
23
|
*/
|
|
24
|
-
declare const DropdownItemRadioGroup: ({ children, hasSeparator, id, isList, isScrollable,
|
|
24
|
+
declare const DropdownItemRadioGroup: ({ children, hasSeparator, id, isList, isScrollable, testId, title, ...rest }: DropdownItemRadioGroupProps) => React.JSX.Element;
|
|
25
25
|
export default DropdownItemRadioGroup;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/dropdown-menu",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.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/"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@atlaskit/ds-lib": "^4.0.0",
|
|
31
31
|
"@atlaskit/icon": "^26.0.0",
|
|
32
32
|
"@atlaskit/layering": "^2.1.0",
|
|
33
|
-
"@atlaskit/menu": "^
|
|
33
|
+
"@atlaskit/menu": "^6.0.0",
|
|
34
34
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
35
35
|
"@atlaskit/popup": "^4.2.0",
|
|
36
36
|
"@atlaskit/primitives": "^14.7.0",
|