@sikka/hawa 0.16.6-next → 0.16.8-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 +6 -1
- package/dist/index.mjs +6 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -972,7 +972,8 @@ type SubItem = {
|
|
|
972
972
|
value: string;
|
|
973
973
|
label: string;
|
|
974
974
|
icon?: any;
|
|
975
|
-
|
|
975
|
+
onMouseDown: (e: React$1.MouseEvent) => void;
|
|
976
|
+
onClick?: (e: React$1.MouseEvent) => void;
|
|
976
977
|
};
|
|
977
978
|
interface SidebarGroupProps {
|
|
978
979
|
title?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -972,7 +972,8 @@ type SubItem = {
|
|
|
972
972
|
value: string;
|
|
973
973
|
label: string;
|
|
974
974
|
icon?: any;
|
|
975
|
-
|
|
975
|
+
onMouseDown: (e: React$1.MouseEvent) => void;
|
|
976
|
+
onClick?: (e: React$1.MouseEvent) => void;
|
|
976
977
|
};
|
|
977
978
|
interface SidebarGroupProps {
|
|
978
979
|
title?: string;
|
package/dist/index.js
CHANGED
|
@@ -7201,10 +7201,15 @@ var SidebarItem = function(_param) {
|
|
|
7201
7201
|
}, item.subitems.map(function(subitem, idx) {
|
|
7202
7202
|
return /* @__PURE__ */ React62.createElement("li", {
|
|
7203
7203
|
key: idx,
|
|
7204
|
+
onMouseDown: function(e) {
|
|
7205
|
+
if (subitem.onMouseDown) {
|
|
7206
|
+
subitem.onMouseDown(e);
|
|
7207
|
+
}
|
|
7208
|
+
},
|
|
7204
7209
|
onClick: function(e) {
|
|
7205
7210
|
e.stopPropagation();
|
|
7206
7211
|
if (subitem.onClick) {
|
|
7207
|
-
subitem.onClick();
|
|
7212
|
+
subitem.onClick(e);
|
|
7208
7213
|
}
|
|
7209
7214
|
if (onSubItemClick) {
|
|
7210
7215
|
onSubItemClick([
|
package/dist/index.mjs
CHANGED
|
@@ -7035,10 +7035,15 @@ var SidebarItem = ({
|
|
|
7035
7035
|
"li",
|
|
7036
7036
|
{
|
|
7037
7037
|
key: idx,
|
|
7038
|
+
onMouseDown: (e) => {
|
|
7039
|
+
if (subitem.onMouseDown) {
|
|
7040
|
+
subitem.onMouseDown(e);
|
|
7041
|
+
}
|
|
7042
|
+
},
|
|
7038
7043
|
onClick: (e) => {
|
|
7039
7044
|
e.stopPropagation();
|
|
7040
7045
|
if (subitem.onClick) {
|
|
7041
|
-
subitem.onClick();
|
|
7046
|
+
subitem.onClick(e);
|
|
7042
7047
|
}
|
|
7043
7048
|
if (onSubItemClick) {
|
|
7044
7049
|
onSubItemClick([item.value, subitem.value]);
|