@atlaskit/menu 1.7.2 → 1.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +5 -3
- package/report.api.md +3 -0
- package/tmp/api-report-tmp.d.ts +220 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/menu
|
|
2
2
|
|
|
3
|
+
## 1.7.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`33f10b7eb36`](https://bitbucket.org/atlassian/atlassian-frontend/commits/33f10b7eb36) - Removing unused dependencies and dev dependencies
|
|
8
|
+
|
|
9
|
+
## 1.7.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`a1c538cb238`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a1c538cb238) - Enrol @atlaskit/menu on push model consumption in Jira.
|
|
14
|
+
|
|
3
15
|
## 1.7.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/menu",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.4",
|
|
4
4
|
"description": "A collection of composable menu components that can be used anywhere.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -24,7 +24,10 @@
|
|
|
24
24
|
"atlaskit:src": "src/index.tsx",
|
|
25
25
|
"atlassian": {
|
|
26
26
|
"team": "Design System Team",
|
|
27
|
-
"releaseModel": "
|
|
27
|
+
"releaseModel": "continuous",
|
|
28
|
+
"productPushConsumption": [
|
|
29
|
+
"jira"
|
|
30
|
+
],
|
|
28
31
|
"website": {
|
|
29
32
|
"name": "Menu",
|
|
30
33
|
"category": "Components"
|
|
@@ -59,7 +62,6 @@
|
|
|
59
62
|
"react-dom": "^16.8.0"
|
|
60
63
|
},
|
|
61
64
|
"devDependencies": {
|
|
62
|
-
"@atlaskit/avatar": "^21.3.0",
|
|
63
65
|
"@atlaskit/button": "^16.7.0",
|
|
64
66
|
"@atlaskit/docs": "*",
|
|
65
67
|
"@atlaskit/icon": "^21.12.0",
|
package/report.api.md
CHANGED
|
@@ -210,6 +210,9 @@ interface SectionProps {
|
|
|
210
210
|
export { SectionProps as SectionBaseProps };
|
|
211
211
|
export { SectionProps };
|
|
212
212
|
|
|
213
|
+
// @internal
|
|
214
|
+
export const SELECTION_STYLE_CONTEXT_DO_NOT_USE: Context<'border' | 'notch'>;
|
|
215
|
+
|
|
213
216
|
// @public
|
|
214
217
|
export const SkeletonHeadingItem: ({
|
|
215
218
|
isShimmering,
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
## API Report File for "@atlaskit/menu"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
|
|
9
|
+
import { ComponentType } from 'react';
|
|
10
|
+
import { Context } from 'react';
|
|
11
|
+
import { CSSObject } from '@emotion/react';
|
|
12
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
13
|
+
import { jsx } from '@emotion/react';
|
|
14
|
+
import { MemoExoticComponent } from 'react';
|
|
15
|
+
import { ReactNode } from 'react';
|
|
16
|
+
import { Ref } from 'react';
|
|
17
|
+
import { RefAttributes } from 'react';
|
|
18
|
+
|
|
19
|
+
// @public (undocumented)
|
|
20
|
+
export interface BaseItemProps {
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
// @deprecated
|
|
23
|
+
cssFn?: CSSFn;
|
|
24
|
+
description?: JSX.Element | string;
|
|
25
|
+
iconAfter?: React.ReactNode;
|
|
26
|
+
iconBefore?: React.ReactNode;
|
|
27
|
+
isDisabled?: boolean;
|
|
28
|
+
isSelected?: boolean;
|
|
29
|
+
onClick?: (event: React.KeyboardEvent | React.MouseEvent) => void;
|
|
30
|
+
onMouseDown?: React.MouseEventHandler;
|
|
31
|
+
// @deprecated
|
|
32
|
+
overrides?: Overrides;
|
|
33
|
+
shouldDescriptionWrap?: boolean;
|
|
34
|
+
shouldTitleWrap?: boolean;
|
|
35
|
+
testId?: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// @public
|
|
39
|
+
export const ButtonItem: MemoExoticComponent<ForwardRefExoticComponent<ButtonItemProps & RefAttributes<HTMLElement>>>;
|
|
40
|
+
|
|
41
|
+
// @public (undocumented)
|
|
42
|
+
export interface ButtonItemProps extends BaseItemProps {
|
|
43
|
+
id?: string;
|
|
44
|
+
role?: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// @public @deprecated
|
|
48
|
+
export interface CSSFn<TState = ItemState extends void ? void : ItemState> {
|
|
49
|
+
// (undocumented)
|
|
50
|
+
(currentState: TState): CSSObject | CSSObject[];
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// @public
|
|
54
|
+
export const CustomItem: CustomItemTypeGenericHackProps;
|
|
55
|
+
|
|
56
|
+
// @public (undocumented)
|
|
57
|
+
export interface CustomItemComponentProps {
|
|
58
|
+
'data-testid'?: string;
|
|
59
|
+
children: React.ReactNode;
|
|
60
|
+
className: string;
|
|
61
|
+
disabled?: boolean;
|
|
62
|
+
draggable: boolean;
|
|
63
|
+
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
64
|
+
onDragStart?: (event: React.DragEvent) => void;
|
|
65
|
+
onMouseDown?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
66
|
+
ref?: Ref<any>;
|
|
67
|
+
tabIndex?: number;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// @public (undocumented)
|
|
71
|
+
export interface CustomItemProps<TCustomComponentProps = CustomItemComponentProps> extends BaseItemProps {
|
|
72
|
+
component?: React.ComponentType<TCustomComponentProps>;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// @public (undocumented)
|
|
76
|
+
interface CustomItemTypeGenericHackProps {
|
|
77
|
+
// (undocumented)
|
|
78
|
+
<TComponentProps>(props: CustomItemProps<TComponentProps> & {
|
|
79
|
+
ref?: any;
|
|
80
|
+
} & Omit<TComponentProps, keyof CustomItemComponentProps>): JSX.Element | null;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// @public (undocumented)
|
|
84
|
+
export type Dimension = number | string;
|
|
85
|
+
|
|
86
|
+
// @public
|
|
87
|
+
export const HeadingItem: MemoExoticComponent<({ children, testId, id, cssFn, ...rest }: HeadingItemProps) => jsx.JSX.Element>;
|
|
88
|
+
|
|
89
|
+
// @public (undocumented)
|
|
90
|
+
export interface HeadingItemProps {
|
|
91
|
+
children: React.ReactNode;
|
|
92
|
+
// @deprecated
|
|
93
|
+
cssFn?: StatelessCSSFn;
|
|
94
|
+
id?: string;
|
|
95
|
+
testId?: string;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// @public (undocumented)
|
|
99
|
+
export type ItemState = {
|
|
100
|
+
isSelected: boolean;
|
|
101
|
+
isDisabled: boolean;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
// @public
|
|
105
|
+
export const LinkItem: MemoExoticComponent<ForwardRefExoticComponent<LinkItemProps & RefAttributes<HTMLElement>>>;
|
|
106
|
+
|
|
107
|
+
// @public (undocumented)
|
|
108
|
+
export interface LinkItemProps extends BaseItemProps {
|
|
109
|
+
href?: string;
|
|
110
|
+
rel?: string;
|
|
111
|
+
role?: string;
|
|
112
|
+
target?: string;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// @public
|
|
116
|
+
export const MenuGroup: ({ maxWidth, minWidth, minHeight, maxHeight, testId, role, spacing, ...rest }: MenuGroupProps) => jsx.JSX.Element;
|
|
117
|
+
|
|
118
|
+
// @public (undocumented)
|
|
119
|
+
export interface MenuGroupProps extends MenuGroupSizing {
|
|
120
|
+
children: React.ReactNode;
|
|
121
|
+
onClick?: (event: React.KeyboardEvent | React.MouseEvent) => void;
|
|
122
|
+
role?: string;
|
|
123
|
+
spacing?: SpacingMode;
|
|
124
|
+
testId?: string;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// @public (undocumented)
|
|
128
|
+
export interface MenuGroupSizing {
|
|
129
|
+
maxHeight?: Dimension;
|
|
130
|
+
maxWidth?: Dimension;
|
|
131
|
+
minHeight?: Dimension;
|
|
132
|
+
minWidth?: Dimension;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// @public @deprecated (undocumented)
|
|
136
|
+
export interface Overrides {
|
|
137
|
+
// (undocumented)
|
|
138
|
+
Title?: TitleOverrides;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// @public @deprecated (undocumented)
|
|
142
|
+
export const PopupMenuGroup: ({ maxWidth, minWidth, ...rest }: MenuGroupProps) => jsx.JSX.Element;
|
|
143
|
+
|
|
144
|
+
// @public (undocumented)
|
|
145
|
+
export interface RenderFunction<TProps = {}> {
|
|
146
|
+
// (undocumented)
|
|
147
|
+
(Component: ComponentType | string, props: TProps): React.ReactNode;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// @public
|
|
151
|
+
export const Section: ForwardRefExoticComponent<SectionProps & RefAttributes<HTMLElement>>;
|
|
152
|
+
|
|
153
|
+
// @public (undocumented)
|
|
154
|
+
interface SectionProps {
|
|
155
|
+
children: React.ReactNode;
|
|
156
|
+
hasSeparator?: boolean;
|
|
157
|
+
id?: string;
|
|
158
|
+
isScrollable?: boolean;
|
|
159
|
+
// @deprecated (undocumented)
|
|
160
|
+
overrides?: {
|
|
161
|
+
HeadingItem?: {
|
|
162
|
+
cssFn?: StatelessCSSFn;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
testId?: string;
|
|
166
|
+
title?: string;
|
|
167
|
+
}
|
|
168
|
+
export { SectionProps as SectionBaseProps }
|
|
169
|
+
export { SectionProps }
|
|
170
|
+
|
|
171
|
+
// @internal
|
|
172
|
+
export const SELECTION_STYLE_CONTEXT_DO_NOT_USE: Context<"border" | "notch">;
|
|
173
|
+
|
|
174
|
+
// @public
|
|
175
|
+
export const SkeletonHeadingItem: ({ isShimmering, testId, width, cssFn, }: SkeletonHeadingItemProps) => jsx.JSX.Element;
|
|
176
|
+
|
|
177
|
+
// @public (undocumented)
|
|
178
|
+
export interface SkeletonHeadingItemProps {
|
|
179
|
+
// @deprecated
|
|
180
|
+
cssFn?: StatelessCSSFn;
|
|
181
|
+
isShimmering?: boolean;
|
|
182
|
+
testId?: string;
|
|
183
|
+
width?: Dimension;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
// @public
|
|
187
|
+
export const SkeletonItem: ({ hasAvatar, hasIcon, isShimmering, testId, width, cssFn, }: SkeletonItemProps) => jsx.JSX.Element;
|
|
188
|
+
|
|
189
|
+
// @public (undocumented)
|
|
190
|
+
export interface SkeletonItemProps {
|
|
191
|
+
cssFn?: StatelessCSSFn;
|
|
192
|
+
hasAvatar?: boolean;
|
|
193
|
+
hasIcon?: boolean;
|
|
194
|
+
isShimmering?: boolean;
|
|
195
|
+
testId?: string;
|
|
196
|
+
width?: Dimension;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// @internal
|
|
200
|
+
export const SpacingContext: Context<SpacingMode>;
|
|
201
|
+
|
|
202
|
+
// @public (undocumented)
|
|
203
|
+
type SpacingMode = 'compact' | 'cozy';
|
|
204
|
+
|
|
205
|
+
// @public @deprecated (undocumented)
|
|
206
|
+
export type StatelessCSSFn = CSSFn<void>;
|
|
207
|
+
|
|
208
|
+
// @public @deprecated (undocumented)
|
|
209
|
+
export interface TitleOverrides {
|
|
210
|
+
// (undocumented)
|
|
211
|
+
render?: RenderFunction<{
|
|
212
|
+
className?: string;
|
|
213
|
+
children: ReactNode;
|
|
214
|
+
'data-item-title': boolean;
|
|
215
|
+
}>;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
// (No @packageDocumentation comment for this package)
|
|
219
|
+
|
|
220
|
+
```
|