@atlaskit/menu 1.10.0 → 1.10.1
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.10.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a962b1b24eb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a962b1b24eb) - The internal composition of this component has changed. There is no expected change in behavior.
|
|
8
|
+
|
|
3
9
|
## 1.10.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -8,11 +8,17 @@ exports.default = void 0;
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
10
|
var _react = require("@emotion/react");
|
|
11
|
-
var _dsExplorations = require("@atlaskit/ds-explorations");
|
|
12
11
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
12
|
var _menuContext = require("../internal/components/menu-context");
|
|
14
13
|
var _excluded = ["maxWidth", "minWidth", "minHeight", "maxHeight", "testId", "role", "spacing", "className"];
|
|
15
14
|
/** @jsx jsx */
|
|
15
|
+
var baseStyles = (0, _react.css)({
|
|
16
|
+
display: 'flex',
|
|
17
|
+
position: 'static',
|
|
18
|
+
flexDirection: 'column',
|
|
19
|
+
overflow: 'auto'
|
|
20
|
+
});
|
|
21
|
+
|
|
16
22
|
/**
|
|
17
23
|
* __Menu group__
|
|
18
24
|
*
|
|
@@ -36,19 +42,16 @@ var MenuGroup = function MenuGroup(_ref) {
|
|
|
36
42
|
value: spacing
|
|
37
43
|
}, (0, _react.jsx)(_menuContext.SELECTION_STYLE_CONTEXT_DO_NOT_USE.Provider, {
|
|
38
44
|
value: "border"
|
|
39
|
-
}, (0, _react.jsx)(
|
|
40
|
-
|
|
45
|
+
}, (0, _react.jsx)("div", (0, _extends2.default)({
|
|
46
|
+
style: {
|
|
41
47
|
minWidth: minWidth,
|
|
42
48
|
maxWidth: maxWidth,
|
|
43
49
|
minHeight: minHeight,
|
|
44
50
|
maxHeight: maxHeight
|
|
45
51
|
},
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
overflow: "auto",
|
|
49
|
-
testId: testId,
|
|
52
|
+
css: baseStyles,
|
|
53
|
+
"data-testid": testId,
|
|
50
54
|
role: role,
|
|
51
|
-
position: "static",
|
|
52
55
|
className: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.unsafe-overrides-killswitch_c8j9m') ? undefined : UNSAFE_className
|
|
53
56
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
54
57
|
}, rest))));
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
|
-
import { UNSAFE_Box as Box } from '@atlaskit/ds-explorations';
|
|
3
|
+
import { css, jsx } from '@emotion/react';
|
|
5
4
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { SELECTION_STYLE_CONTEXT_DO_NOT_USE, SpacingContext } from '../internal/components/menu-context';
|
|
6
|
+
const baseStyles = css({
|
|
7
|
+
display: 'flex',
|
|
8
|
+
position: 'static',
|
|
9
|
+
flexDirection: 'column',
|
|
10
|
+
overflow: 'auto'
|
|
11
|
+
});
|
|
12
|
+
|
|
7
13
|
/**
|
|
8
14
|
* __Menu group__
|
|
9
15
|
*
|
|
@@ -30,19 +36,16 @@ const MenuGroup = ({
|
|
|
30
36
|
value: spacing
|
|
31
37
|
}, jsx(SELECTION_STYLE_CONTEXT_DO_NOT_USE.Provider, {
|
|
32
38
|
value: "border"
|
|
33
|
-
}, jsx(
|
|
34
|
-
|
|
39
|
+
}, jsx("div", _extends({
|
|
40
|
+
style: {
|
|
35
41
|
minWidth,
|
|
36
42
|
maxWidth,
|
|
37
43
|
minHeight,
|
|
38
44
|
maxHeight
|
|
39
45
|
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
overflow: "auto",
|
|
43
|
-
testId: testId,
|
|
46
|
+
css: baseStyles,
|
|
47
|
+
"data-testid": testId,
|
|
44
48
|
role: role,
|
|
45
|
-
position: "static",
|
|
46
49
|
className: getBooleanFF('platform.design-system-team.unsafe-overrides-killswitch_c8j9m') ? undefined : UNSAFE_className
|
|
47
50
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
48
51
|
}, rest))));
|
|
@@ -2,10 +2,16 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["maxWidth", "minWidth", "minHeight", "maxHeight", "testId", "role", "spacing", "className"];
|
|
4
4
|
/** @jsx jsx */
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
6
|
-
import { UNSAFE_Box as Box } from '@atlaskit/ds-explorations';
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
7
6
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
import { SELECTION_STYLE_CONTEXT_DO_NOT_USE, SpacingContext } from '../internal/components/menu-context';
|
|
8
|
+
var baseStyles = css({
|
|
9
|
+
display: 'flex',
|
|
10
|
+
position: 'static',
|
|
11
|
+
flexDirection: 'column',
|
|
12
|
+
overflow: 'auto'
|
|
13
|
+
});
|
|
14
|
+
|
|
9
15
|
/**
|
|
10
16
|
* __Menu group__
|
|
11
17
|
*
|
|
@@ -29,19 +35,16 @@ var MenuGroup = function MenuGroup(_ref) {
|
|
|
29
35
|
value: spacing
|
|
30
36
|
}, jsx(SELECTION_STYLE_CONTEXT_DO_NOT_USE.Provider, {
|
|
31
37
|
value: "border"
|
|
32
|
-
}, jsx(
|
|
33
|
-
|
|
38
|
+
}, jsx("div", _extends({
|
|
39
|
+
style: {
|
|
34
40
|
minWidth: minWidth,
|
|
35
41
|
maxWidth: maxWidth,
|
|
36
42
|
minHeight: minHeight,
|
|
37
43
|
maxHeight: maxHeight
|
|
38
44
|
},
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
overflow: "auto",
|
|
42
|
-
testId: testId,
|
|
45
|
+
css: baseStyles,
|
|
46
|
+
"data-testid": testId,
|
|
43
47
|
role: role,
|
|
44
|
-
position: "static",
|
|
45
48
|
className: getBooleanFF('platform.design-system-team.unsafe-overrides-killswitch_c8j9m') ? undefined : UNSAFE_className
|
|
46
49
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
47
50
|
}, rest))));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/menu",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.1",
|
|
4
4
|
"description": "A collection of composable menu components that can be used anywhere.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -26,13 +26,12 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@atlaskit/ds-explorations": "^2.2.0",
|
|
30
29
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
31
30
|
"@atlaskit/focus-ring": "^1.3.0",
|
|
32
31
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
33
32
|
"@atlaskit/primitives": "^1.2.0",
|
|
34
33
|
"@atlaskit/theme": "^12.5.0",
|
|
35
|
-
"@atlaskit/tokens": "^1.
|
|
34
|
+
"@atlaskit/tokens": "^1.18.0",
|
|
36
35
|
"@babel/runtime": "^7.0.0",
|
|
37
36
|
"@emotion/react": "^11.7.1"
|
|
38
37
|
},
|