@atlaskit/dropdown-menu 11.5.6 → 11.5.8
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 +6 -6
- package/report.api.md +32 -27
package/CHANGELOG.md
CHANGED
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/dropdown-menu",
|
|
3
|
-
"version": "11.5.
|
|
3
|
+
"version": "11.5.8",
|
|
4
4
|
"description": "A dropdown menu displays a list of actions or options to a user.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@atlaskit/button": "^16.
|
|
27
|
+
"@atlaskit/button": "^16.5.0",
|
|
28
28
|
"@atlaskit/codemod-utils": "^4.1.0",
|
|
29
29
|
"@atlaskit/ds-lib": "^2.1.0",
|
|
30
30
|
"@atlaskit/icon": "^21.11.0",
|
|
31
31
|
"@atlaskit/menu": "^1.4.0",
|
|
32
32
|
"@atlaskit/popup": "^1.5.0",
|
|
33
|
-
"@atlaskit/spinner": "^15.
|
|
33
|
+
"@atlaskit/spinner": "^15.3.0",
|
|
34
34
|
"@atlaskit/theme": "^12.2.0",
|
|
35
|
-
"@atlaskit/tokens": "^0.
|
|
35
|
+
"@atlaskit/tokens": "^0.13.0",
|
|
36
36
|
"@atlaskit/visually-hidden": "^1.1.0",
|
|
37
37
|
"@babel/runtime": "^7.0.0",
|
|
38
38
|
"@emotion/react": "^11.7.1",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@atlaskit/avatar": "^21.1.0",
|
|
47
47
|
"@atlaskit/docs": "*",
|
|
48
|
-
"@atlaskit/ds-explorations": "^1.
|
|
48
|
+
"@atlaskit/ds-explorations": "^1.6.0",
|
|
49
49
|
"@atlaskit/heading": "^1.0.0",
|
|
50
|
-
"@atlaskit/lozenge": "11.3.
|
|
50
|
+
"@atlaskit/lozenge": "11.3.4",
|
|
51
51
|
"@atlaskit/modal-dialog": "^12.4.0",
|
|
52
52
|
"@atlaskit/section-message": "^6.3.0",
|
|
53
53
|
"@atlaskit/ssr": "*",
|
package/report.api.md
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
|
+
<!-- API Report Version: 2.2 -->
|
|
2
|
+
|
|
1
3
|
## API Report File for "@atlaskit/dropdown-menu"
|
|
2
4
|
|
|
3
|
-
> Do not edit this file.
|
|
5
|
+
> Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
|
|
6
|
+
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
|
+
|
|
8
|
+
### Table of contents
|
|
9
|
+
|
|
10
|
+
- [Main Entry Types](#main-entry-types)
|
|
4
11
|
|
|
5
|
-
|
|
6
|
-
Generated API Report version: 2.0
|
|
7
|
-
-->
|
|
12
|
+
### Main Entry Types
|
|
8
13
|
|
|
9
|
-
|
|
14
|
+
<!--SECTION START: Main Entry Types-->
|
|
10
15
|
|
|
11
16
|
```ts
|
|
12
17
|
/// <reference types="react" />
|
|
@@ -28,7 +33,7 @@ export interface CustomTriggerProps<
|
|
|
28
33
|
TriggerElement extends HTMLElement = HTMLElement,
|
|
29
34
|
> extends Omit<TriggerProps, 'ref'> {
|
|
30
35
|
isSelected?: boolean;
|
|
31
|
-
onClick?: (e:
|
|
36
|
+
onClick?: (e: KeyboardEvent_2 | MouseEvent_2) => void;
|
|
32
37
|
testId?: string;
|
|
33
38
|
triggerRef: Ref<TriggerElement>;
|
|
34
39
|
}
|
|
@@ -55,11 +60,11 @@ interface DropdownItemCheckboxGroupProps extends SectionProps {
|
|
|
55
60
|
interface DropdownItemCheckboxProps {
|
|
56
61
|
children: React.ReactNode;
|
|
57
62
|
defaultSelected?: boolean;
|
|
58
|
-
description?:
|
|
63
|
+
description?: JSX.Element | string;
|
|
59
64
|
id: string;
|
|
60
65
|
isDisabled?: boolean;
|
|
61
66
|
isSelected?: boolean;
|
|
62
|
-
onClick?: (e:
|
|
67
|
+
onClick?: (e: KeyboardEvent_2 | MouseEvent_2) => void;
|
|
63
68
|
shouldDescriptionWrap?: boolean;
|
|
64
69
|
shouldTitleWrap?: boolean;
|
|
65
70
|
testId?: string;
|
|
@@ -72,13 +77,13 @@ export { DropdownItemGroup };
|
|
|
72
77
|
export interface DropdownItemProps {
|
|
73
78
|
children: React.ReactNode;
|
|
74
79
|
component?: CustomItemProps['component'];
|
|
75
|
-
description?:
|
|
80
|
+
description?: JSX.Element | string;
|
|
76
81
|
elemAfter?: React.ReactNode;
|
|
77
82
|
elemBefore?: React.ReactNode;
|
|
78
83
|
href?: string;
|
|
79
84
|
isDisabled?: boolean;
|
|
80
85
|
isSelected?: boolean;
|
|
81
|
-
onClick?: (e:
|
|
86
|
+
onClick?: (e: KeyboardEvent_2 | MouseEvent_2) => void;
|
|
82
87
|
rel?: string;
|
|
83
88
|
shouldDescriptionWrap?: boolean;
|
|
84
89
|
shouldTitleWrap?: boolean;
|
|
@@ -105,11 +110,11 @@ interface DropdownItemRadioGroupProps extends SectionProps {
|
|
|
105
110
|
interface DropdownItemRadioProps {
|
|
106
111
|
children: React.ReactNode;
|
|
107
112
|
defaultSelected?: boolean;
|
|
108
|
-
description?:
|
|
113
|
+
description?: JSX.Element | string;
|
|
109
114
|
id: string;
|
|
110
115
|
isDisabled?: boolean;
|
|
111
116
|
isSelected?: boolean;
|
|
112
|
-
onClick?: (e:
|
|
117
|
+
onClick?: (e: KeyboardEvent_2 | MouseEvent_2) => void;
|
|
113
118
|
shouldDescriptionWrap?: boolean;
|
|
114
119
|
shouldTitleWrap?: boolean;
|
|
115
120
|
testId?: string;
|
|
@@ -141,38 +146,38 @@ export interface DropdownMenuProps<
|
|
|
141
146
|
statusLabel?: string;
|
|
142
147
|
testId?: string;
|
|
143
148
|
trigger?:
|
|
144
|
-
|
|
|
145
|
-
|
|
|
146
|
-
triggerButtonProps: CustomTriggerProps<TriggerElement>,
|
|
147
|
-
) => ReactElement);
|
|
149
|
+
| ((triggerButtonProps: CustomTriggerProps<TriggerElement>) => ReactElement)
|
|
150
|
+
| string;
|
|
148
151
|
zIndex?: number;
|
|
149
152
|
}
|
|
150
153
|
|
|
151
154
|
// @public (undocumented)
|
|
152
155
|
export interface OnOpenChangeArgs {
|
|
153
156
|
// (undocumented)
|
|
154
|
-
event:
|
|
157
|
+
event: KeyboardEvent_2 | MouseEvent_2;
|
|
155
158
|
// (undocumented)
|
|
156
159
|
isOpen: boolean;
|
|
157
160
|
}
|
|
158
161
|
|
|
159
162
|
// @public (undocumented)
|
|
160
163
|
type Placement =
|
|
161
|
-
| 'auto-start'
|
|
162
164
|
| 'auto'
|
|
163
165
|
| 'auto-end'
|
|
164
|
-
| '
|
|
165
|
-
| 'top'
|
|
166
|
-
| 'top-end'
|
|
167
|
-
| 'right-start'
|
|
168
|
-
| 'right'
|
|
169
|
-
| 'right-end'
|
|
170
|
-
| 'bottom-end'
|
|
166
|
+
| 'auto-start'
|
|
171
167
|
| 'bottom'
|
|
168
|
+
| 'bottom-end'
|
|
172
169
|
| 'bottom-start'
|
|
173
|
-
| 'left-end'
|
|
174
170
|
| 'left'
|
|
175
|
-
| 'left-
|
|
171
|
+
| 'left-end'
|
|
172
|
+
| 'left-start'
|
|
173
|
+
| 'right'
|
|
174
|
+
| 'right-end'
|
|
175
|
+
| 'right-start'
|
|
176
|
+
| 'top'
|
|
177
|
+
| 'top-end'
|
|
178
|
+
| 'top-start';
|
|
176
179
|
|
|
177
180
|
// (No @packageDocumentation comment for this package)
|
|
178
181
|
```
|
|
182
|
+
|
|
183
|
+
<!--SECTION END: Main Entry Types-->
|