@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.
- package/components/contextMenu/ContextMenu.d.ts +11 -11
- package/index.esm.js +302 -135
- package/package.json +3 -10
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
|
|
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?:
|
|
5
|
+
children?: React.ReactNode;
|
|
6
6
|
}
|
|
7
|
-
interface MenuProps {
|
|
7
|
+
interface MenuProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
8
8
|
id: string;
|
|
9
|
-
children?:
|
|
9
|
+
children?: React.ReactNode;
|
|
10
10
|
}
|
|
11
|
-
interface ItemProps {
|
|
12
|
-
children?:
|
|
11
|
+
interface ItemProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick' | 'children'> {
|
|
12
|
+
children?: React.ReactNode;
|
|
13
13
|
data?: object;
|
|
14
|
-
onClick?: (e:
|
|
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<(
|
|
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<(
|
|
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<(
|
|
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)";
|