@sikka/hawa 0.16.5-next → 0.16.6-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 CHANGED
@@ -966,6 +966,7 @@ type AppLayoutSidebarItemProps = {
966
966
  icon?: any;
967
967
  subitems?: SubItem[];
968
968
  onClick?: (e: React$1.MouseEvent) => void;
969
+ onMouseDown?: (e: React$1.MouseEvent) => void;
969
970
  };
970
971
  type SubItem = {
971
972
  value: string;
package/dist/index.d.ts CHANGED
@@ -966,6 +966,7 @@ type AppLayoutSidebarItemProps = {
966
966
  icon?: any;
967
967
  subitems?: SubItem[];
968
968
  onClick?: (e: React$1.MouseEvent) => void;
969
+ onMouseDown?: (e: React$1.MouseEvent) => void;
969
970
  };
970
971
  type SubItem = {
971
972
  value: string;
package/dist/index.js CHANGED
@@ -7221,6 +7221,11 @@ var SidebarItem = function(_param) {
7221
7221
  return /* @__PURE__ */ React62.createElement("div", {
7222
7222
  dir: direction,
7223
7223
  onMouseDown: function(e) {
7224
+ if (item.onMouseDown) {
7225
+ item.onMouseDown(e);
7226
+ }
7227
+ },
7228
+ onClick: function(e) {
7224
7229
  if (item.onClick) {
7225
7230
  item.onClick(e);
7226
7231
  }
package/dist/index.mjs CHANGED
@@ -7061,6 +7061,11 @@ var SidebarItem = ({
7061
7061
  {
7062
7062
  dir: direction,
7063
7063
  onMouseDown: (e) => {
7064
+ if (item.onMouseDown) {
7065
+ item.onMouseDown(e);
7066
+ }
7067
+ },
7068
+ onClick: (e) => {
7064
7069
  if (item.onClick) {
7065
7070
  item.onClick(e);
7066
7071
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.16.5-next",
3
+ "version": "0.16.6-next",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {