@atlaskit/dropdown-menu 12.3.0 → 12.5.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
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/dropdown-menu
|
|
2
2
|
|
|
3
|
+
## 12.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#65862](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65862) [`7e4f1a341224`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7e4f1a341224) - [ux] Updated dropdown-menu trigger to consume the new button. The new default button trigger (text + arrow icon) would be narrower than before. The fallback color on button trigger is now darker when no theme is applied.
|
|
8
|
+
|
|
9
|
+
## 12.4.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#70664](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70664) [`776e5ba8fc41`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/776e5ba8fc41) - Enable layering in popup and dropdown to support nested navigation
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 12.3.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
|
@@ -12,7 +12,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
12
12
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
14
|
var _bindEventListener = require("bind-event-listener");
|
|
15
|
-
var
|
|
15
|
+
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
16
16
|
var _keycodes = require("@atlaskit/ds-lib/keycodes");
|
|
17
17
|
var _mergeRefs = _interopRequireDefault(require("@atlaskit/ds-lib/merge-refs"));
|
|
18
18
|
var _noop = _interopRequireDefault(require("@atlaskit/ds-lib/noop"));
|
|
@@ -214,16 +214,13 @@ var DropdownMenu = function DropdownMenu(_ref) {
|
|
|
214
214
|
testId: testId && "".concat(testId, "--trigger")
|
|
215
215
|
}));
|
|
216
216
|
}
|
|
217
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
217
|
+
return /*#__PURE__*/_react.default.createElement(_new.default, (0, _extends2.default)({}, bindFocus, {
|
|
218
218
|
ref: (0, _mergeRefs.default)([ref, itemRef]),
|
|
219
219
|
"aria-controls": ariaControls,
|
|
220
220
|
"aria-expanded": ariaExpanded,
|
|
221
221
|
"aria-haspopup": ariaHasPopup,
|
|
222
222
|
isSelected: isLocalOpen,
|
|
223
|
-
iconAfter:
|
|
224
|
-
size: "medium",
|
|
225
|
-
label: ""
|
|
226
|
-
}),
|
|
223
|
+
iconAfter: _chevronDown.default,
|
|
227
224
|
onClick: handleTriggerClicked,
|
|
228
225
|
testId: testId && "".concat(testId, "--trigger"),
|
|
229
226
|
"aria-label": label
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
3
3
|
import { bind } from 'bind-event-listener';
|
|
4
|
-
import Button from '@atlaskit/button/
|
|
4
|
+
import Button from '@atlaskit/button/new';
|
|
5
5
|
import { KEY_DOWN } from '@atlaskit/ds-lib/keycodes';
|
|
6
6
|
import mergeRefs from '@atlaskit/ds-lib/merge-refs';
|
|
7
7
|
import noop from '@atlaskit/ds-lib/noop';
|
|
@@ -194,10 +194,7 @@ const DropdownMenu = ({
|
|
|
194
194
|
"aria-expanded": ariaExpanded,
|
|
195
195
|
"aria-haspopup": ariaHasPopup,
|
|
196
196
|
isSelected: isLocalOpen,
|
|
197
|
-
iconAfter:
|
|
198
|
-
size: "medium",
|
|
199
|
-
label: ""
|
|
200
|
-
}),
|
|
197
|
+
iconAfter: ExpandIcon,
|
|
201
198
|
onClick: handleTriggerClicked,
|
|
202
199
|
testId: testId && `${testId}--trigger`,
|
|
203
200
|
"aria-label": label
|
|
@@ -7,7 +7,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
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, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
9
9
|
import { bind } from 'bind-event-listener';
|
|
10
|
-
import Button from '@atlaskit/button/
|
|
10
|
+
import Button from '@atlaskit/button/new';
|
|
11
11
|
import { KEY_DOWN } from '@atlaskit/ds-lib/keycodes';
|
|
12
12
|
import mergeRefs from '@atlaskit/ds-lib/merge-refs';
|
|
13
13
|
import noop from '@atlaskit/ds-lib/noop';
|
|
@@ -211,10 +211,7 @@ var DropdownMenu = function DropdownMenu(_ref) {
|
|
|
211
211
|
"aria-expanded": ariaExpanded,
|
|
212
212
|
"aria-haspopup": ariaHasPopup,
|
|
213
213
|
isSelected: isLocalOpen,
|
|
214
|
-
iconAfter:
|
|
215
|
-
size: "medium",
|
|
216
|
-
label: ""
|
|
217
|
-
}),
|
|
214
|
+
iconAfter: ExpandIcon,
|
|
218
215
|
onClick: handleTriggerClicked,
|
|
219
216
|
testId: testId && "".concat(testId, "--trigger"),
|
|
220
217
|
"aria-label": label
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/dropdown-menu",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.5.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/"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@atlaskit/layering": "^0.2.0",
|
|
34
34
|
"@atlaskit/menu": "^2.1.0",
|
|
35
35
|
"@atlaskit/platform-feature-flags": "^0.2.2",
|
|
36
|
-
"@atlaskit/popup": "^1.
|
|
36
|
+
"@atlaskit/popup": "^1.12.0",
|
|
37
37
|
"@atlaskit/primitives": "^2.0.0",
|
|
38
38
|
"@atlaskit/spinner": "^16.0.0",
|
|
39
39
|
"@atlaskit/theme": "^12.6.0",
|
|
@@ -107,9 +107,6 @@
|
|
|
107
107
|
"platform-feature-flags": {
|
|
108
108
|
"platform.design-system-team.border-checkbox_nyoiu": {
|
|
109
109
|
"type": "boolean"
|
|
110
|
-
},
|
|
111
|
-
"platform.design-system-team.layering_popup_1cnzt": {
|
|
112
|
-
"type": "boolean"
|
|
113
110
|
}
|
|
114
111
|
},
|
|
115
112
|
"homepage": "https://atlassian.design/components/dropdown-menu/",
|