@atlaskit/menu 1.4.8 → 1.4.10
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 +12 -0
- package/dist/cjs/menu-item/heading-item.js +1 -4
- package/dist/cjs/menu-item/skeleton-item.js +4 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/menu-item/heading-item.js +1 -4
- package/dist/es2019/menu-item/skeleton-item.js +4 -2
- package/dist/es2019/menu-section/section.js +1 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/menu-item/heading-item.js +1 -4
- package/dist/esm/menu-item/skeleton-item.js +4 -2
- package/dist/esm/menu-section/section.js +1 -0
- package/dist/esm/version.json +1 -1
- package/package.json +6 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/menu
|
|
2
2
|
|
|
3
|
+
## 1.4.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`63c2f0b3f96`](https://bitbucket.org/atlassian/atlassian-frontend/commits/63c2f0b3f96) - Internal changes to use spacing tokens. There is no expected behaviour or visual change.
|
|
8
|
+
|
|
9
|
+
## 1.4.9
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 1.4.8
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -11,15 +11,12 @@ var _react = require("react");
|
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
12
|
var _noop = _interopRequireDefault(require("@atlaskit/ds-lib/noop"));
|
|
13
13
|
var _colors = require("@atlaskit/theme/colors");
|
|
14
|
-
var _constants = require("@atlaskit/theme/constants");
|
|
15
14
|
var _typography = require("@atlaskit/theme/typography");
|
|
16
15
|
var _excluded = ["children", "testId", "id", "cssFn"];
|
|
17
|
-
var gridSize = (0, _constants.gridSize)();
|
|
18
|
-
var itemSidePadding = gridSize * 2.5;
|
|
19
16
|
var itemHeadingContentHeight = _typography.headingSizes.h100.lineHeight;
|
|
20
17
|
var itemHeadingFontSize = _typography.headingSizes.h100.size;
|
|
21
18
|
var headingStyles = (0, _react2.css)({
|
|
22
|
-
padding: "0 ".concat(
|
|
19
|
+
padding: "0 ".concat("var(--ds-space-250, 20px)"),
|
|
23
20
|
color: "var(--ds-text-subtle, ".concat(_colors.N300, ")"),
|
|
24
21
|
fontSize: itemHeadingFontSize,
|
|
25
22
|
fontWeight: "var(--ds-font-weight-bold, 700)",
|
|
@@ -17,7 +17,6 @@ var borderRadius = (0, _constants.borderRadius)();
|
|
|
17
17
|
var itemElemSpacing = gridSize * 1.5;
|
|
18
18
|
var itemExpectedElemSize = gridSize * 3;
|
|
19
19
|
var itemMinHeight = gridSize * 5;
|
|
20
|
-
var itemPadding = gridSize * 2.5;
|
|
21
20
|
var skeletonItemElemSize = gridSize * 2.5;
|
|
22
21
|
var itemElemSkeletonOffset = (itemExpectedElemSize - skeletonItemElemSize) / 2;
|
|
23
22
|
var skeletonTextBorderRadius = 100;
|
|
@@ -26,7 +25,7 @@ var skeletonColor = "var(--ds-skeleton, ".concat(_colors.N20A, ")");
|
|
|
26
25
|
var skeletonStyles = (0, _react.css)({
|
|
27
26
|
display: 'flex',
|
|
28
27
|
minHeight: itemMinHeight,
|
|
29
|
-
padding: "0 ".concat(
|
|
28
|
+
padding: "0 ".concat("var(--ds-space-250, 20px)"),
|
|
30
29
|
alignItems: 'center',
|
|
31
30
|
pointerEvents: 'none',
|
|
32
31
|
'::after': {
|
|
@@ -34,6 +33,7 @@ var skeletonStyles = (0, _react.css)({
|
|
|
34
33
|
// This is a little bespoke but we need to push everything down 1px
|
|
35
34
|
// because the skeleton content should align to the bottom of the text.
|
|
36
35
|
// Confirm VR test failures before accepting a change.
|
|
36
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
37
37
|
marginTop: 1,
|
|
38
38
|
backgroundColor: skeletonColor,
|
|
39
39
|
borderRadius: skeletonTextBorderRadius,
|
|
@@ -69,7 +69,9 @@ var beforeElementStyles = (0, _react.css)({
|
|
|
69
69
|
'::before': {
|
|
70
70
|
width: skeletonItemElemSize,
|
|
71
71
|
height: skeletonItemElemSize,
|
|
72
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
72
73
|
marginRight: itemElemSpacing + itemElemSkeletonOffset,
|
|
74
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
73
75
|
marginLeft: itemElemSkeletonOffset,
|
|
74
76
|
flexShrink: 0,
|
|
75
77
|
backgroundColor: skeletonColor,
|
package/dist/cjs/version.json
CHANGED
|
@@ -4,14 +4,11 @@ import { memo } from 'react';
|
|
|
4
4
|
import { css, jsx } from '@emotion/react';
|
|
5
5
|
import noop from '@atlaskit/ds-lib/noop';
|
|
6
6
|
import { N300 } from '@atlaskit/theme/colors';
|
|
7
|
-
import { gridSize as gridSizeFn } from '@atlaskit/theme/constants';
|
|
8
7
|
import { headingSizes } from '@atlaskit/theme/typography';
|
|
9
|
-
const gridSize = gridSizeFn();
|
|
10
|
-
const itemSidePadding = gridSize * 2.5;
|
|
11
8
|
const itemHeadingContentHeight = headingSizes.h100.lineHeight;
|
|
12
9
|
const itemHeadingFontSize = headingSizes.h100.size;
|
|
13
10
|
const headingStyles = css({
|
|
14
|
-
padding: `0 ${
|
|
11
|
+
padding: `0 ${"var(--ds-space-250, 20px)"}`,
|
|
15
12
|
color: `var(--ds-text-subtle, ${N300})`,
|
|
16
13
|
fontSize: itemHeadingFontSize,
|
|
17
14
|
fontWeight: "var(--ds-font-weight-bold, 700)",
|
|
@@ -10,7 +10,6 @@ const borderRadius = borderRadiusFn();
|
|
|
10
10
|
const itemElemSpacing = gridSize * 1.5;
|
|
11
11
|
const itemExpectedElemSize = gridSize * 3;
|
|
12
12
|
const itemMinHeight = gridSize * 5;
|
|
13
|
-
const itemPadding = gridSize * 2.5;
|
|
14
13
|
const skeletonItemElemSize = gridSize * 2.5;
|
|
15
14
|
const itemElemSkeletonOffset = (itemExpectedElemSize - skeletonItemElemSize) / 2;
|
|
16
15
|
const skeletonTextBorderRadius = 100;
|
|
@@ -19,7 +18,7 @@ const skeletonColor = `var(--ds-skeleton, ${N20A})`;
|
|
|
19
18
|
const skeletonStyles = css({
|
|
20
19
|
display: 'flex',
|
|
21
20
|
minHeight: itemMinHeight,
|
|
22
|
-
padding: `0 ${
|
|
21
|
+
padding: `0 ${"var(--ds-space-250, 20px)"}`,
|
|
23
22
|
alignItems: 'center',
|
|
24
23
|
pointerEvents: 'none',
|
|
25
24
|
'::after': {
|
|
@@ -27,6 +26,7 @@ const skeletonStyles = css({
|
|
|
27
26
|
// This is a little bespoke but we need to push everything down 1px
|
|
28
27
|
// because the skeleton content should align to the bottom of the text.
|
|
29
28
|
// Confirm VR test failures before accepting a change.
|
|
29
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
30
30
|
marginTop: 1,
|
|
31
31
|
backgroundColor: skeletonColor,
|
|
32
32
|
borderRadius: skeletonTextBorderRadius,
|
|
@@ -62,7 +62,9 @@ const beforeElementStyles = css({
|
|
|
62
62
|
'::before': {
|
|
63
63
|
width: skeletonItemElemSize,
|
|
64
64
|
height: skeletonItemElemSize,
|
|
65
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
65
66
|
marginRight: itemElemSpacing + itemElemSkeletonOffset,
|
|
67
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
66
68
|
marginLeft: itemElemSkeletonOffset,
|
|
67
69
|
flexShrink: 0,
|
|
68
70
|
backgroundColor: skeletonColor,
|
package/dist/es2019/version.json
CHANGED
|
@@ -6,14 +6,11 @@ import { memo } from 'react';
|
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
7
|
import noop from '@atlaskit/ds-lib/noop';
|
|
8
8
|
import { N300 } from '@atlaskit/theme/colors';
|
|
9
|
-
import { gridSize as gridSizeFn } from '@atlaskit/theme/constants';
|
|
10
9
|
import { headingSizes } from '@atlaskit/theme/typography';
|
|
11
|
-
var gridSize = gridSizeFn();
|
|
12
|
-
var itemSidePadding = gridSize * 2.5;
|
|
13
10
|
var itemHeadingContentHeight = headingSizes.h100.lineHeight;
|
|
14
11
|
var itemHeadingFontSize = headingSizes.h100.size;
|
|
15
12
|
var headingStyles = css({
|
|
16
|
-
padding: "0 ".concat(
|
|
13
|
+
padding: "0 ".concat("var(--ds-space-250, 20px)"),
|
|
17
14
|
color: "var(--ds-text-subtle, ".concat(N300, ")"),
|
|
18
15
|
fontSize: itemHeadingFontSize,
|
|
19
16
|
fontWeight: "var(--ds-font-weight-bold, 700)",
|
|
@@ -10,7 +10,6 @@ var borderRadius = borderRadiusFn();
|
|
|
10
10
|
var itemElemSpacing = gridSize * 1.5;
|
|
11
11
|
var itemExpectedElemSize = gridSize * 3;
|
|
12
12
|
var itemMinHeight = gridSize * 5;
|
|
13
|
-
var itemPadding = gridSize * 2.5;
|
|
14
13
|
var skeletonItemElemSize = gridSize * 2.5;
|
|
15
14
|
var itemElemSkeletonOffset = (itemExpectedElemSize - skeletonItemElemSize) / 2;
|
|
16
15
|
var skeletonTextBorderRadius = 100;
|
|
@@ -19,7 +18,7 @@ var skeletonColor = "var(--ds-skeleton, ".concat(N20A, ")");
|
|
|
19
18
|
var skeletonStyles = css({
|
|
20
19
|
display: 'flex',
|
|
21
20
|
minHeight: itemMinHeight,
|
|
22
|
-
padding: "0 ".concat(
|
|
21
|
+
padding: "0 ".concat("var(--ds-space-250, 20px)"),
|
|
23
22
|
alignItems: 'center',
|
|
24
23
|
pointerEvents: 'none',
|
|
25
24
|
'::after': {
|
|
@@ -27,6 +26,7 @@ var skeletonStyles = css({
|
|
|
27
26
|
// This is a little bespoke but we need to push everything down 1px
|
|
28
27
|
// because the skeleton content should align to the bottom of the text.
|
|
29
28
|
// Confirm VR test failures before accepting a change.
|
|
29
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
30
30
|
marginTop: 1,
|
|
31
31
|
backgroundColor: skeletonColor,
|
|
32
32
|
borderRadius: skeletonTextBorderRadius,
|
|
@@ -62,7 +62,9 @@ var beforeElementStyles = css({
|
|
|
62
62
|
'::before': {
|
|
63
63
|
width: skeletonItemElemSize,
|
|
64
64
|
height: skeletonItemElemSize,
|
|
65
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
65
66
|
marginRight: itemElemSpacing + itemElemSkeletonOffset,
|
|
67
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
66
68
|
marginLeft: itemElemSkeletonOffset,
|
|
67
69
|
flexShrink: 0,
|
|
68
70
|
backgroundColor: skeletonColor,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["children", "overrides", "title", "testId", "isScrollable", "hasSeparator", "id"];
|
|
4
|
+
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage-spacing */
|
|
4
5
|
/** @jsx jsx */
|
|
5
6
|
import { forwardRef, Fragment } from 'react';
|
|
6
7
|
import { css, jsx } from '@emotion/react';
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/menu",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.10",
|
|
4
4
|
"description": "A collection of composable menu components that can be used anywhere.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@atlaskit/ds-lib": "^2.1.0",
|
|
42
42
|
"@atlaskit/focus-ring": "^1.2.0",
|
|
43
43
|
"@atlaskit/theme": "^12.2.0",
|
|
44
|
-
"@atlaskit/tokens": "^
|
|
44
|
+
"@atlaskit/tokens": "^1.1.0",
|
|
45
45
|
"@babel/runtime": "^7.0.0",
|
|
46
46
|
"@emotion/react": "^11.7.1"
|
|
47
47
|
},
|
|
@@ -90,8 +90,10 @@
|
|
|
90
90
|
"emotion"
|
|
91
91
|
],
|
|
92
92
|
"analytics": "analytics-next",
|
|
93
|
-
"design-tokens":
|
|
94
|
-
|
|
93
|
+
"design-tokens": [
|
|
94
|
+
"color",
|
|
95
|
+
"spacing"
|
|
96
|
+
],
|
|
95
97
|
"deprecation": "no-deprecated-imports"
|
|
96
98
|
}
|
|
97
99
|
},
|