@atlaskit/menu 1.3.12 → 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 +10 -0
- package/dist/cjs/internal/components/menu-item-primitive.js +19 -19
- 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 +7 -7
- 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 +1 -1
- 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 +2 -2
- 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 +1 -1
- 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 +2 -2
- 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 +5 -5
- package/report.api.md +107 -388
|
@@ -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';
|
|
@@ -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,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 SkeletonShimmer from '../internal/components/skeleton-shimmer';
|
|
@@ -50,7 +50,7 @@ var SkeletonHeadingItem = function SkeletonHeadingItem(_ref) {
|
|
|
50
50
|
'--width': width
|
|
51
51
|
},
|
|
52
52
|
css: [skeletonStyles, width ? customWidthStyles : defaultWidthStyles, // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
53
|
-
cssFn(undefined)],
|
|
53
|
+
css(cssFn(undefined))],
|
|
54
54
|
"data-ds--menu--skeleton-heading-item": true,
|
|
55
55
|
"data-testid": testId
|
|
56
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/"
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
".": "./src/index.tsx"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@atlaskit/ds-explorations": "^
|
|
48
|
+
"@atlaskit/ds-explorations": "^1.0.0",
|
|
49
49
|
"@atlaskit/ds-lib": "^2.1.0",
|
|
50
50
|
"@atlaskit/focus-ring": "^1.1.0",
|
|
51
51
|
"@atlaskit/theme": "^12.2.0",
|
|
52
52
|
"@atlaskit/tokens": "^0.10.0",
|
|
53
53
|
"@babel/runtime": "^7.0.0",
|
|
54
|
-
"@emotion/
|
|
54
|
+
"@emotion/react": "^11.7.1"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"react": "^16.8.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@atlaskit/avatar": "^21.1.0",
|
|
62
|
-
"@atlaskit/button": "^16.
|
|
62
|
+
"@atlaskit/button": "^16.4.0",
|
|
63
63
|
"@atlaskit/docs": "*",
|
|
64
64
|
"@atlaskit/icon": "^21.11.0",
|
|
65
65
|
"@atlaskit/icon-file-type": "^6.0.0",
|
|
@@ -68,13 +68,13 @@
|
|
|
68
68
|
"@atlaskit/visual-regression": "*",
|
|
69
69
|
"@atlaskit/webdriver-runner": "*",
|
|
70
70
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
71
|
+
"@emotion/jest": "^11.8.0",
|
|
71
72
|
"@testing-library/dom": "^8.17.1",
|
|
72
73
|
"@testing-library/react": "^12.1.5",
|
|
73
74
|
"@types/react-router-dom": "^4.3.1",
|
|
74
75
|
"ast-types": "^0.13.3",
|
|
75
76
|
"bind-event-listener": "^2.1.1",
|
|
76
77
|
"jest-axe": "^4.0.0",
|
|
77
|
-
"jest-emotion": "^10.0.32",
|
|
78
78
|
"jscodeshift": "^0.13.0",
|
|
79
79
|
"react-router-dom": "^4.2.2",
|
|
80
80
|
"storybook-addon-performance": "^0.16.0",
|