@atlaskit/menu 1.2.3 → 1.2.4

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,11 @@
1
1
  # @atlaskit/menu
2
2
 
3
+ ## 1.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 1.2.3
4
10
 
5
11
  ### Patch Changes
package/dist/cjs/index.js CHANGED
@@ -11,34 +11,34 @@ Object.defineProperty(exports, "ButtonItem", {
11
11
  return _buttonItem.default;
12
12
  }
13
13
  });
14
- Object.defineProperty(exports, "LinkItem", {
14
+ Object.defineProperty(exports, "CustomItem", {
15
15
  enumerable: true,
16
16
  get: function get() {
17
- return _linkItem.default;
17
+ return _customItem.default;
18
18
  }
19
19
  });
20
- Object.defineProperty(exports, "CustomItem", {
20
+ Object.defineProperty(exports, "HeadingItem", {
21
21
  enumerable: true,
22
22
  get: function get() {
23
- return _customItem.default;
23
+ return _headingItem.default;
24
24
  }
25
25
  });
26
- Object.defineProperty(exports, "SkeletonItem", {
26
+ Object.defineProperty(exports, "LinkItem", {
27
27
  enumerable: true,
28
28
  get: function get() {
29
- return _skeletonItem.default;
29
+ return _linkItem.default;
30
30
  }
31
31
  });
32
- Object.defineProperty(exports, "HeadingItem", {
32
+ Object.defineProperty(exports, "MenuGroup", {
33
33
  enumerable: true,
34
34
  get: function get() {
35
- return _headingItem.default;
35
+ return _menuGroup.default;
36
36
  }
37
37
  });
38
- Object.defineProperty(exports, "SkeletonHeadingItem", {
38
+ Object.defineProperty(exports, "PopupMenuGroup", {
39
39
  enumerable: true,
40
40
  get: function get() {
41
- return _skeletonHeadingItem.default;
41
+ return _popupMenuGroup.default;
42
42
  }
43
43
  });
44
44
  Object.defineProperty(exports, "Section", {
@@ -47,16 +47,16 @@ Object.defineProperty(exports, "Section", {
47
47
  return _section.default;
48
48
  }
49
49
  });
50
- Object.defineProperty(exports, "MenuGroup", {
50
+ Object.defineProperty(exports, "SkeletonHeadingItem", {
51
51
  enumerable: true,
52
52
  get: function get() {
53
- return _menuGroup.default;
53
+ return _skeletonHeadingItem.default;
54
54
  }
55
55
  });
56
- Object.defineProperty(exports, "PopupMenuGroup", {
56
+ Object.defineProperty(exports, "SkeletonItem", {
57
57
  enumerable: true,
58
58
  get: function get() {
59
- return _popupMenuGroup.default;
59
+ return _skeletonItem.default;
60
60
  }
61
61
  });
62
62
 
@@ -21,7 +21,7 @@ var _menuItemPrimitive = _interopRequireDefault(require("../internal/components/
21
21
 
22
22
  var _useBlurOnMouseDown = require("../internal/hooks/use-blur-on-mouse-down");
23
23
 
24
- /** @jsx jsx */
24
+ var _excluded = ["children", "cssFn", "description", "iconAfter", "iconBefore", "isDisabled", "isSelected", "onClick", "testId", "overrides", "onMouseDown", "shouldTitleWrap", "shouldDescriptionWrap"];
25
25
 
26
26
  /**
27
27
  * __Button item__
@@ -49,7 +49,7 @@ function (props, ref) {
49
49
  onMouseDown = props.onMouseDown,
50
50
  shouldTitleWrap = props.shouldTitleWrap,
51
51
  shouldDescriptionWrap = props.shouldDescriptionWrap,
52
- rest = (0, _objectWithoutProperties2.default)(props, ["children", "cssFn", "description", "iconAfter", "iconBefore", "isDisabled", "isSelected", "onClick", "testId", "overrides", "onMouseDown", "shouldTitleWrap", "shouldDescriptionWrap"]);
52
+ rest = (0, _objectWithoutProperties2.default)(props, _excluded);
53
53
  var onMouseDownHandler = (0, _useBlurOnMouseDown.useBlurOnMouseDown)(onMouseDown);
54
54
 
55
55
  if (!children) {
@@ -21,7 +21,8 @@ var _menuItemPrimitive = _interopRequireDefault(require("../internal/components/
21
21
 
22
22
  var _useBlurOnMouseDown = require("../internal/hooks/use-blur-on-mouse-down");
23
23
 
24
- /** @jsx jsx */
24
+ var _excluded = ["component", "cssFn", "isDisabled", "isSelected", "onClick", "testId", "children", "description", "iconAfter", "iconBefore", "overrides", "onMouseDown", "shouldTitleWrap", "shouldDescriptionWrap"];
25
+
25
26
  var preventEvent = function preventEvent(e) {
26
27
  e.preventDefault();
27
28
  }; // Dirty hack to get generics working with forward ref [1/2]
@@ -53,7 +54,7 @@ var CustomItem = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardR
53
54
  onMouseDown = _ref.onMouseDown,
54
55
  shouldTitleWrap = _ref.shouldTitleWrap,
55
56
  shouldDescriptionWrap = _ref.shouldDescriptionWrap,
56
- rest = (0, _objectWithoutProperties2.default)(_ref, ["component", "cssFn", "isDisabled", "isSelected", "onClick", "testId", "children", "description", "iconAfter", "iconBefore", "overrides", "onMouseDown", "shouldTitleWrap", "shouldDescriptionWrap"]);
57
+ rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
57
58
  var onMouseDownHandler = (0, _useBlurOnMouseDown.useBlurOnMouseDown)(onMouseDown);
58
59
 
59
60
  if (!Component) {
@@ -23,7 +23,7 @@ var _constants = require("@atlaskit/theme/constants");
23
23
 
24
24
  var _typography = require("@atlaskit/theme/typography");
25
25
 
26
- /** @jsx jsx */
26
+ var _excluded = ["children", "testId", "id", "cssFn"];
27
27
  var gridSize = (0, _constants.gridSize)();
28
28
  var itemSidePadding = gridSize * 2.5;
29
29
  var itemHeadingContentHeight = _typography.headingSizes.h100.lineHeight;
@@ -51,7 +51,7 @@ var HeadingItem = /*#__PURE__*/(0, _react.memo)(function (_ref) {
51
51
  id = _ref.id,
52
52
  _ref$cssFn = _ref.cssFn,
53
53
  cssFn = _ref$cssFn === void 0 ? _noop.default : _ref$cssFn,
54
- rest = (0, _objectWithoutProperties2.default)(_ref, ["children", "testId", "id", "cssFn"]);
54
+ rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
55
55
  return (0, _core.jsx)("div", (0, _extends2.default)({
56
56
  css: [headingStyles, // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
57
57
  cssFn(undefined)],
@@ -21,7 +21,8 @@ var _menuItemPrimitive = _interopRequireDefault(require("../internal/components/
21
21
 
22
22
  var _useBlurOnMouseDown = require("../internal/hooks/use-blur-on-mouse-down");
23
23
 
24
- /** @jsx jsx */
24
+ var _excluded = ["children", "href", "cssFn", "description", "iconAfter", "iconBefore", "isDisabled", "isSelected", "onClick", "testId", "overrides", "onMouseDown", "shouldTitleWrap", "shouldDescriptionWrap"];
25
+
25
26
  var preventEvent = function preventEvent(e) {
26
27
  e.preventDefault();
27
28
  };
@@ -54,7 +55,7 @@ function (props, ref) {
54
55
  onMouseDown = props.onMouseDown,
55
56
  shouldTitleWrap = props.shouldTitleWrap,
56
57
  shouldDescriptionWrap = props.shouldDescriptionWrap,
57
- rest = (0, _objectWithoutProperties2.default)(props, ["children", "href", "cssFn", "description", "iconAfter", "iconBefore", "isDisabled", "isSelected", "onClick", "testId", "overrides", "onMouseDown", "shouldTitleWrap", "shouldDescriptionWrap"]);
58
+ rest = (0, _objectWithoutProperties2.default)(props, _excluded);
58
59
  var onMouseDownHandler = (0, _useBlurOnMouseDown.useBlurOnMouseDown)(onMouseDown);
59
60
 
60
61
  if (!children) {
@@ -13,7 +13,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
13
13
 
14
14
  var _core = require("@emotion/core");
15
15
 
16
- /** @jsx jsx */
16
+ var _excluded = ["maxWidth", "minWidth", "minHeight", "maxHeight", "testId"];
17
17
  var groupStyles = (0, _core.css)({
18
18
  display: 'flex',
19
19
  flexDirection: 'column',
@@ -34,7 +34,7 @@ var MenuGroup = function MenuGroup(_ref) {
34
34
  minHeight = _ref.minHeight,
35
35
  maxHeight = _ref.maxHeight,
36
36
  testId = _ref.testId,
37
- rest = (0, _objectWithoutProperties2.default)(_ref, ["maxWidth", "minWidth", "minHeight", "maxHeight", "testId"]);
37
+ rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
38
38
  return (0, _core.jsx)("div", (0, _extends2.default)({
39
39
  style: {
40
40
  minWidth: minWidth,
@@ -15,7 +15,7 @@ var _core = require("@emotion/core");
15
15
 
16
16
  var _menuGroup = _interopRequireDefault(require("./menu-group"));
17
17
 
18
- /** @jsx jsx */
18
+ var _excluded = ["maxWidth", "minWidth"];
19
19
 
20
20
  /**
21
21
  * @deprecated
@@ -25,7 +25,7 @@ var PopupMenuGroup = function PopupMenuGroup(_ref) {
25
25
  maxWidth = _ref$maxWidth === void 0 ? 800 : _ref$maxWidth,
26
26
  _ref$minWidth = _ref.minWidth,
27
27
  minWidth = _ref$minWidth === void 0 ? 320 : _ref$minWidth,
28
- rest = (0, _objectWithoutProperties2.default)(_ref, ["maxWidth", "minWidth"]);
28
+ rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
29
29
  return (0, _core.jsx)(_menuGroup.default, (0, _extends2.default)({
30
30
  maxWidth: maxWidth,
31
31
  minWidth: minWidth
@@ -23,7 +23,7 @@ var _typography = require("@atlaskit/theme/typography");
23
23
 
24
24
  var _headingItem = _interopRequireDefault(require("../menu-item/heading-item"));
25
25
 
26
- /** @jsx jsx */
26
+ var _excluded = ["children", "overrides", "title", "testId", "isScrollable", "hasSeparator", "id"];
27
27
  var gridSize = (0, _constants.gridSize)();
28
28
  var itemHeadingTopMargin = gridSize * 2.5;
29
29
  var itemHeadingBottomMargin = gridSize * 0.75; // Skeleton content is slightly shorter than the real content.
@@ -102,7 +102,7 @@ var Section = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
102
102
  isScrollable = _ref.isScrollable,
103
103
  hasSeparator = _ref.hasSeparator,
104
104
  id = _ref.id,
105
- rest = (0, _objectWithoutProperties2.default)(_ref, ["children", "overrides", "title", "testId", "isScrollable", "hasSeparator", "id"]);
105
+ rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
106
106
  var childrenMarkup = title !== undefined ? (0, _core.jsx)(_react.Fragment, null, (0, _core.jsx)(_headingItem.default // eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
107
107
  , {
108
108
  cssFn: overrides && overrides.HeadingItem && overrides.HeadingItem.cssFn,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/menu",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/menu",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["children", "cssFn", "description", "iconAfter", "iconBefore", "isDisabled", "isSelected", "onClick", "testId", "overrides", "onMouseDown", "shouldTitleWrap", "shouldDescriptionWrap"];
3
4
 
4
5
  /** @jsx jsx */
5
6
  import { forwardRef, memo } from 'react';
@@ -34,7 +35,7 @@ function (props, ref) {
34
35
  onMouseDown = props.onMouseDown,
35
36
  shouldTitleWrap = props.shouldTitleWrap,
36
37
  shouldDescriptionWrap = props.shouldDescriptionWrap,
37
- rest = _objectWithoutProperties(props, ["children", "cssFn", "description", "iconAfter", "iconBefore", "isDisabled", "isSelected", "onClick", "testId", "overrides", "onMouseDown", "shouldTitleWrap", "shouldDescriptionWrap"]);
38
+ rest = _objectWithoutProperties(props, _excluded);
38
39
 
39
40
  var onMouseDownHandler = useBlurOnMouseDown(onMouseDown);
40
41
 
@@ -1,5 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["component", "cssFn", "isDisabled", "isSelected", "onClick", "testId", "children", "description", "iconAfter", "iconBefore", "overrides", "onMouseDown", "shouldTitleWrap", "shouldDescriptionWrap"];
3
4
 
4
5
  /** @jsx jsx */
5
6
  import { forwardRef, memo } from 'react';
@@ -39,7 +40,7 @@ var CustomItem = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (_ref, ref)
39
40
  onMouseDown = _ref.onMouseDown,
40
41
  shouldTitleWrap = _ref.shouldTitleWrap,
41
42
  shouldDescriptionWrap = _ref.shouldDescriptionWrap,
42
- rest = _objectWithoutProperties(_ref, ["component", "cssFn", "isDisabled", "isSelected", "onClick", "testId", "children", "description", "iconAfter", "iconBefore", "overrides", "onMouseDown", "shouldTitleWrap", "shouldDescriptionWrap"]);
43
+ rest = _objectWithoutProperties(_ref, _excluded);
43
44
 
44
45
  var onMouseDownHandler = useBlurOnMouseDown(onMouseDown);
45
46
 
@@ -1,5 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["children", "testId", "id", "cssFn"];
3
4
 
4
5
  /** @jsx jsx */
5
6
  import { memo } from 'react';
@@ -35,7 +36,7 @@ var HeadingItem = /*#__PURE__*/memo(function (_ref) {
35
36
  id = _ref.id,
36
37
  _ref$cssFn = _ref.cssFn,
37
38
  cssFn = _ref$cssFn === void 0 ? noop : _ref$cssFn,
38
- rest = _objectWithoutProperties(_ref, ["children", "testId", "id", "cssFn"]);
39
+ rest = _objectWithoutProperties(_ref, _excluded);
39
40
 
40
41
  return jsx("div", _extends({
41
42
  css: [headingStyles, // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
@@ -1,5 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["children", "href", "cssFn", "description", "iconAfter", "iconBefore", "isDisabled", "isSelected", "onClick", "testId", "overrides", "onMouseDown", "shouldTitleWrap", "shouldDescriptionWrap"];
3
4
 
4
5
  /** @jsx jsx */
5
6
  import { forwardRef, memo } from 'react';
@@ -40,7 +41,7 @@ function (props, ref) {
40
41
  onMouseDown = props.onMouseDown,
41
42
  shouldTitleWrap = props.shouldTitleWrap,
42
43
  shouldDescriptionWrap = props.shouldDescriptionWrap,
43
- rest = _objectWithoutProperties(props, ["children", "href", "cssFn", "description", "iconAfter", "iconBefore", "isDisabled", "isSelected", "onClick", "testId", "overrides", "onMouseDown", "shouldTitleWrap", "shouldDescriptionWrap"]);
44
+ rest = _objectWithoutProperties(props, _excluded);
44
45
 
45
46
  var onMouseDownHandler = useBlurOnMouseDown(onMouseDown);
46
47
 
@@ -1,5 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["maxWidth", "minWidth", "minHeight", "maxHeight", "testId"];
3
4
 
4
5
  /** @jsx jsx */
5
6
  import { css, jsx } from '@emotion/core';
@@ -23,7 +24,7 @@ var MenuGroup = function MenuGroup(_ref) {
23
24
  minHeight = _ref.minHeight,
24
25
  maxHeight = _ref.maxHeight,
25
26
  testId = _ref.testId,
26
- rest = _objectWithoutProperties(_ref, ["maxWidth", "minWidth", "minHeight", "maxHeight", "testId"]);
27
+ rest = _objectWithoutProperties(_ref, _excluded);
27
28
 
28
29
  return jsx("div", _extends({
29
30
  style: {
@@ -1,5 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["maxWidth", "minWidth"];
3
4
 
4
5
  /** @jsx jsx */
5
6
  import { jsx } from '@emotion/core';
@@ -13,7 +14,7 @@ var PopupMenuGroup = function PopupMenuGroup(_ref) {
13
14
  maxWidth = _ref$maxWidth === void 0 ? 800 : _ref$maxWidth,
14
15
  _ref$minWidth = _ref.minWidth,
15
16
  minWidth = _ref$minWidth === void 0 ? 320 : _ref$minWidth,
16
- rest = _objectWithoutProperties(_ref, ["maxWidth", "minWidth"]);
17
+ rest = _objectWithoutProperties(_ref, _excluded);
17
18
 
18
19
  return jsx(MenuGroup, _extends({
19
20
  maxWidth: maxWidth,
@@ -1,5 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["children", "overrides", "title", "testId", "isScrollable", "hasSeparator", "id"];
3
4
 
4
5
  /** @jsx jsx */
5
6
  import { forwardRef, Fragment } from 'react';
@@ -86,7 +87,7 @@ var Section = /*#__PURE__*/forwardRef(function (_ref, ref) {
86
87
  isScrollable = _ref.isScrollable,
87
88
  hasSeparator = _ref.hasSeparator,
88
89
  id = _ref.id,
89
- rest = _objectWithoutProperties(_ref, ["children", "overrides", "title", "testId", "isScrollable", "hasSeparator", "id"]);
90
+ rest = _objectWithoutProperties(_ref, _excluded);
90
91
 
91
92
  var childrenMarkup = title !== undefined ? jsx(Fragment, null, jsx(HeadingItem // eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
92
93
  , {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/menu",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "sideEffects": false
5
5
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { MenuItemPrimitiveProps } from '../../types';
2
3
  /**
3
4
  * __Menu item primitive__
@@ -1,4 +1,5 @@
1
1
  /** @jsx jsx */
2
+ /// <reference types="react" />
2
3
  import type { CustomItemComponentProps, CustomItemProps } from '../types';
3
4
  interface CustomItemTypeGenericHackProps {
4
5
  <TComponentProps>(props: CustomItemProps<TComponentProps> & {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { SkeletonHeadingItemProps } from '../types';
2
3
  /**
3
4
  * __Skeleton heading item__
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { SkeletonItemProps } from '../types';
2
3
  /**
3
4
  * __Skeleton item__
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { MenuGroupProps } from '../types';
2
3
  /**
3
4
  * __Menu group__
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { MenuGroupProps } from '../types';
2
3
  /**
3
4
  * @deprecated
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/menu",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "A collection of composable menu components that can be used anywhere.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -16,7 +16,6 @@
16
16
  "atlaskit:src": "src/index.tsx",
17
17
  "atlassian": {
18
18
  "team": "Design System Team",
19
- "inPublicMirror": true,
20
19
  "releaseModel": "scheduled",
21
20
  "website": {
22
21
  "name": "Menu"
@@ -38,8 +37,8 @@
38
37
  "dependencies": {
39
38
  "@atlaskit/ds-lib": "^1.2.0",
40
39
  "@atlaskit/focus-ring": "^0.2.4",
41
- "@atlaskit/theme": "^12.0.0",
42
- "@atlaskit/tokens": "^0.4.0",
40
+ "@atlaskit/theme": "^12.1.0",
41
+ "@atlaskit/tokens": "^0.5.0",
43
42
  "@babel/runtime": "^7.0.0",
44
43
  "@emotion/core": "^10.0.9"
45
44
  },
@@ -51,7 +50,7 @@
51
50
  "@atlaskit/avatar": "^20.5.0",
52
51
  "@atlaskit/button": "^16.0.0",
53
52
  "@atlaskit/docs": "*",
54
- "@atlaskit/icon": "^21.9.0",
53
+ "@atlaskit/icon": "^21.10.0",
55
54
  "@atlaskit/icon-file-type": "^6.0.0",
56
55
  "@atlaskit/icon-object": "^6.0.0",
57
56
  "@atlaskit/section-message": "^6.0.0",