@sikka/hawa 0.16.9-next → 0.16.10-next
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/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -96,6 +96,7 @@ type SubItem$1 = {
|
|
|
96
96
|
value?: any;
|
|
97
97
|
icon?: any;
|
|
98
98
|
action?: () => void;
|
|
99
|
+
onMiddleClick?: (e: any) => void;
|
|
99
100
|
highlighted?: boolean;
|
|
100
101
|
disabled?: boolean;
|
|
101
102
|
};
|
|
@@ -113,7 +114,7 @@ type MenuItemType = {
|
|
|
113
114
|
highlighted?: boolean;
|
|
114
115
|
subitems?: SubItem$1[];
|
|
115
116
|
disabled?: boolean;
|
|
116
|
-
onMiddleClick?: any;
|
|
117
|
+
onMiddleClick?: (e: any) => void;
|
|
117
118
|
onClick?: any;
|
|
118
119
|
};
|
|
119
120
|
interface DropdownMenuProps {
|
package/dist/index.d.ts
CHANGED
|
@@ -96,6 +96,7 @@ type SubItem$1 = {
|
|
|
96
96
|
value?: any;
|
|
97
97
|
icon?: any;
|
|
98
98
|
action?: () => void;
|
|
99
|
+
onMiddleClick?: (e: any) => void;
|
|
99
100
|
highlighted?: boolean;
|
|
100
101
|
disabled?: boolean;
|
|
101
102
|
};
|
|
@@ -113,7 +114,7 @@ type MenuItemType = {
|
|
|
113
114
|
highlighted?: boolean;
|
|
114
115
|
subitems?: SubItem$1[];
|
|
115
116
|
disabled?: boolean;
|
|
116
|
-
onMiddleClick?: any;
|
|
117
|
+
onMiddleClick?: (e: any) => void;
|
|
117
118
|
onClick?: any;
|
|
118
119
|
};
|
|
119
120
|
interface DropdownMenuProps {
|
package/dist/index.js
CHANGED
|
@@ -1482,8 +1482,8 @@ var DropdownMenu = function(param) {
|
|
|
1482
1482
|
onMouseDown: function(event) {
|
|
1483
1483
|
if (event.button === 1 || event.button === 0 && event.ctrlKey) {
|
|
1484
1484
|
event.preventDefault();
|
|
1485
|
-
if (
|
|
1486
|
-
|
|
1485
|
+
if (subitem.onMiddleClick) {
|
|
1486
|
+
subitem.onMiddleClick(item.value);
|
|
1487
1487
|
}
|
|
1488
1488
|
}
|
|
1489
1489
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -677,8 +677,8 @@ var DropdownMenu = ({
|
|
|
677
677
|
onMouseDown: (event) => {
|
|
678
678
|
if (event.button === 1 || event.button === 0 && event.ctrlKey) {
|
|
679
679
|
event.preventDefault();
|
|
680
|
-
if (
|
|
681
|
-
|
|
680
|
+
if (subitem.onMiddleClick) {
|
|
681
|
+
subitem.onMiddleClick(item.value);
|
|
682
682
|
}
|
|
683
683
|
}
|
|
684
684
|
},
|