cortex-react-ui 0.1.14 → 0.1.15

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.
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { PopperPlacement } from '../Popper/Popper';
3
3
  export interface ContextMenuProps {
4
4
  className?: string;
5
- children?: React.ReactElement<any>;
5
+ children?: React.ReactNode;
6
6
  open?: boolean;
7
7
  placement?: ObjectValues<typeof PopperPlacement>;
8
8
  container?: string | HTMLElement | React.RefObject<HTMLElement>;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { PopperPlacement } from '../Popper/Popper';
3
3
  export interface MenuProps {
4
4
  className?: string;
5
- children?: React.ReactElement<any>;
5
+ children?: React.ReactNode;
6
6
  open?: boolean;
7
7
  anchorEl?: string | HTMLElement | React.RefObject<HTMLElement>;
8
8
  anchorPosition?: {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  export interface MenuItemProps {
3
3
  className?: string;
4
- children?: React.ReactElement<any>;
4
+ children?: React.ReactNode;
5
5
  onClick?: () => void;
6
6
  }
7
7
  declare const MenuItem: React.FC<MenuItemProps>;
package/lib/index.d.ts CHANGED
@@ -84,7 +84,7 @@ declare const TagInput: React.FC<TooltipProps>;
84
84
 
85
85
  interface MenuProps {
86
86
  className?: string;
87
- children?: React.ReactElement<any>;
87
+ children?: React.ReactNode;
88
88
  open?: boolean;
89
89
  anchorEl?: string | HTMLElement | React.RefObject<HTMLElement>;
90
90
  anchorPosition?: {
@@ -98,7 +98,7 @@ declare const Menu: React.FC<MenuProps>;
98
98
 
99
99
  interface ContextMenuProps {
100
100
  className?: string;
101
- children?: React.ReactElement<any>;
101
+ children?: React.ReactNode;
102
102
  open?: boolean;
103
103
  placement?: ObjectValues<typeof PopperPlacement>;
104
104
  container?: string | HTMLElement | React.RefObject<HTMLElement>;
@@ -109,7 +109,7 @@ declare const ContextMenu: React.FC<ContextMenuProps>;
109
109
 
110
110
  interface MenuItemProps {
111
111
  className?: string;
112
- children?: React.ReactElement<any>;
112
+ children?: React.ReactNode;
113
113
  onClick?: () => void;
114
114
  }
115
115
  declare const MenuItem: React.FC<MenuItemProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cortex-react-ui",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "description": "React UI",
5
5
  "author": "Anthony",
6
6
  "license": "MIT",