@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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/dropdown-menu
2
2
 
3
+ ## 11.5.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 11.5.7
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 11.5.6
4
16
 
5
17
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/dropdown-menu",
3
- "version": "11.5.6",
3
+ "version": "11.5.8",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/dropdown-menu",
3
- "version": "11.5.6",
3
+ "version": "11.5.8",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/dropdown-menu",
3
- "version": "11.5.6",
3
+ "version": "11.5.8",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/dropdown-menu",
3
- "version": "11.5.6",
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.4.0",
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.2.0",
33
+ "@atlaskit/spinner": "^15.3.0",
34
34
  "@atlaskit/theme": "^12.2.0",
35
- "@atlaskit/tokens": "^0.11.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.4.0",
48
+ "@atlaskit/ds-explorations": "^1.6.0",
49
49
  "@atlaskit/heading": "^1.0.0",
50
- "@atlaskit/lozenge": "11.3.1",
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. It is a report generated by [API Extractor](https://api-extractor.com/).
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
- [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
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: MouseEvent_2 | KeyboardEvent_2) => void;
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?: string | JSX.Element;
63
+ description?: JSX.Element | string;
59
64
  id: string;
60
65
  isDisabled?: boolean;
61
66
  isSelected?: boolean;
62
- onClick?: (e: MouseEvent_2 | KeyboardEvent_2) => void;
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?: string | JSX.Element;
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: MouseEvent_2 | KeyboardEvent_2) => void;
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?: string | JSX.Element;
113
+ description?: JSX.Element | string;
109
114
  id: string;
110
115
  isDisabled?: boolean;
111
116
  isSelected?: boolean;
112
- onClick?: (e: MouseEvent_2 | KeyboardEvent_2) => void;
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
- | string
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: MouseEvent_2 | KeyboardEvent_2;
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
- | 'top-start'
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-start';
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-->