@smart-factor/gem-ui-components 0.0.122 → 0.0.124

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.
@@ -1,6 +1,7 @@
1
1
  import { MenuItemProps } from '@mui/material';
2
2
  type ContextMenuItemLinkProps = MenuItemProps & {
3
3
  to: string;
4
+ onClick?: () => void;
4
5
  };
5
6
  type ContextMenuItemProps = MenuItemProps | ContextMenuItemLinkProps;
6
7
  export declare function ContextMenuItem(props: ContextMenuItemProps): import("react/jsx-runtime").JSX.Element;
package/dist/main.js CHANGED
@@ -4380,8 +4380,11 @@ const Hf = (e) => {
4380
4380
  };
4381
4381
  function Wf(e) {
4382
4382
  const t = us(), n = () => {
4383
- var o;
4384
- (o = t == null ? void 0 : t.onClose) == null || o.call(t);
4383
+ var s;
4384
+ (s = t == null ? void 0 : t.onClose) == null || s.call(t);
4385
+ }, r = () => {
4386
+ var s;
4387
+ (s = e.onClick) == null || s.call(e), n();
4385
4388
  };
4386
4389
  return Pu(e) ? /* @__PURE__ */ d(
4387
4390
  se,
@@ -4389,12 +4392,12 @@ function Wf(e) {
4389
4392
  disabled: e.disabled,
4390
4393
  component: Ss,
4391
4394
  to: e.to,
4392
- onClick: n,
4395
+ onClick: r,
4393
4396
  children: e.children
4394
4397
  }
4395
- ) : /* @__PURE__ */ d(se, { onClick: (o) => {
4396
- var s;
4397
- (s = e.onClick) == null || s.call(e, o), n();
4398
+ ) : /* @__PURE__ */ d(se, { onClick: (s) => {
4399
+ var a;
4400
+ (a = e.onClick) == null || a.call(e, s), n();
4398
4401
  }, disabled: e.disabled, children: /* @__PURE__ */ d(wn, { children: e.children }) });
4399
4402
  }
4400
4403
  function Pu(e) {
@@ -4570,7 +4573,13 @@ const qf = (e) => /* @__PURE__ */ I(Qt, { direction: "row", display: "inline-fle
4570
4573
  try {
4571
4574
  if (!t || typeof t != "string") return;
4572
4575
  if (ee.isDevelopmentMode) {
4573
- console.warn(Eu);
4576
+ console.warn(
4577
+ `${Eu}
4578
+
4579
+ Event: ${t}
4580
+ Properties:`,
4581
+ n
4582
+ );
4574
4583
  return;
4575
4584
  }
4576
4585
  const r = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smart-factor/gem-ui-components",
3
- "version": "0.0.122",
3
+ "version": "0.0.124",
4
4
  "private": false,
5
5
  "description": "Gem UI Components",
6
6
  "type": "module",