@atlaskit/menu 2.8.0 → 2.9.0
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 +17 -0
- package/dist/cjs/internal/components/menu-item-primitive.js +6 -6
- package/dist/cjs/internal/components/skeleton-shimmer.js +1 -1
- package/dist/cjs/menu-item/button-item.js +2 -3
- package/dist/cjs/menu-item/custom-item.js +2 -3
- package/dist/cjs/menu-item/heading-item.js +5 -5
- package/dist/cjs/menu-item/link-item.js +4 -3
- package/dist/cjs/menu-item/skeleton-heading-item.js +3 -4
- package/dist/cjs/menu-item/skeleton-item.js +3 -4
- package/dist/cjs/menu-section/menu-group.js +2 -3
- package/dist/cjs/menu-section/popup-menu-group.js +1 -1
- package/dist/cjs/menu-section/section.js +4 -4
- package/dist/es2019/internal/components/menu-item-primitive.js +7 -7
- package/dist/es2019/internal/components/skeleton-shimmer.js +1 -1
- package/dist/es2019/menu-item/button-item.js +2 -3
- package/dist/es2019/menu-item/custom-item.js +2 -3
- package/dist/es2019/menu-item/heading-item.js +6 -6
- package/dist/es2019/menu-item/link-item.js +4 -3
- package/dist/es2019/menu-item/skeleton-heading-item.js +3 -4
- package/dist/es2019/menu-item/skeleton-item.js +3 -4
- package/dist/es2019/menu-section/menu-group.js +2 -3
- package/dist/es2019/menu-section/popup-menu-group.js +1 -1
- package/dist/es2019/menu-section/section.js +5 -5
- package/dist/esm/internal/components/menu-item-primitive.js +7 -7
- package/dist/esm/internal/components/skeleton-shimmer.js +1 -1
- package/dist/esm/menu-item/button-item.js +2 -3
- package/dist/esm/menu-item/custom-item.js +2 -3
- package/dist/esm/menu-item/heading-item.js +6 -6
- package/dist/esm/menu-item/link-item.js +4 -3
- package/dist/esm/menu-item/skeleton-heading-item.js +3 -4
- package/dist/esm/menu-item/skeleton-item.js +3 -4
- package/dist/esm/menu-section/menu-group.js +2 -3
- package/dist/esm/menu-section/popup-menu-group.js +1 -1
- package/dist/esm/menu-section/section.js +5 -5
- package/dist/types/internal/components/skeleton-shimmer.d.ts +1 -1
- package/dist/types/menu-item/custom-item.d.ts +1 -1
- package/dist/types/menu-section/menu-group.d.ts +1 -1
- package/dist/types/menu-section/popup-menu-group.d.ts +1 -1
- package/dist/types-ts4.5/internal/components/skeleton-shimmer.d.ts +1 -1
- package/dist/types-ts4.5/menu-item/custom-item.d.ts +1 -1
- package/dist/types-ts4.5/menu-section/menu-group.d.ts +1 -1
- package/dist/types-ts4.5/menu-section/popup-menu-group.d.ts +1 -1
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/menu
|
|
2
2
|
|
|
3
|
+
## 2.9.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#125278](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/125278)
|
|
8
|
+
[`f80ae8ed91fc9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f80ae8ed91fc9) -
|
|
9
|
+
Adding data-vc attributes for tracking TTVC (go/ttvc).
|
|
10
|
+
|
|
11
|
+
## 2.8.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#120605](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/120605)
|
|
16
|
+
[`0fd1aa0fa64aa`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fd1aa0fa64aa) -
|
|
17
|
+
Clean up stale feature gate, no functional changes.
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 2.8.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
|
@@ -15,8 +15,8 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
15
15
|
var _menuContext = require("./menu-context");
|
|
16
16
|
/**
|
|
17
17
|
* @jsxRuntime classic
|
|
18
|
+
* @jsx jsx
|
|
18
19
|
*/
|
|
19
|
-
/** @jsx jsx */
|
|
20
20
|
|
|
21
21
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
22
|
|
|
@@ -210,14 +210,14 @@ var MenuItemPrimitive = function MenuItemPrimitive(_ref) {
|
|
|
210
210
|
var spacing = (0, _react.useContext)(_menuContext.SpacingContext);
|
|
211
211
|
var selectionStyle = (0, _react.useContext)(_menuContext.SELECTION_STYLE_CONTEXT_DO_NOT_USE);
|
|
212
212
|
var renderTitle = overrides && overrides.Title && overrides.Title.render || defaultRender;
|
|
213
|
-
var UNSAFE_className =
|
|
213
|
+
var UNSAFE_className = UNSAFE_externalClassName;
|
|
214
214
|
return (0, _react2.jsx)(_react2.ClassNames, null, function (_ref2) {
|
|
215
215
|
var cn = _ref2.css,
|
|
216
216
|
cx = _ref2.cx;
|
|
217
217
|
return (0, _react2.jsx)(_focusRing.default, {
|
|
218
218
|
isInset: true
|
|
219
219
|
}, children({
|
|
220
|
-
className: cx([cn([positionRelativeStyles, primitiveStyles, (0, _platformFeatureFlags.
|
|
220
|
+
className: cx([cn([positionRelativeStyles, primitiveStyles, (0, _platformFeatureFlags.fg)('platform.design-system-team.menu-tokenised-typography-styles') ? undefined : primitiveBaseStyles, spacingMapStyles[spacing], !isDisabled && !isSelected && unselectedStyles, !isDisabled && isSelected && [selectedStyles, [selectionStyle === 'border' && selectedBorderStyles, selectionStyle === 'notch' && selectedNotchStyles]], isDisabled ? disabledStyles : interactiveStyles]), UNSAFE_className]),
|
|
221
221
|
children: (0, _react2.jsx)(_primitives.Inline, {
|
|
222
222
|
as: "span",
|
|
223
223
|
spread: "space-between",
|
|
@@ -234,16 +234,16 @@ var MenuItemPrimitive = function MenuItemPrimitive(_ref) {
|
|
|
234
234
|
grow: "fill",
|
|
235
235
|
xcss:
|
|
236
236
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
237
|
-
(0, _platformFeatureFlags.
|
|
237
|
+
(0, _platformFeatureFlags.fg)('platform.design-system-team.menu-tokenised-typography-styles') ? contentStyles : [contentStyles, baseContentStyles]
|
|
238
238
|
}, renderTitle('span', {
|
|
239
239
|
children: title,
|
|
240
|
-
className: cn((0, _platformFeatureFlags.
|
|
240
|
+
className: cn((0, _platformFeatureFlags.fg)('platform.design-system-team.menu-tokenised-typography-styles') ? titleStyles : undefined, shouldTitleWrap ? wordBreakStyles : truncateStyles),
|
|
241
241
|
'data-item-title': true
|
|
242
242
|
}), description && (0, _react2.jsx)("span", {
|
|
243
243
|
"data-item-description": true,
|
|
244
244
|
css: [descriptionStyles,
|
|
245
245
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
246
|
-
(0, _platformFeatureFlags.
|
|
246
|
+
(0, _platformFeatureFlags.fg)('platform.design-system-team.menu-tokenised-typography-styles') ? tokenizedDescriptionStyles : baseDescriptionStyles, isDisabled && disabledDescriptionStyles, shouldDescriptionWrap ? wordBreakStyles : truncateStyles]
|
|
247
247
|
}, description)), iconAfter && (0, _react2.jsx)("span", {
|
|
248
248
|
"data-item-elem-after": true,
|
|
249
249
|
css: beforeAfterElementStyles,
|
|
@@ -8,8 +8,8 @@ var _react = require("@emotion/react");
|
|
|
8
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
9
|
/**
|
|
10
10
|
* @jsxRuntime classic
|
|
11
|
+
* @jsx jsx
|
|
11
12
|
*/
|
|
12
|
-
/** @jsx jsx */
|
|
13
13
|
|
|
14
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
15
|
|
|
@@ -11,13 +11,12 @@ var _react = require("react");
|
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
12
|
var _deprecationWarning = require("@atlaskit/ds-lib/deprecation-warning");
|
|
13
13
|
var _noop = _interopRequireDefault(require("@atlaskit/ds-lib/noop"));
|
|
14
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
14
|
var _menuItemPrimitive = _interopRequireDefault(require("../internal/components/menu-item-primitive"));
|
|
16
15
|
var _excluded = ["children", "cssFn", "description", "iconAfter", "iconBefore", "isDisabled", "isSelected", "onClick", "testId", "overrides", "onMouseDown", "shouldTitleWrap", "shouldDescriptionWrap", "className"];
|
|
17
16
|
/**
|
|
18
17
|
* @jsxRuntime classic
|
|
18
|
+
* @jsx jsx
|
|
19
19
|
*/
|
|
20
|
-
/** @jsx jsx */
|
|
21
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
21
|
/**
|
|
23
22
|
* __Button item__
|
|
@@ -57,7 +56,7 @@ function (props, ref) {
|
|
|
57
56
|
return (0, _react2.jsx)(_menuItemPrimitive.default
|
|
58
57
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
59
58
|
, (0, _extends2.default)({
|
|
60
|
-
className:
|
|
59
|
+
className: UNSAFE_className
|
|
61
60
|
}, rest, {
|
|
62
61
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
|
|
63
62
|
overrides: overrides,
|
|
@@ -11,13 +11,12 @@ var _react = require("react");
|
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
12
|
var _deprecationWarning = require("@atlaskit/ds-lib/deprecation-warning");
|
|
13
13
|
var _noop = _interopRequireDefault(require("@atlaskit/ds-lib/noop"));
|
|
14
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
14
|
var _menuItemPrimitive = _interopRequireDefault(require("../internal/components/menu-item-primitive"));
|
|
16
15
|
var _excluded = ["component", "cssFn", "isDisabled", "isSelected", "onClick", "testId", "children", "description", "iconAfter", "iconBefore", "overrides", "onMouseDown", "shouldTitleWrap", "shouldDescriptionWrap", "className", "UNSAFE_isDraggable"];
|
|
17
16
|
/**
|
|
18
17
|
* @jsxRuntime classic
|
|
18
|
+
* @jsx jsx
|
|
19
19
|
*/
|
|
20
|
-
/** @jsx jsx */
|
|
21
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
21
|
var preventEvent = function preventEvent(e) {
|
|
23
22
|
e.preventDefault();
|
|
@@ -63,7 +62,7 @@ var CustomItem = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardR
|
|
|
63
62
|
return (0, _react2.jsx)(_menuItemPrimitive.default
|
|
64
63
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
65
64
|
, (0, _extends2.default)({
|
|
66
|
-
className:
|
|
65
|
+
className: UNSAFE_className
|
|
67
66
|
}, rest, {
|
|
68
67
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
|
|
69
68
|
overrides: overrides,
|
|
@@ -17,8 +17,8 @@ var _typography = require("@atlaskit/theme/typography");
|
|
|
17
17
|
var _excluded = ["children", "testId", "headingLevel", "id", "cssFn", "className"];
|
|
18
18
|
/**
|
|
19
19
|
* @jsxRuntime classic
|
|
20
|
+
* @jsx jsx
|
|
20
21
|
*/
|
|
21
|
-
/** @jsx jsx */
|
|
22
22
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
23
|
var itemHeadingContentHeight = _typography.headingSizes.h100.lineHeight;
|
|
24
24
|
var itemHeadingFontSize = _typography.headingSizes.h100.size;
|
|
@@ -59,13 +59,13 @@ var HeadingItem = /*#__PURE__*/(0, _react.memo)(function (_ref) {
|
|
|
59
59
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
60
60
|
(0, _deprecationWarning.propDeprecationWarning)("@atlaskit/menu" || '', 'cssFn', cssFn !== _noop.default, '' // TODO: Create DAC post when primitives/xcss are available as alternatives
|
|
61
61
|
);
|
|
62
|
-
|
|
62
|
+
|
|
63
63
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
64
|
-
(0, _react2.css)(cssFn(undefined));
|
|
64
|
+
var UNSAFE_overrides = (0, _react2.css)(cssFn(undefined));
|
|
65
65
|
return (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
66
66
|
css: [headingStyles,
|
|
67
67
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
68
|
-
(0, _platformFeatureFlags.
|
|
68
|
+
(0, _platformFeatureFlags.fg)('platform.design-system-team.menu-tokenised-typography-styles') ? tokenizedHeadingStyles : baseHeadingStyles,
|
|
69
69
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
70
70
|
UNSAFE_overrides],
|
|
71
71
|
role: "heading",
|
|
@@ -75,7 +75,7 @@ var HeadingItem = /*#__PURE__*/(0, _react.memo)(function (_ref) {
|
|
|
75
75
|
id: id
|
|
76
76
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
77
77
|
,
|
|
78
|
-
className:
|
|
78
|
+
className: UNSAFE_className
|
|
79
79
|
}, rest), children);
|
|
80
80
|
});
|
|
81
81
|
var _default = exports.default = HeadingItem;
|
|
@@ -17,8 +17,8 @@ var _menuItemPrimitive = _interopRequireDefault(require("../internal/components/
|
|
|
17
17
|
var _excluded = ["children", "href", "cssFn", "description", "iconAfter", "iconBefore", "isDisabled", "isSelected", "onClick", "testId", "overrides", "onMouseDown", "shouldTitleWrap", "shouldDescriptionWrap", "className", "UNSAFE_shouldDisableRouterLink", "UNSAFE_isDraggable"];
|
|
18
18
|
/**
|
|
19
19
|
* @jsxRuntime classic
|
|
20
|
+
* @jsx jsx
|
|
20
21
|
*/
|
|
21
|
-
/** @jsx jsx */
|
|
22
22
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
23
|
var IS_EXTERNAL_LINK_REGEX = /^(?:(http|https):\/\/)/;
|
|
24
24
|
var IS_NON_HTTP_BASED = /^(((mailto|tel|sms):)|(#))/;
|
|
@@ -79,7 +79,7 @@ function (props, ref) {
|
|
|
79
79
|
);
|
|
80
80
|
return (0, _react2.jsx)(_menuItemPrimitive.default, (0, _extends2.default)({}, rest, {
|
|
81
81
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
82
|
-
className:
|
|
82
|
+
className: UNSAFE_className
|
|
83
83
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
|
|
84
84
|
,
|
|
85
85
|
overrides: overrides,
|
|
@@ -103,7 +103,8 @@ function (props, ref) {
|
|
|
103
103
|
className = _ref.className;
|
|
104
104
|
return (0, _react2.jsx)(Component, (0, _extends2.default)({
|
|
105
105
|
"data-testid": testId,
|
|
106
|
-
"data-is-router-link": testId ? isRouterLink ? 'true' : 'false' : undefined
|
|
106
|
+
"data-is-router-link": testId ? isRouterLink ? 'true' : 'false' : undefined,
|
|
107
|
+
"data-vc": "link-item"
|
|
107
108
|
}, rest, {
|
|
108
109
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
109
110
|
className: className
|
|
@@ -8,13 +8,12 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
9
|
var _deprecationWarning = require("@atlaskit/ds-lib/deprecation-warning");
|
|
10
10
|
var _noop = _interopRequireDefault(require("@atlaskit/ds-lib/noop"));
|
|
11
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
12
11
|
var _colors = require("@atlaskit/theme/colors");
|
|
13
12
|
var _skeletonShimmer = _interopRequireDefault(require("../internal/components/skeleton-shimmer"));
|
|
14
13
|
/**
|
|
15
14
|
* @jsxRuntime classic
|
|
15
|
+
* @jsx jsx
|
|
16
16
|
*/
|
|
17
|
-
/** @jsx jsx */
|
|
18
17
|
|
|
19
18
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
20
19
|
|
|
@@ -61,9 +60,9 @@ var SkeletonHeadingItem = function SkeletonHeadingItem(_ref) {
|
|
|
61
60
|
cssFn = _ref$cssFn === void 0 ? _noop.default : _ref$cssFn;
|
|
62
61
|
(0, _deprecationWarning.propDeprecationWarning)("@atlaskit/menu" || '', 'cssFn', cssFn !== _noop.default, '' // TODO: Create DAC post when primitives/xcss are available as alternatives
|
|
63
62
|
);
|
|
64
|
-
|
|
63
|
+
|
|
65
64
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
66
|
-
(0, _react.css)(cssFn(undefined));
|
|
65
|
+
var UNSAFE_overrides = (0, _react.css)(cssFn(undefined));
|
|
67
66
|
return (0, _react.jsx)(_skeletonShimmer.default, {
|
|
68
67
|
isShimmering: isShimmering
|
|
69
68
|
}, function (_ref2) {
|
|
@@ -8,14 +8,13 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
9
|
var _deprecationWarning = require("@atlaskit/ds-lib/deprecation-warning");
|
|
10
10
|
var _noop = _interopRequireDefault(require("@atlaskit/ds-lib/noop"));
|
|
11
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
12
11
|
var _colors = require("@atlaskit/theme/colors");
|
|
13
12
|
var _constants = require("@atlaskit/theme/constants");
|
|
14
13
|
var _skeletonShimmer = _interopRequireDefault(require("../internal/components/skeleton-shimmer"));
|
|
15
14
|
/**
|
|
16
15
|
* @jsxRuntime classic
|
|
16
|
+
* @jsx jsx
|
|
17
17
|
*/
|
|
18
|
-
/** @jsx jsx */
|
|
19
18
|
|
|
20
19
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
21
20
|
|
|
@@ -128,9 +127,9 @@ var SkeletonItem = function SkeletonItem(_ref) {
|
|
|
128
127
|
cssFn = _ref$cssFn === void 0 ? _noop.default : _ref$cssFn;
|
|
129
128
|
(0, _deprecationWarning.propDeprecationWarning)("@atlaskit/menu" || '', 'cssFn', cssFn !== _noop.default, '' // TODO: Create DAC post when primitives/xcss are available as alternatives
|
|
130
129
|
);
|
|
131
|
-
|
|
130
|
+
|
|
132
131
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
133
|
-
(0, _react.css)(cssFn());
|
|
132
|
+
var UNSAFE_overrides = (0, _react.css)(cssFn());
|
|
134
133
|
return (0, _react.jsx)(_skeletonShimmer.default, {
|
|
135
134
|
isShimmering: isShimmering
|
|
136
135
|
}, function (_ref2) {
|
|
@@ -8,13 +8,12 @@ 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 _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
12
11
|
var _menuContext = require("../internal/components/menu-context");
|
|
13
12
|
var _excluded = ["isLoading", "maxWidth", "minWidth", "minHeight", "maxHeight", "testId", "role", "spacing", "className"];
|
|
14
13
|
/**
|
|
15
14
|
* @jsxRuntime classic
|
|
15
|
+
* @jsx jsx
|
|
16
16
|
*/
|
|
17
|
-
/** @jsx jsx */
|
|
18
17
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
19
18
|
var baseStyles = (0, _react.css)({
|
|
20
19
|
display: 'flex',
|
|
@@ -60,7 +59,7 @@ var MenuGroup = function MenuGroup(_ref) {
|
|
|
60
59
|
role: role
|
|
61
60
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
62
61
|
,
|
|
63
|
-
className:
|
|
62
|
+
className: UNSAFE_className
|
|
64
63
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
65
64
|
}, rest))));
|
|
66
65
|
};
|
|
@@ -12,8 +12,8 @@ var _menuGroup = _interopRequireDefault(require("./menu-group"));
|
|
|
12
12
|
var _excluded = ["maxWidth", "minWidth"];
|
|
13
13
|
/**
|
|
14
14
|
* @jsxRuntime classic
|
|
15
|
+
* @jsx jsx
|
|
15
16
|
*/
|
|
16
|
-
/** @jsx jsx */
|
|
17
17
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
18
|
/**
|
|
19
19
|
* @deprecated refer to MenuGroup, explicitly set maxWidth and minWidth
|
|
@@ -19,8 +19,8 @@ var _excluded = ["children", "overrides", "title", "titleId", "testId", "isScrol
|
|
|
19
19
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview */
|
|
20
20
|
/**
|
|
21
21
|
* @jsxRuntime classic
|
|
22
|
+
* @jsx jsx
|
|
22
23
|
*/
|
|
23
|
-
/** @jsx jsx */
|
|
24
24
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
26
26
|
var gridSize = (0, _constants.gridSize)();
|
|
@@ -120,7 +120,7 @@ var Section = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
120
120
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
121
121
|
(0, _deprecationWarning.propDeprecationWarning)("@atlaskit/menu" || '', 'overrides', overrides !== undefined, '' // TODO: Create DAC post when primitives/xcss are available as alternatives
|
|
122
122
|
);
|
|
123
|
-
var UNSAFE_headingOverrides =
|
|
123
|
+
var UNSAFE_headingOverrides = overrides && overrides.HeadingItem && overrides.HeadingItem.cssFn;
|
|
124
124
|
var content = isList ? (0, _react2.jsx)("ul", {
|
|
125
125
|
style: {
|
|
126
126
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
@@ -148,14 +148,14 @@ var Section = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
148
148
|
}, title), content) : (0, _react2.jsx)(_react.Fragment, null, content);
|
|
149
149
|
return (0, _react2.jsx)("div", (0, _extends2.default)({}, rest, {
|
|
150
150
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
151
|
-
className:
|
|
151
|
+
className: UNSAFE_className,
|
|
152
152
|
id: id
|
|
153
153
|
// NOTE: Firefox allows elements that have "overflow: auto" to gain focus (as if it had tab-index="0")
|
|
154
154
|
// We have made a deliberate choice to leave this behaviour as is.
|
|
155
155
|
,
|
|
156
156
|
css: [sectionStyles, isScrollable ? scrollableStyles : unscrollableStyles, hasSeparator ?
|
|
157
157
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
158
|
-
(0, _platformFeatureFlags.
|
|
158
|
+
(0, _platformFeatureFlags.fg)('platform.design-system-team.section-1px-seperator-borders') ? thinSeparatorStyles : thickSeparatorStyles : noSeparatorStyles],
|
|
159
159
|
"aria-label": title,
|
|
160
160
|
"aria-labelledby": titleId,
|
|
161
161
|
"data-testid": testId,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
3
4
|
*/
|
|
4
|
-
/** @jsx jsx */
|
|
5
5
|
import { useContext } from 'react';
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { ClassNames, css, jsx } from '@emotion/react';
|
|
9
9
|
import { propDeprecationWarning } from '@atlaskit/ds-lib/deprecation-warning';
|
|
10
10
|
import FocusRing from '@atlaskit/focus-ring';
|
|
11
|
-
import {
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
12
|
import { Inline, Stack, xcss } from '@atlaskit/primitives';
|
|
13
13
|
import { N20, N200, N30 } from '@atlaskit/theme/colors';
|
|
14
14
|
import { SELECTION_STYLE_CONTEXT_DO_NOT_USE, SpacingContext } from './menu-context';
|
|
@@ -196,7 +196,7 @@ const MenuItemPrimitive = ({
|
|
|
196
196
|
const spacing = useContext(SpacingContext);
|
|
197
197
|
const selectionStyle = useContext(SELECTION_STYLE_CONTEXT_DO_NOT_USE);
|
|
198
198
|
const renderTitle = overrides && overrides.Title && overrides.Title.render || defaultRender;
|
|
199
|
-
const UNSAFE_className =
|
|
199
|
+
const UNSAFE_className = UNSAFE_externalClassName;
|
|
200
200
|
return jsx(ClassNames, null, ({
|
|
201
201
|
css: cn,
|
|
202
202
|
cx
|
|
@@ -204,7 +204,7 @@ const MenuItemPrimitive = ({
|
|
|
204
204
|
return jsx(FocusRing, {
|
|
205
205
|
isInset: true
|
|
206
206
|
}, children({
|
|
207
|
-
className: cx([cn([positionRelativeStyles, primitiveStyles,
|
|
207
|
+
className: cx([cn([positionRelativeStyles, primitiveStyles, fg('platform.design-system-team.menu-tokenised-typography-styles') ? undefined : primitiveBaseStyles, spacingMapStyles[spacing], !isDisabled && !isSelected && unselectedStyles, !isDisabled && isSelected && [selectedStyles, [selectionStyle === 'border' && selectedBorderStyles, selectionStyle === 'notch' && selectedNotchStyles]], isDisabled ? disabledStyles : interactiveStyles]), UNSAFE_className]),
|
|
208
208
|
children: jsx(Inline, {
|
|
209
209
|
as: "span",
|
|
210
210
|
spread: "space-between",
|
|
@@ -221,16 +221,16 @@ const MenuItemPrimitive = ({
|
|
|
221
221
|
grow: "fill",
|
|
222
222
|
xcss:
|
|
223
223
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
224
|
-
|
|
224
|
+
fg('platform.design-system-team.menu-tokenised-typography-styles') ? contentStyles : [contentStyles, baseContentStyles]
|
|
225
225
|
}, renderTitle('span', {
|
|
226
226
|
children: title,
|
|
227
|
-
className: cn(
|
|
227
|
+
className: cn(fg('platform.design-system-team.menu-tokenised-typography-styles') ? titleStyles : undefined, shouldTitleWrap ? wordBreakStyles : truncateStyles),
|
|
228
228
|
'data-item-title': true
|
|
229
229
|
}), description && jsx("span", {
|
|
230
230
|
"data-item-description": true,
|
|
231
231
|
css: [descriptionStyles,
|
|
232
232
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
233
|
-
|
|
233
|
+
fg('platform.design-system-team.menu-tokenised-typography-styles') ? tokenizedDescriptionStyles : baseDescriptionStyles, isDisabled && disabledDescriptionStyles, shouldDescriptionWrap ? wordBreakStyles : truncateStyles]
|
|
234
234
|
}, description)), iconAfter && jsx("span", {
|
|
235
235
|
"data-item-elem-after": true,
|
|
236
236
|
css: beforeAfterElementStyles,
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/**
|
|
3
3
|
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
4
5
|
*/
|
|
5
|
-
/** @jsx jsx */
|
|
6
6
|
import { forwardRef, memo } from 'react';
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
10
|
import { propDeprecationWarning } from '@atlaskit/ds-lib/deprecation-warning';
|
|
11
11
|
import noop from '@atlaskit/ds-lib/noop';
|
|
12
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
13
12
|
import MenuItemPrimitive from '../internal/components/menu-item-primitive';
|
|
14
13
|
/**
|
|
15
14
|
* __Button item__
|
|
@@ -52,7 +51,7 @@ const ButtonItem = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(
|
|
|
52
51
|
return jsx(MenuItemPrimitive
|
|
53
52
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
54
53
|
, _extends({
|
|
55
|
-
className:
|
|
54
|
+
className: UNSAFE_className
|
|
56
55
|
}, rest, {
|
|
57
56
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
|
|
58
57
|
overrides: overrides,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/**
|
|
3
3
|
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
4
5
|
*/
|
|
5
|
-
/** @jsx jsx */
|
|
6
6
|
|
|
7
7
|
import { forwardRef, memo } from 'react';
|
|
8
8
|
|
|
@@ -10,7 +10,6 @@ import { forwardRef, memo } from 'react';
|
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import { propDeprecationWarning } from '@atlaskit/ds-lib/deprecation-warning';
|
|
12
12
|
import noop from '@atlaskit/ds-lib/noop';
|
|
13
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
13
|
import MenuItemPrimitive from '../internal/components/menu-item-primitive';
|
|
15
14
|
const preventEvent = e => {
|
|
16
15
|
e.preventDefault();
|
|
@@ -58,7 +57,7 @@ const CustomItem = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
58
57
|
return jsx(MenuItemPrimitive
|
|
59
58
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
60
59
|
, _extends({
|
|
61
|
-
className:
|
|
60
|
+
className: UNSAFE_className
|
|
62
61
|
}, rest, {
|
|
63
62
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
|
|
64
63
|
overrides: overrides,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/**
|
|
3
3
|
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
4
5
|
*/
|
|
5
|
-
/** @jsx jsx */
|
|
6
6
|
import { memo } from 'react';
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
10
|
import { propDeprecationWarning } from '@atlaskit/ds-lib/deprecation-warning';
|
|
11
11
|
import noop from '@atlaskit/ds-lib/noop';
|
|
12
|
-
import {
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
13
|
import { N300 } from '@atlaskit/theme/colors';
|
|
14
14
|
import { headingSizes } from '@atlaskit/theme/typography';
|
|
15
15
|
const itemHeadingContentHeight = headingSizes.h100.lineHeight;
|
|
@@ -54,13 +54,13 @@ const HeadingItem = /*#__PURE__*/memo(({
|
|
|
54
54
|
}) => {
|
|
55
55
|
propDeprecationWarning("@atlaskit/menu" || '', 'cssFn', cssFn !== noop, '' // TODO: Create DAC post when primitives/xcss are available as alternatives
|
|
56
56
|
);
|
|
57
|
-
|
|
57
|
+
|
|
58
58
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
59
|
-
css(cssFn(undefined));
|
|
59
|
+
const UNSAFE_overrides = css(cssFn(undefined));
|
|
60
60
|
return jsx("div", _extends({
|
|
61
61
|
css: [headingStyles,
|
|
62
62
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
63
|
-
|
|
63
|
+
fg('platform.design-system-team.menu-tokenised-typography-styles') ? tokenizedHeadingStyles : baseHeadingStyles,
|
|
64
64
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
65
65
|
UNSAFE_overrides],
|
|
66
66
|
role: "heading",
|
|
@@ -70,7 +70,7 @@ const HeadingItem = /*#__PURE__*/memo(({
|
|
|
70
70
|
id: id
|
|
71
71
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
72
72
|
,
|
|
73
|
-
className:
|
|
73
|
+
className: UNSAFE_className
|
|
74
74
|
}, rest), children);
|
|
75
75
|
});
|
|
76
76
|
export default HeadingItem;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/**
|
|
3
3
|
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
4
5
|
*/
|
|
5
|
-
/** @jsx jsx */
|
|
6
6
|
import { forwardRef, memo } from 'react';
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -74,7 +74,7 @@ const LinkItem = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(
|
|
|
74
74
|
);
|
|
75
75
|
return jsx(MenuItemPrimitive, _extends({}, rest, {
|
|
76
76
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
77
|
-
className:
|
|
77
|
+
className: UNSAFE_className
|
|
78
78
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
|
|
79
79
|
,
|
|
80
80
|
overrides: overrides,
|
|
@@ -98,7 +98,8 @@ const LinkItem = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(
|
|
|
98
98
|
className
|
|
99
99
|
}) => jsx(Component, _extends({
|
|
100
100
|
"data-testid": testId,
|
|
101
|
-
"data-is-router-link": testId ? isRouterLink ? 'true' : 'false' : undefined
|
|
101
|
+
"data-is-router-link": testId ? isRouterLink ? 'true' : 'false' : undefined,
|
|
102
|
+
"data-vc": "link-item"
|
|
102
103
|
}, rest, {
|
|
103
104
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
104
105
|
className: className
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
3
4
|
*/
|
|
4
|
-
/** @jsx jsx */
|
|
5
5
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { propDeprecationWarning } from '@atlaskit/ds-lib/deprecation-warning';
|
|
9
9
|
import noop from '@atlaskit/ds-lib/noop';
|
|
10
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
11
10
|
import { N20A } from '@atlaskit/theme/colors';
|
|
12
11
|
import SkeletonShimmer from '../internal/components/skeleton-shimmer';
|
|
13
12
|
const skeletonStyles = css({
|
|
@@ -52,9 +51,9 @@ const SkeletonHeadingItem = ({
|
|
|
52
51
|
}) => {
|
|
53
52
|
propDeprecationWarning("@atlaskit/menu" || '', 'cssFn', cssFn !== noop, '' // TODO: Create DAC post when primitives/xcss are available as alternatives
|
|
54
53
|
);
|
|
55
|
-
|
|
54
|
+
|
|
56
55
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
57
|
-
css(cssFn(undefined));
|
|
56
|
+
const UNSAFE_overrides = css(cssFn(undefined));
|
|
58
57
|
return jsx(SkeletonShimmer, {
|
|
59
58
|
isShimmering: isShimmering
|
|
60
59
|
}, ({
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
3
4
|
*/
|
|
4
|
-
/** @jsx jsx */
|
|
5
5
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { propDeprecationWarning } from '@atlaskit/ds-lib/deprecation-warning';
|
|
9
9
|
import noop from '@atlaskit/ds-lib/noop';
|
|
10
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
11
10
|
import { N20A } from '@atlaskit/theme/colors';
|
|
12
11
|
import { borderRadius as borderRadiusFn,
|
|
13
12
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
@@ -121,9 +120,9 @@ const SkeletonItem = ({
|
|
|
121
120
|
}) => {
|
|
122
121
|
propDeprecationWarning("@atlaskit/menu" || '', 'cssFn', cssFn !== noop, '' // TODO: Create DAC post when primitives/xcss are available as alternatives
|
|
123
122
|
);
|
|
124
|
-
|
|
123
|
+
|
|
125
124
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
126
|
-
css(cssFn());
|
|
125
|
+
const UNSAFE_overrides = css(cssFn());
|
|
127
126
|
return jsx(SkeletonShimmer, {
|
|
128
127
|
isShimmering: isShimmering
|
|
129
128
|
}, ({
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/**
|
|
3
3
|
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
4
5
|
*/
|
|
5
|
-
/** @jsx jsx */
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { SELECTION_STYLE_CONTEXT_DO_NOT_USE, SpacingContext } from '../internal/components/menu-context';
|
|
10
9
|
const baseStyles = css({
|
|
11
10
|
display: 'flex',
|
|
@@ -54,7 +53,7 @@ const MenuGroup = ({
|
|
|
54
53
|
role: role
|
|
55
54
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
56
55
|
,
|
|
57
|
-
className:
|
|
56
|
+
className: UNSAFE_className
|
|
58
57
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
59
58
|
}, rest))));
|
|
60
59
|
export default MenuGroup;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/**
|
|
3
3
|
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
4
5
|
*/
|
|
5
|
-
/** @jsx jsx */
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { jsx } from '@emotion/react';
|
|
8
8
|
import MenuGroup from './menu-group';
|
|
@@ -2,14 +2,14 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview */
|
|
3
3
|
/**
|
|
4
4
|
* @jsxRuntime classic
|
|
5
|
+
* @jsx jsx
|
|
5
6
|
*/
|
|
6
|
-
/** @jsx jsx */
|
|
7
7
|
import { Children, forwardRef, Fragment } from 'react';
|
|
8
8
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import { propDeprecationWarning } from '@atlaskit/ds-lib/deprecation-warning';
|
|
12
|
-
import {
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
13
|
import { N30A } from '@atlaskit/theme/colors';
|
|
14
14
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
15
15
|
import { gridSize as gridSizeFn } from '@atlaskit/theme/constants';
|
|
@@ -116,7 +116,7 @@ const Section = /*#__PURE__*/forwardRef(({
|
|
|
116
116
|
}, ref) => {
|
|
117
117
|
propDeprecationWarning("@atlaskit/menu" || '', 'overrides', overrides !== undefined, '' // TODO: Create DAC post when primitives/xcss are available as alternatives
|
|
118
118
|
);
|
|
119
|
-
const UNSAFE_headingOverrides =
|
|
119
|
+
const UNSAFE_headingOverrides = overrides && overrides.HeadingItem && overrides.HeadingItem.cssFn;
|
|
120
120
|
const content = isList ? jsx("ul", {
|
|
121
121
|
style: {
|
|
122
122
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
@@ -142,14 +142,14 @@ const Section = /*#__PURE__*/forwardRef(({
|
|
|
142
142
|
}, title), content) : jsx(Fragment, null, content);
|
|
143
143
|
return jsx("div", _extends({}, rest, {
|
|
144
144
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
145
|
-
className:
|
|
145
|
+
className: UNSAFE_className,
|
|
146
146
|
id: id
|
|
147
147
|
// NOTE: Firefox allows elements that have "overflow: auto" to gain focus (as if it had tab-index="0")
|
|
148
148
|
// We have made a deliberate choice to leave this behaviour as is.
|
|
149
149
|
,
|
|
150
150
|
css: [sectionStyles, isScrollable ? scrollableStyles : unscrollableStyles, hasSeparator ?
|
|
151
151
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
152
|
-
|
|
152
|
+
fg('platform.design-system-team.section-1px-seperator-borders') ? thinSeparatorStyles : thickSeparatorStyles : noSeparatorStyles],
|
|
153
153
|
"aria-label": title,
|
|
154
154
|
"aria-labelledby": titleId,
|
|
155
155
|
"data-testid": testId,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
3
4
|
*/
|
|
4
|
-
/** @jsx jsx */
|
|
5
5
|
import { useContext } from 'react';
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { ClassNames, css, jsx } from '@emotion/react';
|
|
9
9
|
import { propDeprecationWarning } from '@atlaskit/ds-lib/deprecation-warning';
|
|
10
10
|
import FocusRing from '@atlaskit/focus-ring';
|
|
11
|
-
import {
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
12
|
import { Inline, Stack, xcss } from '@atlaskit/primitives';
|
|
13
13
|
import { N20, N200, N30 } from '@atlaskit/theme/colors';
|
|
14
14
|
import { SELECTION_STYLE_CONTEXT_DO_NOT_USE, SpacingContext } from './menu-context';
|
|
@@ -202,14 +202,14 @@ var MenuItemPrimitive = function MenuItemPrimitive(_ref) {
|
|
|
202
202
|
var spacing = useContext(SpacingContext);
|
|
203
203
|
var selectionStyle = useContext(SELECTION_STYLE_CONTEXT_DO_NOT_USE);
|
|
204
204
|
var renderTitle = overrides && overrides.Title && overrides.Title.render || defaultRender;
|
|
205
|
-
var UNSAFE_className =
|
|
205
|
+
var UNSAFE_className = UNSAFE_externalClassName;
|
|
206
206
|
return jsx(ClassNames, null, function (_ref2) {
|
|
207
207
|
var cn = _ref2.css,
|
|
208
208
|
cx = _ref2.cx;
|
|
209
209
|
return jsx(FocusRing, {
|
|
210
210
|
isInset: true
|
|
211
211
|
}, children({
|
|
212
|
-
className: cx([cn([positionRelativeStyles, primitiveStyles,
|
|
212
|
+
className: cx([cn([positionRelativeStyles, primitiveStyles, fg('platform.design-system-team.menu-tokenised-typography-styles') ? undefined : primitiveBaseStyles, spacingMapStyles[spacing], !isDisabled && !isSelected && unselectedStyles, !isDisabled && isSelected && [selectedStyles, [selectionStyle === 'border' && selectedBorderStyles, selectionStyle === 'notch' && selectedNotchStyles]], isDisabled ? disabledStyles : interactiveStyles]), UNSAFE_className]),
|
|
213
213
|
children: jsx(Inline, {
|
|
214
214
|
as: "span",
|
|
215
215
|
spread: "space-between",
|
|
@@ -226,16 +226,16 @@ var MenuItemPrimitive = function MenuItemPrimitive(_ref) {
|
|
|
226
226
|
grow: "fill",
|
|
227
227
|
xcss:
|
|
228
228
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
229
|
-
|
|
229
|
+
fg('platform.design-system-team.menu-tokenised-typography-styles') ? contentStyles : [contentStyles, baseContentStyles]
|
|
230
230
|
}, renderTitle('span', {
|
|
231
231
|
children: title,
|
|
232
|
-
className: cn(
|
|
232
|
+
className: cn(fg('platform.design-system-team.menu-tokenised-typography-styles') ? titleStyles : undefined, shouldTitleWrap ? wordBreakStyles : truncateStyles),
|
|
233
233
|
'data-item-title': true
|
|
234
234
|
}), description && jsx("span", {
|
|
235
235
|
"data-item-description": true,
|
|
236
236
|
css: [descriptionStyles,
|
|
237
237
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
238
|
-
|
|
238
|
+
fg('platform.design-system-team.menu-tokenised-typography-styles') ? tokenizedDescriptionStyles : baseDescriptionStyles, isDisabled && disabledDescriptionStyles, shouldDescriptionWrap ? wordBreakStyles : truncateStyles]
|
|
239
239
|
}, description)), iconAfter && jsx("span", {
|
|
240
240
|
"data-item-elem-after": true,
|
|
241
241
|
css: beforeAfterElementStyles,
|
|
@@ -3,15 +3,14 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["children", "cssFn", "description", "iconAfter", "iconBefore", "isDisabled", "isSelected", "onClick", "testId", "overrides", "onMouseDown", "shouldTitleWrap", "shouldDescriptionWrap", "className"];
|
|
4
4
|
/**
|
|
5
5
|
* @jsxRuntime classic
|
|
6
|
+
* @jsx jsx
|
|
6
7
|
*/
|
|
7
|
-
/** @jsx jsx */
|
|
8
8
|
import { forwardRef, memo } from 'react';
|
|
9
9
|
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
11
|
import { jsx } from '@emotion/react';
|
|
12
12
|
import { propDeprecationWarning } from '@atlaskit/ds-lib/deprecation-warning';
|
|
13
13
|
import noop from '@atlaskit/ds-lib/noop';
|
|
14
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
15
14
|
import MenuItemPrimitive from '../internal/components/menu-item-primitive';
|
|
16
15
|
/**
|
|
17
16
|
* __Button item__
|
|
@@ -51,7 +50,7 @@ function (props, ref) {
|
|
|
51
50
|
return jsx(MenuItemPrimitive
|
|
52
51
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
53
52
|
, _extends({
|
|
54
|
-
className:
|
|
53
|
+
className: UNSAFE_className
|
|
55
54
|
}, rest, {
|
|
56
55
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
|
|
57
56
|
overrides: overrides,
|
|
@@ -3,8 +3,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["component", "cssFn", "isDisabled", "isSelected", "onClick", "testId", "children", "description", "iconAfter", "iconBefore", "overrides", "onMouseDown", "shouldTitleWrap", "shouldDescriptionWrap", "className", "UNSAFE_isDraggable"];
|
|
4
4
|
/**
|
|
5
5
|
* @jsxRuntime classic
|
|
6
|
+
* @jsx jsx
|
|
6
7
|
*/
|
|
7
|
-
/** @jsx jsx */
|
|
8
8
|
|
|
9
9
|
import { forwardRef, memo } from 'react';
|
|
10
10
|
|
|
@@ -12,7 +12,6 @@ import { forwardRef, memo } from 'react';
|
|
|
12
12
|
import { css, jsx } from '@emotion/react';
|
|
13
13
|
import { propDeprecationWarning } from '@atlaskit/ds-lib/deprecation-warning';
|
|
14
14
|
import noop from '@atlaskit/ds-lib/noop';
|
|
15
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
15
|
import MenuItemPrimitive from '../internal/components/menu-item-primitive';
|
|
17
16
|
var preventEvent = function preventEvent(e) {
|
|
18
17
|
e.preventDefault();
|
|
@@ -58,7 +57,7 @@ var CustomItem = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (_ref, ref)
|
|
|
58
57
|
return jsx(MenuItemPrimitive
|
|
59
58
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
60
59
|
, _extends({
|
|
61
|
-
className:
|
|
60
|
+
className: UNSAFE_className
|
|
62
61
|
}, rest, {
|
|
63
62
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
|
|
64
63
|
overrides: overrides,
|
|
@@ -3,15 +3,15 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["children", "testId", "headingLevel", "id", "cssFn", "className"];
|
|
4
4
|
/**
|
|
5
5
|
* @jsxRuntime classic
|
|
6
|
+
* @jsx jsx
|
|
6
7
|
*/
|
|
7
|
-
/** @jsx jsx */
|
|
8
8
|
import { memo } from 'react';
|
|
9
9
|
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
11
|
import { css, jsx } from '@emotion/react';
|
|
12
12
|
import { propDeprecationWarning } from '@atlaskit/ds-lib/deprecation-warning';
|
|
13
13
|
import noop from '@atlaskit/ds-lib/noop';
|
|
14
|
-
import {
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import { N300 } from '@atlaskit/theme/colors';
|
|
16
16
|
import { headingSizes } from '@atlaskit/theme/typography';
|
|
17
17
|
var itemHeadingContentHeight = headingSizes.h100.lineHeight;
|
|
@@ -53,13 +53,13 @@ var HeadingItem = /*#__PURE__*/memo(function (_ref) {
|
|
|
53
53
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
54
54
|
propDeprecationWarning("@atlaskit/menu" || '', 'cssFn', cssFn !== noop, '' // TODO: Create DAC post when primitives/xcss are available as alternatives
|
|
55
55
|
);
|
|
56
|
-
|
|
56
|
+
|
|
57
57
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
58
|
-
css(cssFn(undefined));
|
|
58
|
+
var UNSAFE_overrides = css(cssFn(undefined));
|
|
59
59
|
return jsx("div", _extends({
|
|
60
60
|
css: [headingStyles,
|
|
61
61
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
62
|
-
|
|
62
|
+
fg('platform.design-system-team.menu-tokenised-typography-styles') ? tokenizedHeadingStyles : baseHeadingStyles,
|
|
63
63
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
64
64
|
UNSAFE_overrides],
|
|
65
65
|
role: "heading",
|
|
@@ -69,7 +69,7 @@ var HeadingItem = /*#__PURE__*/memo(function (_ref) {
|
|
|
69
69
|
id: id
|
|
70
70
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
71
71
|
,
|
|
72
|
-
className:
|
|
72
|
+
className: UNSAFE_className
|
|
73
73
|
}, rest), children);
|
|
74
74
|
});
|
|
75
75
|
export default HeadingItem;
|
|
@@ -3,8 +3,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["children", "href", "cssFn", "description", "iconAfter", "iconBefore", "isDisabled", "isSelected", "onClick", "testId", "overrides", "onMouseDown", "shouldTitleWrap", "shouldDescriptionWrap", "className", "UNSAFE_shouldDisableRouterLink", "UNSAFE_isDraggable"];
|
|
4
4
|
/**
|
|
5
5
|
* @jsxRuntime classic
|
|
6
|
+
* @jsx jsx
|
|
6
7
|
*/
|
|
7
|
-
/** @jsx jsx */
|
|
8
8
|
import { forwardRef, memo } from 'react';
|
|
9
9
|
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -73,7 +73,7 @@ function (props, ref) {
|
|
|
73
73
|
);
|
|
74
74
|
return jsx(MenuItemPrimitive, _extends({}, rest, {
|
|
75
75
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
76
|
-
className:
|
|
76
|
+
className: UNSAFE_className
|
|
77
77
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
|
|
78
78
|
,
|
|
79
79
|
overrides: overrides,
|
|
@@ -97,7 +97,8 @@ function (props, ref) {
|
|
|
97
97
|
className = _ref.className;
|
|
98
98
|
return jsx(Component, _extends({
|
|
99
99
|
"data-testid": testId,
|
|
100
|
-
"data-is-router-link": testId ? isRouterLink ? 'true' : 'false' : undefined
|
|
100
|
+
"data-is-router-link": testId ? isRouterLink ? 'true' : 'false' : undefined,
|
|
101
|
+
"data-vc": "link-item"
|
|
101
102
|
}, rest, {
|
|
102
103
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
103
104
|
className: className
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
3
4
|
*/
|
|
4
|
-
/** @jsx jsx */
|
|
5
5
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { propDeprecationWarning } from '@atlaskit/ds-lib/deprecation-warning';
|
|
9
9
|
import noop from '@atlaskit/ds-lib/noop';
|
|
10
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
11
10
|
import { N20A } from '@atlaskit/theme/colors';
|
|
12
11
|
import SkeletonShimmer from '../internal/components/skeleton-shimmer';
|
|
13
12
|
var skeletonStyles = css({
|
|
@@ -53,9 +52,9 @@ var SkeletonHeadingItem = function SkeletonHeadingItem(_ref) {
|
|
|
53
52
|
cssFn = _ref$cssFn === void 0 ? noop : _ref$cssFn;
|
|
54
53
|
propDeprecationWarning("@atlaskit/menu" || '', 'cssFn', cssFn !== noop, '' // TODO: Create DAC post when primitives/xcss are available as alternatives
|
|
55
54
|
);
|
|
56
|
-
|
|
55
|
+
|
|
57
56
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
58
|
-
css(cssFn(undefined));
|
|
57
|
+
var UNSAFE_overrides = css(cssFn(undefined));
|
|
59
58
|
return jsx(SkeletonShimmer, {
|
|
60
59
|
isShimmering: isShimmering
|
|
61
60
|
}, function (_ref2) {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
3
4
|
*/
|
|
4
|
-
/** @jsx jsx */
|
|
5
5
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { propDeprecationWarning } from '@atlaskit/ds-lib/deprecation-warning';
|
|
9
9
|
import noop from '@atlaskit/ds-lib/noop';
|
|
10
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
11
10
|
import { N20A } from '@atlaskit/theme/colors';
|
|
12
11
|
import { borderRadius as borderRadiusFn,
|
|
13
12
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
@@ -122,9 +121,9 @@ var SkeletonItem = function SkeletonItem(_ref) {
|
|
|
122
121
|
cssFn = _ref$cssFn === void 0 ? noop : _ref$cssFn;
|
|
123
122
|
propDeprecationWarning("@atlaskit/menu" || '', 'cssFn', cssFn !== noop, '' // TODO: Create DAC post when primitives/xcss are available as alternatives
|
|
124
123
|
);
|
|
125
|
-
|
|
124
|
+
|
|
126
125
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
127
|
-
css(cssFn());
|
|
126
|
+
var UNSAFE_overrides = css(cssFn());
|
|
128
127
|
return jsx(SkeletonShimmer, {
|
|
129
128
|
isShimmering: isShimmering
|
|
130
129
|
}, function (_ref2) {
|
|
@@ -3,11 +3,10 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["isLoading", "maxWidth", "minWidth", "minHeight", "maxHeight", "testId", "role", "spacing", "className"];
|
|
4
4
|
/**
|
|
5
5
|
* @jsxRuntime classic
|
|
6
|
+
* @jsx jsx
|
|
6
7
|
*/
|
|
7
|
-
/** @jsx jsx */
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
11
10
|
import { SELECTION_STYLE_CONTEXT_DO_NOT_USE, SpacingContext } from '../internal/components/menu-context';
|
|
12
11
|
var baseStyles = css({
|
|
13
12
|
display: 'flex',
|
|
@@ -53,7 +52,7 @@ var MenuGroup = function MenuGroup(_ref) {
|
|
|
53
52
|
role: role
|
|
54
53
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
55
54
|
,
|
|
56
|
-
className:
|
|
55
|
+
className: UNSAFE_className
|
|
57
56
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
58
57
|
}, rest))));
|
|
59
58
|
};
|
|
@@ -3,8 +3,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["maxWidth", "minWidth"];
|
|
4
4
|
/**
|
|
5
5
|
* @jsxRuntime classic
|
|
6
|
+
* @jsx jsx
|
|
6
7
|
*/
|
|
7
|
-
/** @jsx jsx */
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
10
|
import MenuGroup from './menu-group';
|
|
@@ -4,14 +4,14 @@ var _excluded = ["children", "overrides", "title", "titleId", "testId", "isScrol
|
|
|
4
4
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview */
|
|
5
5
|
/**
|
|
6
6
|
* @jsxRuntime classic
|
|
7
|
+
* @jsx jsx
|
|
7
8
|
*/
|
|
8
|
-
/** @jsx jsx */
|
|
9
9
|
import { Children, forwardRef, Fragment } from 'react';
|
|
10
10
|
|
|
11
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
12
|
import { css, jsx } from '@emotion/react';
|
|
13
13
|
import { propDeprecationWarning } from '@atlaskit/ds-lib/deprecation-warning';
|
|
14
|
-
import {
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import { N30A } from '@atlaskit/theme/colors';
|
|
16
16
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
17
17
|
import { gridSize as gridSizeFn } from '@atlaskit/theme/constants';
|
|
@@ -114,7 +114,7 @@ var Section = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
114
114
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
115
115
|
propDeprecationWarning("@atlaskit/menu" || '', 'overrides', overrides !== undefined, '' // TODO: Create DAC post when primitives/xcss are available as alternatives
|
|
116
116
|
);
|
|
117
|
-
var UNSAFE_headingOverrides =
|
|
117
|
+
var UNSAFE_headingOverrides = overrides && overrides.HeadingItem && overrides.HeadingItem.cssFn;
|
|
118
118
|
var content = isList ? jsx("ul", {
|
|
119
119
|
style: {
|
|
120
120
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
@@ -142,14 +142,14 @@ var Section = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
142
142
|
}, title), content) : jsx(Fragment, null, content);
|
|
143
143
|
return jsx("div", _extends({}, rest, {
|
|
144
144
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
145
|
-
className:
|
|
145
|
+
className: UNSAFE_className,
|
|
146
146
|
id: id
|
|
147
147
|
// NOTE: Firefox allows elements that have "overflow: auto" to gain focus (as if it had tab-index="0")
|
|
148
148
|
// We have made a deliberate choice to leave this behaviour as is.
|
|
149
149
|
,
|
|
150
150
|
css: [sectionStyles, isScrollable ? scrollableStyles : unscrollableStyles, hasSeparator ?
|
|
151
151
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
152
|
-
|
|
152
|
+
fg('platform.design-system-team.section-1px-seperator-borders') ? thinSeparatorStyles : thickSeparatorStyles : noSeparatorStyles],
|
|
153
153
|
"aria-label": title,
|
|
154
154
|
"aria-labelledby": titleId,
|
|
155
155
|
"data-testid": testId,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
/**
|
|
3
3
|
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
4
5
|
*/
|
|
5
|
-
/** @jsx jsx */
|
|
6
6
|
import type { CustomItemComponentProps, CustomItemProps } from '../types';
|
|
7
7
|
interface CustomItemTypeGenericHackProps {
|
|
8
8
|
<TComponentProps>(props: CustomItemProps<TComponentProps> & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/menu",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"description": "A list of options to help users navigate, or perform actions.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"@atlaskit/ds-lib": "^2.3.0",
|
|
48
48
|
"@atlaskit/focus-ring": "^1.5.0",
|
|
49
49
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
50
|
-
"@atlaskit/primitives": "^11.
|
|
50
|
+
"@atlaskit/primitives": "^11.1.0",
|
|
51
51
|
"@atlaskit/theme": "^12.11.0",
|
|
52
|
-
"@atlaskit/tokens": "^1.
|
|
52
|
+
"@atlaskit/tokens": "^1.56.0",
|
|
53
53
|
"@babel/runtime": "^7.0.0",
|
|
54
54
|
"@emotion/react": "^11.7.1"
|
|
55
55
|
},
|
|
@@ -121,9 +121,6 @@
|
|
|
121
121
|
".": "./src/index.tsx"
|
|
122
122
|
},
|
|
123
123
|
"platform-feature-flags": {
|
|
124
|
-
"platform.design-system-team.unsafe-overrides-killswitch_c8j9m": {
|
|
125
|
-
"type": "boolean"
|
|
126
|
-
},
|
|
127
124
|
"platform.design-system-team.section-1px-seperator-borders": {
|
|
128
125
|
"type": "boolean"
|
|
129
126
|
},
|