@atlaskit/dropdown-menu 11.7.2 → 11.8.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
+ ## 11.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+
13
+ ## 11.7.3
14
+
15
+ ### Patch Changes
16
+
17
+ - [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
18
+
3
19
  ## 11.7.2
4
20
 
5
21
  ### Patch Changes
@@ -24,7 +24,7 @@ var _focusManager = _interopRequireDefault(require("./internal/components/focus-
24
24
  var _menuWrapper = _interopRequireDefault(require("./internal/components/menu-wrapper"));
25
25
  var _selectionStore = _interopRequireDefault(require("./internal/context/selection-store"));
26
26
  var _useGeneratedId = _interopRequireDefault(require("./internal/utils/use-generated-id"));
27
- var _excluded = ["ref"];
27
+ var _excluded = ["ref"]; // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
28
28
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
29
29
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
30
30
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -16,6 +16,7 @@ var _focusManager = require("../components/focus-manager");
16
16
  var _isCheckboxItem = _interopRequireDefault(require("../utils/is-checkbox-item"));
17
17
  var _isRadioItem = _interopRequireDefault(require("../utils/is-radio-item"));
18
18
  var _excluded = ["onClose", "onUpdate", "isLoading", "statusLabel", "setInitialFocusRef", "children"];
19
+ /** @jsx jsx */
19
20
  var spinnerContainerStyles = (0, _react2.css)({
20
21
  display: 'flex',
21
22
  minWidth: '160px',
@@ -25,16 +26,13 @@ var spinnerContainerStyles = (0, _react2.css)({
25
26
  var LoadingIndicator = function LoadingIndicator(_ref) {
26
27
  var _ref$statusLabel = _ref.statusLabel,
27
28
  statusLabel = _ref$statusLabel === void 0 ? 'Loading' : _ref$statusLabel;
28
- return (
29
- // eslint-disable-next-line @repo/internal/react/use-primitives
30
- (0, _react2.jsx)("div", {
31
- css: spinnerContainerStyles
32
- }, (0, _react2.jsx)(_spinner.default, {
33
- size: "small"
34
- }), (0, _react2.jsx)(_visuallyHidden.default, {
35
- role: "status"
36
- }, statusLabel))
37
- );
29
+ return (0, _react2.jsx)("div", {
30
+ css: spinnerContainerStyles
31
+ }, (0, _react2.jsx)(_spinner.default, {
32
+ size: "small"
33
+ }), (0, _react2.jsx)(_visuallyHidden.default, {
34
+ role: "status"
35
+ }, statusLabel));
38
36
  };
39
37
  /**
40
38
  *
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/dropdown-menu",
3
- "version": "11.7.2",
3
+ "version": "11.8.0",
4
4
  "sideEffects": false
5
5
  }
@@ -16,9 +16,7 @@ const spinnerContainerStyles = css({
16
16
  });
17
17
  const LoadingIndicator = ({
18
18
  statusLabel = 'Loading'
19
- }) =>
20
- // eslint-disable-next-line @repo/internal/react/use-primitives
21
- jsx("div", {
19
+ }) => jsx("div", {
22
20
  css: spinnerContainerStyles
23
21
  }, jsx(Spinner, {
24
22
  size: "small"
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/dropdown-menu",
3
- "version": "11.7.2",
3
+ "version": "11.8.0",
4
4
  "sideEffects": false
5
5
  }
@@ -19,16 +19,13 @@ var spinnerContainerStyles = css({
19
19
  var LoadingIndicator = function LoadingIndicator(_ref) {
20
20
  var _ref$statusLabel = _ref.statusLabel,
21
21
  statusLabel = _ref$statusLabel === void 0 ? 'Loading' : _ref$statusLabel;
22
- return (
23
- // eslint-disable-next-line @repo/internal/react/use-primitives
24
- jsx("div", {
25
- css: spinnerContainerStyles
26
- }, jsx(Spinner, {
27
- size: "small"
28
- }), jsx(VisuallyHidden, {
29
- role: "status"
30
- }, statusLabel))
31
- );
22
+ return jsx("div", {
23
+ css: spinnerContainerStyles
24
+ }, jsx(Spinner, {
25
+ size: "small"
26
+ }), jsx(VisuallyHidden, {
27
+ role: "status"
28
+ }, statusLabel));
32
29
  };
33
30
  /**
34
31
  *
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/dropdown-menu",
3
- "version": "11.7.2",
3
+ "version": "11.8.0",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/dropdown-menu",
3
- "version": "11.7.2",
3
+ "version": "11.8.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/"
@@ -23,16 +23,16 @@
23
23
  }
24
24
  },
25
25
  "dependencies": {
26
- "@atlaskit/button": "^16.5.0",
27
- "@atlaskit/codemod-utils": "^4.1.0",
28
- "@atlaskit/ds-lib": "^2.1.0",
29
- "@atlaskit/icon": "^21.11.0",
30
- "@atlaskit/menu": "^1.5.0",
31
- "@atlaskit/popup": "^1.5.0",
32
- "@atlaskit/spinner": "^15.4.0",
33
- "@atlaskit/theme": "^12.3.0",
34
- "@atlaskit/tokens": "^1.2.0",
35
- "@atlaskit/visually-hidden": "^1.1.0",
26
+ "@atlaskit/button": "^16.7.0",
27
+ "@atlaskit/codemod-utils": "^4.2.0",
28
+ "@atlaskit/ds-lib": "^2.2.0",
29
+ "@atlaskit/icon": "^21.12.0",
30
+ "@atlaskit/menu": "^1.6.0",
31
+ "@atlaskit/popup": "^1.6.0",
32
+ "@atlaskit/spinner": "^15.5.0",
33
+ "@atlaskit/theme": "^12.5.0",
34
+ "@atlaskit/tokens": "^1.3.0",
35
+ "@atlaskit/visually-hidden": "^1.2.0",
36
36
  "@babel/runtime": "^7.0.0",
37
37
  "@emotion/react": "^11.7.1",
38
38
  "bind-event-listener": "^2.1.1"
@@ -42,16 +42,16 @@
42
42
  "react-dom": "^16.8.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@atlaskit/avatar": "^21.2.0",
45
+ "@atlaskit/avatar": "^21.3.0",
46
46
  "@atlaskit/docs": "*",
47
- "@atlaskit/ds-explorations": "^2.0.0",
48
- "@atlaskit/heading": "^1.2.0",
49
- "@atlaskit/lozenge": "11.3.8",
50
- "@atlaskit/modal-dialog": "^12.4.0",
51
- "@atlaskit/primitives": "^0.3.0",
52
- "@atlaskit/section-message": "^6.3.0",
47
+ "@atlaskit/ds-explorations": "^2.1.0",
48
+ "@atlaskit/heading": "^1.3.0",
49
+ "@atlaskit/lozenge": "11.4.0",
50
+ "@atlaskit/modal-dialog": "^12.5.0",
51
+ "@atlaskit/primitives": "^0.9.0",
52
+ "@atlaskit/section-message": "^6.4.0",
53
53
  "@atlaskit/ssr": "*",
54
- "@atlaskit/tooltip": "^17.7.0",
54
+ "@atlaskit/tooltip": "^17.8.0",
55
55
  "@atlaskit/visual-regression": "*",
56
56
  "@atlaskit/webdriver-runner": "*",
57
57
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
package/report.api.md CHANGED
@@ -20,6 +20,7 @@
20
20
  import type { CustomItemProps } from '@atlaskit/menu/types';
21
21
  import { default as DropdownItemGroup } from '@atlaskit/menu/section';
22
22
  import { KeyboardEvent as KeyboardEvent_2 } from 'react';
23
+ import type { MenuGroupProps } from '@atlaskit/menu/types';
23
24
  import { MouseEvent as MouseEvent_2 } from 'react';
24
25
  import { default as React_2 } from 'react';
25
26
  import { ReactElement } from 'react';
@@ -146,6 +147,7 @@ export interface DropdownMenuProps<
146
147
  onOpenChange?: (args: OnOpenChangeArgs) => void;
147
148
  placement?: Placement;
148
149
  shouldFlip?: boolean;
150
+ spacing?: Extract<MenuGroupProps['spacing'], 'compact' | 'cozy'>;
149
151
  statusLabel?: string;
150
152
  testId?: string;
151
153
  trigger?: