@atlaskit/menu 1.9.4 → 1.9.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 +12 -0
- package/dist/cjs/internal/components/menu-item-primitive.js +0 -1
- package/dist/cjs/menu-section/section.js +4 -4
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/internal/components/menu-item-primitive.js +0 -1
- package/dist/es2019/menu-section/section.js +4 -4
- package/dist/es2019/version.json +1 -1
- package/dist/esm/internal/components/menu-item-primitive.js +0 -1
- package/dist/esm/menu-section/section.js +4 -4
- package/dist/esm/version.json +1 -1
- package/dist/types/types.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +1 -1
- package/package.json +28 -27
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/menu
|
|
2
2
|
|
|
3
|
+
## 1.9.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`71c51a488d7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/71c51a488d7) - Removes max-height constraint on compact density.
|
|
8
|
+
|
|
9
|
+
## 1.9.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`4ae083a7e66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ae083a7e66) - Use `@af/accessibility-testing` for default jest-axe config and jest-axe import in accessibility testing.
|
|
14
|
+
|
|
3
15
|
## 1.9.4
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -15,7 +15,7 @@ var _constants = require("@atlaskit/theme/constants");
|
|
|
15
15
|
var _typography = require("@atlaskit/theme/typography");
|
|
16
16
|
var _headingItem = _interopRequireDefault(require("../menu-item/heading-item"));
|
|
17
17
|
var _excluded = ["children", "overrides", "title", "testId", "isScrollable", "hasSeparator", "id", "isList"];
|
|
18
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
18
|
+
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview */
|
|
19
19
|
/** @jsx jsx */
|
|
20
20
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
21
21
|
var gridSize = (0, _constants.gridSize)();
|
|
@@ -38,7 +38,7 @@ var sectionStyles = (0, _react2.css)({
|
|
|
38
38
|
height: sectionPaddingTopBottom,
|
|
39
39
|
content: '""'
|
|
40
40
|
},
|
|
41
|
-
// eslint-disable-next-line @
|
|
41
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
42
42
|
'& [data-ds--menu--heading-item]': {
|
|
43
43
|
marginTop: itemHeadingTopMargin,
|
|
44
44
|
marginBottom: itemHeadingBottomMargin,
|
|
@@ -46,7 +46,7 @@ var sectionStyles = (0, _react2.css)({
|
|
|
46
46
|
marginTop: itemHeadingTopMargin - sectionPaddingTopBottom
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
|
-
// eslint-disable-next-line @
|
|
49
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
50
50
|
'& [data-ds--menu--skeleton-heading-item]': {
|
|
51
51
|
marginTop: skeletonHeadingTopMargin,
|
|
52
52
|
marginBottom: skeletonHeadingBottomMargin,
|
|
@@ -74,7 +74,7 @@ var separatorStyles = (0, _react2.css)({
|
|
|
74
74
|
});
|
|
75
75
|
var noSeparatorStyles = (0, _react2.css)({
|
|
76
76
|
// this is to ensure that adjacent sections without separators don't get additional margins.
|
|
77
|
-
// eslint-disable-next-line @
|
|
77
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
78
78
|
'[data-section] + &': {
|
|
79
79
|
marginTop: -6
|
|
80
80
|
}
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
2
|
+
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview */
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { Children, forwardRef, Fragment } from 'react';
|
|
5
5
|
import { css, jsx } from '@emotion/react';
|
|
@@ -29,7 +29,7 @@ const sectionStyles = css({
|
|
|
29
29
|
height: sectionPaddingTopBottom,
|
|
30
30
|
content: '""'
|
|
31
31
|
},
|
|
32
|
-
// eslint-disable-next-line @
|
|
32
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
33
33
|
'& [data-ds--menu--heading-item]': {
|
|
34
34
|
marginTop: itemHeadingTopMargin,
|
|
35
35
|
marginBottom: itemHeadingBottomMargin,
|
|
@@ -37,7 +37,7 @@ const sectionStyles = css({
|
|
|
37
37
|
marginTop: itemHeadingTopMargin - sectionPaddingTopBottom
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
|
-
// eslint-disable-next-line @
|
|
40
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
41
41
|
'& [data-ds--menu--skeleton-heading-item]': {
|
|
42
42
|
marginTop: skeletonHeadingTopMargin,
|
|
43
43
|
marginBottom: skeletonHeadingBottomMargin,
|
|
@@ -65,7 +65,7 @@ const separatorStyles = css({
|
|
|
65
65
|
});
|
|
66
66
|
const noSeparatorStyles = css({
|
|
67
67
|
// this is to ensure that adjacent sections without separators don't get additional margins.
|
|
68
|
-
// eslint-disable-next-line @
|
|
68
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
69
69
|
'[data-section] + &': {
|
|
70
70
|
marginTop: -6
|
|
71
71
|
}
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,7 +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", "isList"];
|
|
4
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
4
|
+
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview */
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import { Children, forwardRef, Fragment } from 'react';
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
@@ -31,7 +31,7 @@ var sectionStyles = css({
|
|
|
31
31
|
height: sectionPaddingTopBottom,
|
|
32
32
|
content: '""'
|
|
33
33
|
},
|
|
34
|
-
// eslint-disable-next-line @
|
|
34
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
35
35
|
'& [data-ds--menu--heading-item]': {
|
|
36
36
|
marginTop: itemHeadingTopMargin,
|
|
37
37
|
marginBottom: itemHeadingBottomMargin,
|
|
@@ -39,7 +39,7 @@ var sectionStyles = css({
|
|
|
39
39
|
marginTop: itemHeadingTopMargin - sectionPaddingTopBottom
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
|
-
// eslint-disable-next-line @
|
|
42
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
43
43
|
'& [data-ds--menu--skeleton-heading-item]': {
|
|
44
44
|
marginTop: skeletonHeadingTopMargin,
|
|
45
45
|
marginBottom: skeletonHeadingBottomMargin,
|
|
@@ -67,7 +67,7 @@ var separatorStyles = css({
|
|
|
67
67
|
});
|
|
68
68
|
var noSeparatorStyles = css({
|
|
69
69
|
// this is to ensure that adjacent sections without separators don't get additional margins.
|
|
70
|
-
// eslint-disable-next-line @
|
|
70
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
71
71
|
'[data-section] + &': {
|
|
72
72
|
marginTop: -6
|
|
73
73
|
}
|
package/dist/esm/version.json
CHANGED
package/dist/types/types.d.ts
CHANGED
|
@@ -111,7 +111,7 @@ export interface SectionProps {
|
|
|
111
111
|
*/
|
|
112
112
|
title?: string;
|
|
113
113
|
/**
|
|
114
|
-
*
|
|
114
|
+
* Adds `<ul>` and `<li>` tags around the items for better semantic markup in a list of items.
|
|
115
115
|
*/
|
|
116
116
|
isList?: boolean;
|
|
117
117
|
}
|
|
@@ -111,7 +111,7 @@ export interface SectionProps {
|
|
|
111
111
|
*/
|
|
112
112
|
title?: string;
|
|
113
113
|
/**
|
|
114
|
-
*
|
|
114
|
+
* Adds `<ul>` and `<li>` tags around the items for better semantic markup in a list of items.
|
|
115
115
|
*/
|
|
116
116
|
isList?: boolean;
|
|
117
117
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/menu",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.6",
|
|
4
4
|
"description": "A collection of composable menu components that can be used anywhere.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -12,40 +12,19 @@
|
|
|
12
12
|
"module": "dist/esm/index.js",
|
|
13
13
|
"module:es2019": "dist/es2019/index.js",
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
|
-
"typesVersions": {
|
|
16
|
-
">=4.5 <4.9": {
|
|
17
|
-
"*": [
|
|
18
|
-
"dist/types-ts4.5/*",
|
|
19
|
-
"dist/types-ts4.5/index.d.ts"
|
|
20
|
-
]
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
15
|
"sideEffects": false,
|
|
24
16
|
"atlaskit:src": "src/index.tsx",
|
|
25
17
|
"atlassian": {
|
|
26
|
-
"team": "Design System
|
|
27
|
-
"releaseModel": "continuous",
|
|
18
|
+
"team": "Design System Pyxis",
|
|
28
19
|
"productPushConsumption": [
|
|
29
20
|
"jira"
|
|
30
21
|
],
|
|
22
|
+
"releaseModel": "continuous",
|
|
31
23
|
"website": {
|
|
32
24
|
"name": "Menu",
|
|
33
25
|
"category": "Components"
|
|
34
26
|
}
|
|
35
27
|
},
|
|
36
|
-
"af:exports": {
|
|
37
|
-
"./button-item": "./src/entry-points/menu-item/button-item.tsx",
|
|
38
|
-
"./link-item": "./src/entry-points/menu-item/link-item.tsx",
|
|
39
|
-
"./custom-item": "./src/entry-points/menu-item/custom-item.tsx",
|
|
40
|
-
"./heading-item": "./src/entry-points/menu-item/heading-item.tsx",
|
|
41
|
-
"./skeleton-item": "./src/entry-points/menu-item/skeleton-item.tsx",
|
|
42
|
-
"./skeleton-heading-item": "./src/entry-points/menu-item/skeleton-heading-item.tsx",
|
|
43
|
-
"./section": "./src/entry-points/menu-section/section.tsx",
|
|
44
|
-
"./menu-group": "./src/entry-points/menu-section/menu-group.tsx",
|
|
45
|
-
"./popup-menu-group": "./src/entry-points/menu-section/popup-menu-group.tsx",
|
|
46
|
-
"./types": "./src/types.tsx",
|
|
47
|
-
".": "./src/index.tsx"
|
|
48
|
-
},
|
|
49
28
|
"dependencies": {
|
|
50
29
|
"@atlaskit/ds-explorations": "^2.2.0",
|
|
51
30
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
@@ -53,7 +32,7 @@
|
|
|
53
32
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
54
33
|
"@atlaskit/primitives": "^1.0.0",
|
|
55
34
|
"@atlaskit/theme": "^12.5.0",
|
|
56
|
-
"@atlaskit/tokens": "^1.
|
|
35
|
+
"@atlaskit/tokens": "^1.13.0",
|
|
57
36
|
"@babel/runtime": "^7.0.0",
|
|
58
37
|
"@emotion/react": "^11.7.1"
|
|
59
38
|
},
|
|
@@ -62,6 +41,8 @@
|
|
|
62
41
|
"react-dom": "^16.8.0"
|
|
63
42
|
},
|
|
64
43
|
"devDependencies": {
|
|
44
|
+
"@af/accessibility-testing": "*",
|
|
45
|
+
"@af/visual-regression": "*",
|
|
65
46
|
"@atlaskit/visual-regression": "*",
|
|
66
47
|
"@atlaskit/webdriver-runner": "*",
|
|
67
48
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
@@ -72,7 +53,6 @@
|
|
|
72
53
|
"@types/react-router-dom": "^4.3.1",
|
|
73
54
|
"ast-types": "^0.13.3",
|
|
74
55
|
"bind-event-listener": "^2.1.1",
|
|
75
|
-
"jest-axe": "^4.0.0",
|
|
76
56
|
"jscodeshift": "^0.13.0",
|
|
77
57
|
"react-router-dom": "^4.2.2",
|
|
78
58
|
"storybook-addon-performance": "^0.16.0",
|
|
@@ -103,6 +83,27 @@
|
|
|
103
83
|
"deprecation": "no-deprecated-imports"
|
|
104
84
|
}
|
|
105
85
|
},
|
|
86
|
+
"typesVersions": {
|
|
87
|
+
">=4.5 <4.9": {
|
|
88
|
+
"*": [
|
|
89
|
+
"dist/types-ts4.5/*",
|
|
90
|
+
"dist/types-ts4.5/index.d.ts"
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"af:exports": {
|
|
95
|
+
"./button-item": "./src/entry-points/menu-item/button-item.tsx",
|
|
96
|
+
"./link-item": "./src/entry-points/menu-item/link-item.tsx",
|
|
97
|
+
"./custom-item": "./src/entry-points/menu-item/custom-item.tsx",
|
|
98
|
+
"./heading-item": "./src/entry-points/menu-item/heading-item.tsx",
|
|
99
|
+
"./skeleton-item": "./src/entry-points/menu-item/skeleton-item.tsx",
|
|
100
|
+
"./skeleton-heading-item": "./src/entry-points/menu-item/skeleton-heading-item.tsx",
|
|
101
|
+
"./section": "./src/entry-points/menu-section/section.tsx",
|
|
102
|
+
"./menu-group": "./src/entry-points/menu-section/menu-group.tsx",
|
|
103
|
+
"./popup-menu-group": "./src/entry-points/menu-section/popup-menu-group.tsx",
|
|
104
|
+
"./types": "./src/types.tsx",
|
|
105
|
+
".": "./src/index.tsx"
|
|
106
|
+
},
|
|
106
107
|
"platform-feature-flags": {
|
|
107
108
|
"platform.design-system-team.menu-selected-state-change_0see9": {
|
|
108
109
|
"type": "boolean"
|
|
@@ -110,4 +111,4 @@
|
|
|
110
111
|
},
|
|
111
112
|
"homepage": "https://atlassian.design/components/menu/",
|
|
112
113
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
|
113
|
-
}
|
|
114
|
+
}
|