@atlaskit/menu 1.3.11 → 1.4.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 +16 -0
- package/dist/cjs/internal/components/menu-item-primitive.js +26 -25
- package/dist/cjs/internal/components/skeleton-shimmer.js +4 -4
- package/dist/cjs/menu-item/button-item.js +3 -3
- package/dist/cjs/menu-item/custom-item.js +4 -4
- package/dist/cjs/menu-item/heading-item.js +4 -4
- package/dist/cjs/menu-item/link-item.js +3 -3
- package/dist/cjs/menu-item/skeleton-heading-item.js +9 -11
- package/dist/cjs/menu-item/skeleton-item.js +10 -10
- package/dist/cjs/menu-section/menu-group.js +2 -2
- package/dist/cjs/menu-section/popup-menu-group.js +2 -2
- package/dist/cjs/menu-section/section.js +8 -8
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/internal/components/menu-item-primitive.js +8 -7
- package/dist/es2019/internal/components/skeleton-shimmer.js +1 -1
- package/dist/es2019/menu-item/button-item.js +1 -1
- package/dist/es2019/menu-item/custom-item.js +1 -1
- package/dist/es2019/menu-item/heading-item.js +2 -2
- package/dist/es2019/menu-item/link-item.js +1 -1
- package/dist/es2019/menu-item/skeleton-heading-item.js +4 -5
- package/dist/es2019/menu-item/skeleton-item.js +2 -2
- package/dist/es2019/menu-section/menu-group.js +1 -1
- package/dist/es2019/menu-section/popup-menu-group.js +1 -1
- package/dist/es2019/menu-section/section.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/internal/components/menu-item-primitive.js +8 -7
- package/dist/esm/internal/components/skeleton-shimmer.js +1 -1
- package/dist/esm/menu-item/button-item.js +1 -1
- package/dist/esm/menu-item/custom-item.js +1 -1
- package/dist/esm/menu-item/heading-item.js +2 -2
- package/dist/esm/menu-item/link-item.js +1 -1
- package/dist/esm/menu-item/skeleton-heading-item.js +4 -5
- package/dist/esm/menu-item/skeleton-item.js +2 -2
- package/dist/esm/menu-section/menu-group.js +1 -1
- package/dist/esm/menu-section/popup-menu-group.js +1 -1
- package/dist/esm/menu-section/section.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/internal/components/menu-item-primitive.d.ts +2 -2
- package/dist/types/internal/components/skeleton-shimmer.d.ts +2 -1
- package/dist/types/menu-item/heading-item.d.ts +2 -1
- package/dist/types/menu-item/skeleton-heading-item.d.ts +2 -2
- package/dist/types/menu-item/skeleton-item.d.ts +2 -2
- package/dist/types/menu-section/menu-group.d.ts +3 -2
- package/dist/types/menu-section/popup-menu-group.d.ts +3 -2
- package/dist/types/types.d.ts +1 -1
- package/dist/types-ts4.0/internal/components/menu-item-primitive.d.ts +2 -2
- package/dist/types-ts4.0/internal/components/skeleton-shimmer.d.ts +2 -1
- package/dist/types-ts4.0/menu-item/heading-item.d.ts +2 -1
- package/dist/types-ts4.0/menu-item/skeleton-heading-item.d.ts +2 -2
- package/dist/types-ts4.0/menu-item/skeleton-item.d.ts +2 -2
- package/dist/types-ts4.0/menu-section/menu-group.d.ts +3 -2
- package/dist/types-ts4.0/menu-section/popup-menu-group.d.ts +3 -2
- package/dist/types-ts4.0/types.d.ts +1 -1
- package/package.json +9 -6
- package/report.api.md +107 -388
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { css, jsx } from '@emotion/
|
|
2
|
+
import { css, jsx } from '@emotion/react';
|
|
3
3
|
import noop from '@atlaskit/ds-lib/noop';
|
|
4
4
|
import { N20A } from '@atlaskit/theme/colors';
|
|
5
|
-
import { gridSize } from '@atlaskit/theme/constants';
|
|
6
5
|
import SkeletonShimmer from '../internal/components/skeleton-shimmer';
|
|
7
6
|
const skeletonStyles = css({
|
|
8
|
-
padding:
|
|
7
|
+
padding: `${"var(--ds-scale-0, 0px)"} ${"var(--ds-scale-250, 20px)"}`,
|
|
9
8
|
'::after': {
|
|
10
9
|
display: 'block',
|
|
11
10
|
width: '30%',
|
|
12
|
-
height:
|
|
11
|
+
height: "var(--ds-scale-100, 8px)",
|
|
13
12
|
backgroundColor: `var(--ds-skeleton, ${N20A})`,
|
|
14
13
|
borderRadius: 100,
|
|
15
14
|
content: '""'
|
|
@@ -49,7 +48,7 @@ const SkeletonHeadingItem = ({
|
|
|
49
48
|
'--width': width
|
|
50
49
|
},
|
|
51
50
|
css: [skeletonStyles, width ? customWidthStyles : defaultWidthStyles, // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
52
|
-
cssFn(undefined)],
|
|
51
|
+
css(cssFn(undefined))],
|
|
53
52
|
"data-ds--menu--skeleton-heading-item": true,
|
|
54
53
|
"data-testid": testId
|
|
55
54
|
}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { css, jsx } from '@emotion/
|
|
2
|
+
import { css, jsx } from '@emotion/react';
|
|
3
3
|
import noop from '@atlaskit/ds-lib/noop';
|
|
4
4
|
import { N20A } from '@atlaskit/theme/colors';
|
|
5
5
|
import { borderRadius as borderRadiusFn, gridSize as gridSizeFn } from '@atlaskit/theme/constants';
|
|
@@ -104,7 +104,7 @@ const SkeletonItem = ({
|
|
|
104
104
|
'--width': width
|
|
105
105
|
},
|
|
106
106
|
css: [skeletonStyles, (hasAvatar || hasIcon) && beforeElementStyles, hasAvatar && avatarStyles, hasIcon && iconStyles, width ? customWidthStyles : defaultWidthStyles, // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
107
|
-
cssFn()],
|
|
107
|
+
css(cssFn())],
|
|
108
108
|
"data-testid": testId
|
|
109
109
|
}));
|
|
110
110
|
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { forwardRef, Fragment } from 'react';
|
|
5
|
-
import { css, jsx } from '@emotion/
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import { N30A } from '@atlaskit/theme/colors';
|
|
7
7
|
import { gridSize as gridSizeFn } from '@atlaskit/theme/constants';
|
|
8
8
|
import { headingSizes } from '@atlaskit/theme/typography';
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { Fragment } from 'react';
|
|
3
|
-
import { ClassNames, css, jsx } from '@emotion/
|
|
3
|
+
import { ClassNames, css, jsx } from '@emotion/react';
|
|
4
4
|
import FocusRing from '@atlaskit/focus-ring';
|
|
5
5
|
import { N20, N200, N30 } from '@atlaskit/theme/colors';
|
|
6
6
|
import { fontSize as fontSizeFn, gridSize as gridSizeFn } from '@atlaskit/theme/constants';
|
|
@@ -14,11 +14,11 @@ var defaultRender = function defaultRender(Component, props) {
|
|
|
14
14
|
|
|
15
15
|
var gridSize = gridSizeFn();
|
|
16
16
|
var fontSize = fontSizeFn();
|
|
17
|
-
var itemTopBottomPadding =
|
|
18
|
-
var itemSidePadding =
|
|
19
|
-
var itemElemSpacing =
|
|
17
|
+
var itemTopBottomPadding = "var(--ds-scale-100, 8px)";
|
|
18
|
+
var itemSidePadding = "var(--ds-scale-250, 20px)";
|
|
19
|
+
var itemElemSpacing = "var(--ds-scale-150, 12px)";
|
|
20
20
|
var itemDescriptionSpacing = gridSize * 0.375;
|
|
21
|
-
var itemMinHeight =
|
|
21
|
+
var itemMinHeight = "var(--ds-scale-500, 40px)";
|
|
22
22
|
var beforeElementStyles = css({
|
|
23
23
|
display: 'flex',
|
|
24
24
|
marginRight: itemElemSpacing,
|
|
@@ -61,8 +61,9 @@ var primitiveStyles = css({
|
|
|
61
61
|
boxSizing: 'border-box',
|
|
62
62
|
width: '100%',
|
|
63
63
|
minHeight: itemMinHeight,
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
// TODO Delete this comment after verifying spacing token -> previous value `0`
|
|
65
|
+
margin: "var(--ds-scale-0, 0px)",
|
|
66
|
+
padding: "".concat(itemTopBottomPadding, " ").concat(itemSidePadding),
|
|
66
67
|
alignItems: 'center',
|
|
67
68
|
border: 0,
|
|
68
69
|
fontSize: fontSize,
|
|
@@ -4,7 +4,7 @@ var _excluded = ["children", "cssFn", "description", "iconAfter", "iconBefore",
|
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import { forwardRef, memo } from 'react';
|
|
7
|
-
import { jsx } from '@emotion/
|
|
7
|
+
import { jsx } from '@emotion/react';
|
|
8
8
|
import noop from '@atlaskit/ds-lib/noop';
|
|
9
9
|
import MenuItemPrimitive from '../internal/components/menu-item-primitive';
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@ var _excluded = ["component", "cssFn", "isDisabled", "isSelected", "onClick", "t
|
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import { forwardRef, memo } from 'react';
|
|
7
|
-
import { css, jsx } from '@emotion/
|
|
7
|
+
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import noop from '@atlaskit/ds-lib/noop';
|
|
9
9
|
import MenuItemPrimitive from '../internal/components/menu-item-primitive';
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@ var _excluded = ["children", "testId", "id", "cssFn"];
|
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import { memo } from 'react';
|
|
7
|
-
import { css, jsx } from '@emotion/
|
|
7
|
+
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import noop from '@atlaskit/ds-lib/noop';
|
|
9
9
|
import { N300 } from '@atlaskit/theme/colors';
|
|
10
10
|
import { gridSize as gridSizeFn } from '@atlaskit/theme/constants';
|
|
@@ -40,7 +40,7 @@ var HeadingItem = /*#__PURE__*/memo(function (_ref) {
|
|
|
40
40
|
|
|
41
41
|
return jsx("div", _extends({
|
|
42
42
|
css: [headingStyles, // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
43
|
-
cssFn(undefined)],
|
|
43
|
+
css(cssFn(undefined))],
|
|
44
44
|
"data-testid": testId,
|
|
45
45
|
"data-ds--menu--heading-item": true,
|
|
46
46
|
id: id
|
|
@@ -4,7 +4,7 @@ var _excluded = ["children", "href", "cssFn", "description", "iconAfter", "iconB
|
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import { forwardRef, memo } from 'react';
|
|
7
|
-
import { jsx } from '@emotion/
|
|
7
|
+
import { jsx } from '@emotion/react';
|
|
8
8
|
import noop from '@atlaskit/ds-lib/noop';
|
|
9
9
|
import MenuItemPrimitive from '../internal/components/menu-item-primitive';
|
|
10
10
|
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { css, jsx } from '@emotion/
|
|
2
|
+
import { css, jsx } from '@emotion/react';
|
|
3
3
|
import noop from '@atlaskit/ds-lib/noop';
|
|
4
4
|
import { N20A } from '@atlaskit/theme/colors';
|
|
5
|
-
import { gridSize } from '@atlaskit/theme/constants';
|
|
6
5
|
import SkeletonShimmer from '../internal/components/skeleton-shimmer';
|
|
7
6
|
var skeletonStyles = css({
|
|
8
|
-
padding: "0 ".concat(
|
|
7
|
+
padding: "var(--ds-scale-0, 0px)".concat(" ", "var(--ds-scale-250, 20px)"),
|
|
9
8
|
'::after': {
|
|
10
9
|
display: 'block',
|
|
11
10
|
width: '30%',
|
|
12
|
-
height:
|
|
11
|
+
height: "var(--ds-scale-100, 8px)",
|
|
13
12
|
backgroundColor: "var(--ds-skeleton, ".concat(N20A, ")"),
|
|
14
13
|
borderRadius: 100,
|
|
15
14
|
content: '""'
|
|
@@ -51,7 +50,7 @@ var SkeletonHeadingItem = function SkeletonHeadingItem(_ref) {
|
|
|
51
50
|
'--width': width
|
|
52
51
|
},
|
|
53
52
|
css: [skeletonStyles, width ? customWidthStyles : defaultWidthStyles, // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
54
|
-
cssFn(undefined)],
|
|
53
|
+
css(cssFn(undefined))],
|
|
55
54
|
"data-ds--menu--skeleton-heading-item": true,
|
|
56
55
|
"data-testid": testId
|
|
57
56
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { css, jsx } from '@emotion/
|
|
2
|
+
import { css, jsx } from '@emotion/react';
|
|
3
3
|
import noop from '@atlaskit/ds-lib/noop';
|
|
4
4
|
import { N20A } from '@atlaskit/theme/colors';
|
|
5
5
|
import { borderRadius as borderRadiusFn, gridSize as gridSizeFn } from '@atlaskit/theme/constants';
|
|
@@ -106,7 +106,7 @@ var SkeletonItem = function SkeletonItem(_ref) {
|
|
|
106
106
|
'--width': width
|
|
107
107
|
},
|
|
108
108
|
css: [skeletonStyles, (hasAvatar || hasIcon) && beforeElementStyles, hasAvatar && avatarStyles, hasIcon && iconStyles, width ? customWidthStyles : defaultWidthStyles, // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
109
|
-
cssFn()],
|
|
109
|
+
css(cssFn())],
|
|
110
110
|
"data-testid": testId
|
|
111
111
|
});
|
|
112
112
|
});
|
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["maxWidth", "minWidth", "minHeight", "maxHeight", "testId", "role"];
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
|
-
import { jsx } from '@emotion/
|
|
6
|
+
import { jsx } from '@emotion/react';
|
|
7
7
|
import { UNSAFE_Box as Box } from '@atlaskit/ds-explorations';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["maxWidth", "minWidth"];
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
|
-
import { jsx } from '@emotion/
|
|
6
|
+
import { jsx } from '@emotion/react';
|
|
7
7
|
import MenuGroup from './menu-group';
|
|
8
8
|
/**
|
|
9
9
|
* @deprecated
|
|
@@ -4,7 +4,7 @@ var _excluded = ["children", "overrides", "title", "testId", "isScrollable", "ha
|
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import { forwardRef, Fragment } from 'react';
|
|
7
|
-
import { css, jsx } from '@emotion/
|
|
7
|
+
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { N30A } from '@atlaskit/theme/colors';
|
|
9
9
|
import { gridSize as gridSizeFn } from '@atlaskit/theme/constants';
|
|
10
10
|
import { headingSizes } from '@atlaskit/theme/typography';
|
package/dist/esm/version.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
2
|
import type { MenuItemPrimitiveProps } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* __Menu item primitive__
|
|
@@ -14,5 +14,5 @@ import type { MenuItemPrimitiveProps } from '../../types';
|
|
|
14
14
|
* </MenuItemPrimitive>
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
|
-
declare const MenuItemPrimitive: ({ children, title, description, iconAfter, iconBefore, overrides, className, shouldTitleWrap, shouldDescriptionWrap, isDisabled, isSelected, }: MenuItemPrimitiveProps) => JSX.Element;
|
|
17
|
+
declare const MenuItemPrimitive: ({ children, title, description, iconAfter, iconBefore, overrides, className, shouldTitleWrap, shouldDescriptionWrap, isDisabled, isSelected, }: MenuItemPrimitiveProps) => jsx.JSX.Element;
|
|
18
18
|
export default MenuItemPrimitive;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
3
4
|
declare type SkeletonShimmerProps = {
|
|
4
5
|
children: ({ className }: {
|
|
5
6
|
className?: string;
|
|
@@ -19,5 +20,5 @@ declare type SkeletonShimmerProps = {
|
|
|
19
20
|
*
|
|
20
21
|
* @internal
|
|
21
22
|
*/
|
|
22
|
-
declare const SkeletonShimmer: ({ children, isShimmering, }: SkeletonShimmerProps) => JSX.Element;
|
|
23
|
+
declare const SkeletonShimmer: ({ children, isShimmering, }: SkeletonShimmerProps) => jsx.JSX.Element;
|
|
23
24
|
export default SkeletonShimmer;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
2
3
|
import type { HeadingItemProps } from '../types';
|
|
3
4
|
/**
|
|
4
5
|
* __Heading item__
|
|
@@ -8,5 +9,5 @@ import type { HeadingItemProps } from '../types';
|
|
|
8
9
|
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/menu/docs/heading-item)
|
|
9
10
|
* - [Code](https://atlaskit.atlassian.com/packages/design-system/menu)
|
|
10
11
|
*/
|
|
11
|
-
declare const HeadingItem: import("react").MemoExoticComponent<({ children, testId, id, cssFn, ...rest }: HeadingItemProps) => JSX.Element>;
|
|
12
|
+
declare const HeadingItem: import("react").MemoExoticComponent<({ children, testId, id, cssFn, ...rest }: HeadingItemProps) => jsx.JSX.Element>;
|
|
12
13
|
export default HeadingItem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
2
|
import type { SkeletonHeadingItemProps } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* __Skeleton heading item__
|
|
@@ -8,5 +8,5 @@ import type { SkeletonHeadingItemProps } from '../types';
|
|
|
8
8
|
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/menu/docs/skeleton-heading-item)
|
|
9
9
|
* - [Code](https://atlaskit.atlassian.com/packages/design-system/menu)
|
|
10
10
|
*/
|
|
11
|
-
declare const SkeletonHeadingItem: ({ isShimmering, testId, width, cssFn, }: SkeletonHeadingItemProps) => JSX.Element;
|
|
11
|
+
declare const SkeletonHeadingItem: ({ isShimmering, testId, width, cssFn, }: SkeletonHeadingItemProps) => jsx.JSX.Element;
|
|
12
12
|
export default SkeletonHeadingItem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
2
|
import type { SkeletonItemProps } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* __Skeleton item__
|
|
@@ -8,5 +8,5 @@ import type { SkeletonItemProps } from '../types';
|
|
|
8
8
|
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/menu/docs/skeleton-item)
|
|
9
9
|
* - [Code](https://atlaskit.atlassian.com/packages/design-system/menu)
|
|
10
10
|
*/
|
|
11
|
-
declare const SkeletonItem: ({ hasAvatar, hasIcon, isShimmering, testId, width, cssFn, }: SkeletonItemProps) => JSX.Element;
|
|
11
|
+
declare const SkeletonItem: ({ hasAvatar, hasIcon, isShimmering, testId, width, cssFn, }: SkeletonItemProps) => jsx.JSX.Element;
|
|
12
12
|
export default SkeletonItem;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
2
3
|
import type { MenuGroupProps } from '../types';
|
|
3
4
|
/**
|
|
4
5
|
* __Menu group__
|
|
@@ -8,5 +9,5 @@ import type { MenuGroupProps } from '../types';
|
|
|
8
9
|
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/menu/docs/menu-group)
|
|
9
10
|
* - [Code](https://atlaskit.atlassian.com/packages/design-system/menu)
|
|
10
11
|
*/
|
|
11
|
-
declare const MenuGroup: ({ maxWidth, minWidth, minHeight, maxHeight, testId, role, ...rest }: MenuGroupProps) => JSX.Element;
|
|
12
|
+
declare const MenuGroup: ({ maxWidth, minWidth, minHeight, maxHeight, testId, role, ...rest }: MenuGroupProps) => jsx.JSX.Element;
|
|
12
13
|
export default MenuGroup;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
2
3
|
import type { MenuGroupProps } from '../types';
|
|
3
4
|
/**
|
|
4
5
|
* @deprecated
|
|
5
6
|
*/
|
|
6
|
-
declare const PopupMenuGroup: ({ maxWidth, minWidth, ...rest }: MenuGroupProps) => JSX.Element;
|
|
7
|
+
declare const PopupMenuGroup: ({ maxWidth, minWidth, ...rest }: MenuGroupProps) => jsx.JSX.Element;
|
|
7
8
|
export default PopupMenuGroup;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
2
|
import type { MenuItemPrimitiveProps } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* __Menu item primitive__
|
|
@@ -14,5 +14,5 @@ import type { MenuItemPrimitiveProps } from '../../types';
|
|
|
14
14
|
* </MenuItemPrimitive>
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
|
-
declare const MenuItemPrimitive: ({ children, title, description, iconAfter, iconBefore, overrides, className, shouldTitleWrap, shouldDescriptionWrap, isDisabled, isSelected, }: MenuItemPrimitiveProps) => JSX.Element;
|
|
17
|
+
declare const MenuItemPrimitive: ({ children, title, description, iconAfter, iconBefore, overrides, className, shouldTitleWrap, shouldDescriptionWrap, isDisabled, isSelected, }: MenuItemPrimitiveProps) => jsx.JSX.Element;
|
|
18
18
|
export default MenuItemPrimitive;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
3
4
|
declare type SkeletonShimmerProps = {
|
|
4
5
|
children: ({ className }: {
|
|
5
6
|
className?: string;
|
|
@@ -19,5 +20,5 @@ declare type SkeletonShimmerProps = {
|
|
|
19
20
|
*
|
|
20
21
|
* @internal
|
|
21
22
|
*/
|
|
22
|
-
declare const SkeletonShimmer: ({ children, isShimmering, }: SkeletonShimmerProps) => JSX.Element;
|
|
23
|
+
declare const SkeletonShimmer: ({ children, isShimmering, }: SkeletonShimmerProps) => jsx.JSX.Element;
|
|
23
24
|
export default SkeletonShimmer;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
2
3
|
import type { HeadingItemProps } from '../types';
|
|
3
4
|
/**
|
|
4
5
|
* __Heading item__
|
|
@@ -8,5 +9,5 @@ import type { HeadingItemProps } from '../types';
|
|
|
8
9
|
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/menu/docs/heading-item)
|
|
9
10
|
* - [Code](https://atlaskit.atlassian.com/packages/design-system/menu)
|
|
10
11
|
*/
|
|
11
|
-
declare const HeadingItem: import("react").MemoExoticComponent<({ children, testId, id, cssFn, ...rest }: HeadingItemProps) => JSX.Element>;
|
|
12
|
+
declare const HeadingItem: import("react").MemoExoticComponent<({ children, testId, id, cssFn, ...rest }: HeadingItemProps) => jsx.JSX.Element>;
|
|
12
13
|
export default HeadingItem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
2
|
import type { SkeletonHeadingItemProps } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* __Skeleton heading item__
|
|
@@ -8,5 +8,5 @@ import type { SkeletonHeadingItemProps } from '../types';
|
|
|
8
8
|
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/menu/docs/skeleton-heading-item)
|
|
9
9
|
* - [Code](https://atlaskit.atlassian.com/packages/design-system/menu)
|
|
10
10
|
*/
|
|
11
|
-
declare const SkeletonHeadingItem: ({ isShimmering, testId, width, cssFn, }: SkeletonHeadingItemProps) => JSX.Element;
|
|
11
|
+
declare const SkeletonHeadingItem: ({ isShimmering, testId, width, cssFn, }: SkeletonHeadingItemProps) => jsx.JSX.Element;
|
|
12
12
|
export default SkeletonHeadingItem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
2
|
import type { SkeletonItemProps } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* __Skeleton item__
|
|
@@ -8,5 +8,5 @@ import type { SkeletonItemProps } from '../types';
|
|
|
8
8
|
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/menu/docs/skeleton-item)
|
|
9
9
|
* - [Code](https://atlaskit.atlassian.com/packages/design-system/menu)
|
|
10
10
|
*/
|
|
11
|
-
declare const SkeletonItem: ({ hasAvatar, hasIcon, isShimmering, testId, width, cssFn, }: SkeletonItemProps) => JSX.Element;
|
|
11
|
+
declare const SkeletonItem: ({ hasAvatar, hasIcon, isShimmering, testId, width, cssFn, }: SkeletonItemProps) => jsx.JSX.Element;
|
|
12
12
|
export default SkeletonItem;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
2
3
|
import type { MenuGroupProps } from '../types';
|
|
3
4
|
/**
|
|
4
5
|
* __Menu group__
|
|
@@ -8,5 +9,5 @@ import type { MenuGroupProps } from '../types';
|
|
|
8
9
|
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/menu/docs/menu-group)
|
|
9
10
|
* - [Code](https://atlaskit.atlassian.com/packages/design-system/menu)
|
|
10
11
|
*/
|
|
11
|
-
declare const MenuGroup: ({ maxWidth, minWidth, minHeight, maxHeight, testId, role, ...rest }: MenuGroupProps) => JSX.Element;
|
|
12
|
+
declare const MenuGroup: ({ maxWidth, minWidth, minHeight, maxHeight, testId, role, ...rest }: MenuGroupProps) => jsx.JSX.Element;
|
|
12
13
|
export default MenuGroup;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
2
3
|
import type { MenuGroupProps } from '../types';
|
|
3
4
|
/**
|
|
4
5
|
* @deprecated
|
|
5
6
|
*/
|
|
6
|
-
declare const PopupMenuGroup: ({ maxWidth, minWidth, ...rest }: MenuGroupProps) => JSX.Element;
|
|
7
|
+
declare const PopupMenuGroup: ({ maxWidth, minWidth, ...rest }: MenuGroupProps) => jsx.JSX.Element;
|
|
7
8
|
export default PopupMenuGroup;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/menu",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "A collection of composable menu components that can be used anywhere.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -15,13 +15,15 @@
|
|
|
15
15
|
"typesVersions": {
|
|
16
16
|
">=4.0 <4.5": {
|
|
17
17
|
"*": [
|
|
18
|
-
"dist/types-ts4.0/*"
|
|
18
|
+
"dist/types-ts4.0/*",
|
|
19
|
+
"dist/types-ts4.0/index.d.ts"
|
|
19
20
|
]
|
|
20
21
|
}
|
|
21
22
|
},
|
|
22
23
|
"sideEffects": false,
|
|
23
24
|
"atlaskit:src": "src/index.tsx",
|
|
24
25
|
"atlassian": {
|
|
26
|
+
"disableProductCI": true,
|
|
25
27
|
"team": "Design System Team",
|
|
26
28
|
"releaseModel": "scheduled",
|
|
27
29
|
"website": {
|
|
@@ -43,13 +45,13 @@
|
|
|
43
45
|
".": "./src/index.tsx"
|
|
44
46
|
},
|
|
45
47
|
"dependencies": {
|
|
46
|
-
"@atlaskit/ds-explorations": "^
|
|
48
|
+
"@atlaskit/ds-explorations": "^1.0.0",
|
|
47
49
|
"@atlaskit/ds-lib": "^2.1.0",
|
|
48
50
|
"@atlaskit/focus-ring": "^1.1.0",
|
|
49
51
|
"@atlaskit/theme": "^12.2.0",
|
|
50
52
|
"@atlaskit/tokens": "^0.10.0",
|
|
51
53
|
"@babel/runtime": "^7.0.0",
|
|
52
|
-
"@emotion/
|
|
54
|
+
"@emotion/react": "^11.7.1"
|
|
53
55
|
},
|
|
54
56
|
"peerDependencies": {
|
|
55
57
|
"react": "^16.8.0",
|
|
@@ -57,7 +59,7 @@
|
|
|
57
59
|
},
|
|
58
60
|
"devDependencies": {
|
|
59
61
|
"@atlaskit/avatar": "^21.1.0",
|
|
60
|
-
"@atlaskit/button": "^16.
|
|
62
|
+
"@atlaskit/button": "^16.4.0",
|
|
61
63
|
"@atlaskit/docs": "*",
|
|
62
64
|
"@atlaskit/icon": "^21.11.0",
|
|
63
65
|
"@atlaskit/icon-file-type": "^6.0.0",
|
|
@@ -66,13 +68,13 @@
|
|
|
66
68
|
"@atlaskit/visual-regression": "*",
|
|
67
69
|
"@atlaskit/webdriver-runner": "*",
|
|
68
70
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
71
|
+
"@emotion/jest": "^11.8.0",
|
|
69
72
|
"@testing-library/dom": "^8.17.1",
|
|
70
73
|
"@testing-library/react": "^12.1.5",
|
|
71
74
|
"@types/react-router-dom": "^4.3.1",
|
|
72
75
|
"ast-types": "^0.13.3",
|
|
73
76
|
"bind-event-listener": "^2.1.1",
|
|
74
77
|
"jest-axe": "^4.0.0",
|
|
75
|
-
"jest-emotion": "^10.0.32",
|
|
76
78
|
"jscodeshift": "^0.13.0",
|
|
77
79
|
"react-router-dom": "^4.2.2",
|
|
78
80
|
"storybook-addon-performance": "^0.16.0",
|
|
@@ -96,6 +98,7 @@
|
|
|
96
98
|
"emotion"
|
|
97
99
|
],
|
|
98
100
|
"analytics": "analytics-next",
|
|
101
|
+
"design-tokens": "spacing",
|
|
99
102
|
"theming": "tokens",
|
|
100
103
|
"deprecation": "no-deprecated-imports"
|
|
101
104
|
}
|