@atlaskit/dropdown-menu 16.3.5 → 16.3.7

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,20 @@
1
1
  # @atlaskit/dropdown-menu
2
2
 
3
+ ## 16.3.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`de6195f7484ce`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/de6195f7484ce) -
8
+ Update prop descriptions to reduce confusion
9
+ - Updated dependencies
10
+
11
+ ## 16.3.6
12
+
13
+ ### Patch Changes
14
+
15
+ - [`20a5aa8c4e7a0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/20a5aa8c4e7a0) -
16
+ Removed gridSize import. No visual changes.
17
+
3
18
  ## 16.3.5
4
19
 
5
20
  ### Patch Changes
@@ -30,8 +30,7 @@ var _excluded = ["ref", "aria-controls", "aria-expanded", "aria-haspopup"]; // e
30
30
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
31
31
  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; }
32
32
  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) { (0, _defineProperty2.default)(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; }
33
- var gridSize = (0, _constants.gridSize)();
34
- var MAX_HEIGHT = "calc(100vh - ".concat(gridSize * 2, "px)");
33
+ var MAX_HEIGHT = "calc(100vh - 16px)";
35
34
  var opposites = {
36
35
  top: 'bottom',
37
36
  bottom: 'top',
@@ -10,14 +10,13 @@ import useFocus from '@atlaskit/ds-lib/use-focus-event';
10
10
  import ExpandIcon from '@atlaskit/icon/core/migration/chevron-down';
11
11
  import Popup from '@atlaskit/popup';
12
12
  // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
13
- import { gridSize as gridSizeFn, layers } from '@atlaskit/theme/constants';
13
+ import { layers } from '@atlaskit/theme/constants';
14
14
  import FocusManager from './internal/components/focus-manager';
15
15
  import MenuWrapper from './internal/components/menu-wrapper';
16
16
  import SelectionStore from './internal/context/selection-store';
17
17
  import useRegisterItemWithFocusManager from './internal/hooks/use-register-item-with-focus-manager';
18
18
  import useGeneratedId, { PREFIX } from './internal/utils/use-generated-id';
19
- const gridSize = gridSizeFn();
20
- const MAX_HEIGHT = `calc(100vh - ${gridSize * 2}px)`;
19
+ const MAX_HEIGHT = `calc(100vh - 16px)`;
21
20
  const opposites = {
22
21
  top: 'bottom',
23
22
  bottom: 'top',
@@ -16,14 +16,13 @@ import useFocus from '@atlaskit/ds-lib/use-focus-event';
16
16
  import ExpandIcon from '@atlaskit/icon/core/migration/chevron-down';
17
17
  import Popup from '@atlaskit/popup';
18
18
  // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
19
- import { gridSize as gridSizeFn, layers } from '@atlaskit/theme/constants';
19
+ import { layers } from '@atlaskit/theme/constants';
20
20
  import FocusManager from './internal/components/focus-manager';
21
21
  import MenuWrapper from './internal/components/menu-wrapper';
22
22
  import SelectionStore from './internal/context/selection-store';
23
23
  import useRegisterItemWithFocusManager from './internal/hooks/use-register-item-with-focus-manager';
24
24
  import useGeneratedId, { PREFIX } from './internal/utils/use-generated-id';
25
- var gridSize = gridSizeFn();
26
- var MAX_HEIGHT = "calc(100vh - ".concat(gridSize * 2, "px)");
25
+ var MAX_HEIGHT = "calc(100vh - 16px)";
27
26
  var opposites = {
28
27
  top: 'bottom',
29
28
  bottom: 'top',
@@ -117,9 +117,9 @@ interface InternalDropdownMenuProps<TriggerElement extends HTMLElement = any> {
117
117
  */
118
118
  shouldFlip?: boolean;
119
119
  /**
120
- * The root element where the dropdown menu content should be rendered.
121
- * `true` renders the dropdown menu in the DOM node closest to the trigger and avoids focus trap with tab keys.
122
- * `false` renders the dropdown menu in React.Portal.
120
+ * Controls whether the popup is rendered inline within its parent component or in a portal at the document root.
121
+ * `true` renders the dropdown menu in the DOM node closest to the trigger; focus is not trapped inside the element.
122
+ * `false` renders the dropdown menu in React.Portal and focus is trapped inside the element.
123
123
  * Defaults to `false`.
124
124
  */
125
125
  shouldRenderToParent?: boolean;
@@ -117,9 +117,9 @@ interface InternalDropdownMenuProps<TriggerElement extends HTMLElement = any> {
117
117
  */
118
118
  shouldFlip?: boolean;
119
119
  /**
120
- * The root element where the dropdown menu content should be rendered.
121
- * `true` renders the dropdown menu in the DOM node closest to the trigger and avoids focus trap with tab keys.
122
- * `false` renders the dropdown menu in React.Portal.
120
+ * Controls whether the popup is rendered inline within its parent component or in a portal at the document root.
121
+ * `true` renders the dropdown menu in the DOM node closest to the trigger; focus is not trapped inside the element.
122
+ * `false` renders the dropdown menu in React.Portal and focus is trapped inside the element.
123
123
  * Defaults to `false`.
124
124
  */
125
125
  shouldRenderToParent?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/dropdown-menu",
3
- "version": "16.3.5",
3
+ "version": "16.3.7",
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/"