@dktunited-techoff/techoff-suite-ui 1.13.1 → 1.13.2

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,8 +1,8 @@
1
- import { ButtonHTMLAttributes, ReactElement } from 'react';
1
+ import { ButtonHTMLAttributes, ReactElement, MouseEvent } from 'react';
2
2
  export type TsMenuItemProps = {
3
3
  label: string;
4
4
  icon?: string;
5
- onClick: () => void;
5
+ onClick: (e: MouseEvent<HTMLElement>) => void;
6
6
  };
7
7
  export type TsMenuButtonProps = {
8
8
  menuAlignment?: 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end';
@@ -1,8 +1,8 @@
1
- import { ButtonHTMLAttributes, ReactElement } from 'react';
1
+ import { ButtonHTMLAttributes, ReactElement, MouseEvent } from 'react';
2
2
  export type TsMenuItemProps = {
3
3
  label: string;
4
4
  icon?: string;
5
- onClick: () => void;
5
+ onClick: (e: MouseEvent<HTMLElement>) => void;
6
6
  };
7
7
  export type TsMenuButtonProps = {
8
8
  menuAlignment?: 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dktunited-techoff/techoff-suite-ui",
3
- "version": "1.13.1",
3
+ "version": "1.13.2",
4
4
  "main": "lib/index.js",
5
5
  "types": "./lib",
6
6
  "module": "esm/index.js",
@@ -1,9 +1,9 @@
1
- import { ButtonHTMLAttributes, ReactElement } from 'react';
1
+ import { ButtonHTMLAttributes, ReactElement, MouseEvent } from 'react';
2
2
 
3
3
  export type TsMenuItemProps = {
4
4
  label: string;
5
5
  icon?: string;
6
- onClick: () => void;
6
+ onClick: (e: MouseEvent<HTMLElement>) => void;
7
7
  };
8
8
 
9
9
  export type TsMenuButtonProps = {