@majoo-ui/react 1.61.21 → 1.61.23

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,19 +1,19 @@
1
- /// <reference types="react" />
2
- interface TriggerProps {
1
+ import React from 'react';
2
+ interface TriggerProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'children'> {
3
3
  id: string;
4
4
  triggerSide?: 'left' | 'right';
5
- children?: JSX.Element | string;
5
+ children?: React.ReactNode;
6
6
  }
7
- interface MenuProps {
7
+ interface MenuProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
8
8
  id: string;
9
- children?: JSX.Element | JSX.Element[];
9
+ children?: React.ReactNode;
10
10
  }
11
- interface ItemProps {
12
- children?: JSX.Element | string;
11
+ interface ItemProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick' | 'children'> {
12
+ children?: React.ReactNode;
13
13
  data?: object;
14
- onClick?: (e: any, data: any) => void;
14
+ onClick?: (e: React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>, data?: object) => void;
15
15
  }
16
- export declare const ContextMenuTrigger: import("@stitches/react/types/styled-component").StyledComponent<(props: TriggerProps) => JSX.Element, {}, {
16
+ export declare const ContextMenuTrigger: import("@stitches/react/types/styled-component").StyledComponent<({ id, triggerSide, children, className, onClick, onContextMenu, style, ...rest }: TriggerProps) => JSX.Element, {}, {
17
17
  sm: "(min-width: 359px)";
18
18
  md: "(min-width: 767px)";
19
19
  lg: "(min-width: 1023px)";
@@ -110,7 +110,7 @@ export declare const ContextMenuTrigger: import("@stitches/react/types/styled-co
110
110
  backgroundColor: string;
111
111
  };
112
112
  }>>;
113
- export declare const ContextMenu: import("@stitches/react/types/styled-component").StyledComponent<(props: MenuProps) => JSX.Element, {}, {
113
+ export declare const ContextMenu: import("@stitches/react/types/styled-component").StyledComponent<({ id, children, className, style, ...rest }: MenuProps) => JSX.Element | null, {}, {
114
114
  sm: "(min-width: 359px)";
115
115
  md: "(min-width: 767px)";
116
116
  lg: "(min-width: 1023px)";
@@ -207,7 +207,7 @@ export declare const ContextMenu: import("@stitches/react/types/styled-component
207
207
  backgroundColor: string;
208
208
  };
209
209
  }>>;
210
- export declare const ContextMenuItem: import("@stitches/react/types/styled-component").StyledComponent<(props: ItemProps) => JSX.Element, {}, {
210
+ export declare const ContextMenuItem: import("@stitches/react/types/styled-component").StyledComponent<({ children, data, onClick, className, onKeyDown, ...rest }: ItemProps) => JSX.Element, {}, {
211
211
  sm: "(min-width: 359px)";
212
212
  md: "(min-width: 767px)";
213
213
  lg: "(min-width: 1023px)";