@atlaskit/menu 2.13.4 → 2.13.6

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,19 @@
1
1
  # @atlaskit/menu
2
2
 
3
+ ## 2.13.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#167504](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/167504)
8
+ [`3aef43e98843a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3aef43e98843a) -
9
+ Internal change to how styles are applied. There is no expected visual change.
10
+
11
+ ## 2.13.5
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 2.13.4
4
18
 
5
19
  ### Patch Changes
@@ -11,8 +11,6 @@ var _react = require("react");
11
11
  var _react2 = require("@emotion/react");
12
12
  var _deprecationWarning = require("@atlaskit/ds-lib/deprecation-warning");
13
13
  var _colors = require("@atlaskit/theme/colors");
14
- var _constants = require("@atlaskit/theme/constants");
15
- var _typography = require("@atlaskit/theme/typography");
16
14
  var _headingItem = _interopRequireDefault(require("../menu-item/heading-item"));
17
15
  var _excluded = ["children", "overrides", "title", "titleId", "testId", "isScrollable", "hasSeparator", "id", "isList", "className"];
18
16
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview */
@@ -21,14 +19,13 @@ var _excluded = ["children", "overrides", "title", "titleId", "testId", "isScrol
21
19
  * @jsx jsx
22
20
  */
23
21
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
24
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
25
- var gridSize = (0, _constants.gridSize)();
22
+ var gridSize = 8;
26
23
  var itemHeadingTopMargin = gridSize * 2.5;
27
24
  var itemHeadingBottomMargin = gridSize * 0.75;
28
25
  // Skeleton content is slightly shorter than the real content.
29
26
  // Because of that we slightly increase the top margin to offset this so the
30
27
  // containing size both real and skeleton always equal approx 30px.
31
- var itemHeadingContentHeight = _typography.headingSizes.h100.lineHeight;
28
+ var itemHeadingContentHeight = 16; // Originally headingSizes.h100.lineHeight from '@atlaskit/theme/typography'
32
29
  var skeletonHeadingHeight = gridSize;
33
30
  var skeletonHeadingMarginOffset = 3;
34
31
  var skeletonHeadingTopMargin = itemHeadingTopMargin + (itemHeadingContentHeight - skeletonHeadingHeight) - skeletonHeadingMarginOffset;
@@ -10,17 +10,14 @@ import { Children, forwardRef, Fragment } from 'react';
10
10
  import { css, jsx } from '@emotion/react';
11
11
  import { propDeprecationWarning } from '@atlaskit/ds-lib/deprecation-warning';
12
12
  import { N30A } from '@atlaskit/theme/colors';
13
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
14
- import { gridSize as gridSizeFn } from '@atlaskit/theme/constants';
15
- import { headingSizes } from '@atlaskit/theme/typography';
16
13
  import HeadingItem from '../menu-item/heading-item';
17
- const gridSize = gridSizeFn();
14
+ const gridSize = 8;
18
15
  const itemHeadingTopMargin = gridSize * 2.5;
19
16
  const itemHeadingBottomMargin = gridSize * 0.75;
20
17
  // Skeleton content is slightly shorter than the real content.
21
18
  // Because of that we slightly increase the top margin to offset this so the
22
19
  // containing size both real and skeleton always equal approx 30px.
23
- const itemHeadingContentHeight = headingSizes.h100.lineHeight;
20
+ const itemHeadingContentHeight = 16; // Originally headingSizes.h100.lineHeight from '@atlaskit/theme/typography'
24
21
  const skeletonHeadingHeight = gridSize;
25
22
  const skeletonHeadingMarginOffset = 3;
26
23
  const skeletonHeadingTopMargin = itemHeadingTopMargin + (itemHeadingContentHeight - skeletonHeadingHeight) - skeletonHeadingMarginOffset;
@@ -12,17 +12,14 @@ import { Children, forwardRef, Fragment } from 'react';
12
12
  import { css, jsx } from '@emotion/react';
13
13
  import { propDeprecationWarning } from '@atlaskit/ds-lib/deprecation-warning';
14
14
  import { N30A } from '@atlaskit/theme/colors';
15
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
16
- import { gridSize as gridSizeFn } from '@atlaskit/theme/constants';
17
- import { headingSizes } from '@atlaskit/theme/typography';
18
15
  import HeadingItem from '../menu-item/heading-item';
19
- var gridSize = gridSizeFn();
16
+ var gridSize = 8;
20
17
  var itemHeadingTopMargin = gridSize * 2.5;
21
18
  var itemHeadingBottomMargin = gridSize * 0.75;
22
19
  // Skeleton content is slightly shorter than the real content.
23
20
  // Because of that we slightly increase the top margin to offset this so the
24
21
  // containing size both real and skeleton always equal approx 30px.
25
- var itemHeadingContentHeight = headingSizes.h100.lineHeight;
22
+ var itemHeadingContentHeight = 16; // Originally headingSizes.h100.lineHeight from '@atlaskit/theme/typography'
26
23
  var skeletonHeadingHeight = gridSize;
27
24
  var skeletonHeadingMarginOffset = 3;
28
25
  var skeletonHeadingTopMargin = itemHeadingTopMargin + (itemHeadingContentHeight - skeletonHeadingHeight) - skeletonHeadingMarginOffset;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/menu",
3
- "version": "2.13.4",
3
+ "version": "2.13.6",
4
4
  "description": "A list of options to help users navigate, or perform actions.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -42,13 +42,13 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@atlaskit/app-provider": "^1.4.0",
45
- "@atlaskit/ds-lib": "^3.2.0",
46
- "@atlaskit/focus-ring": "^1.7.0",
45
+ "@atlaskit/ds-lib": "^3.3.0",
46
+ "@atlaskit/focus-ring": "^2.0.0",
47
47
  "@atlaskit/interaction-context": "^2.1.0",
48
48
  "@atlaskit/platform-feature-flags": "^0.3.0",
49
- "@atlaskit/primitives": "^13.2.0",
49
+ "@atlaskit/primitives": "^13.3.0",
50
50
  "@atlaskit/theme": "^14.0.0",
51
- "@atlaskit/tokens": "^2.3.0",
51
+ "@atlaskit/tokens": "^2.4.0",
52
52
  "@babel/runtime": "^7.0.0",
53
53
  "@emotion/react": "^11.7.1"
54
54
  },