@bigbinary/neetoui 4.0.11 → 4.0.13
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/CHANGELOG.md +9 -0
- package/README.md +1 -1
- package/formik.js +1 -1
- package/index.css +1 -1
- package/index.d.ts +22 -1
- package/index.js +1 -1
- package/layouts.d.ts +49 -2
- package/layouts.js +1 -1
- package/package.json +2 -2
package/layouts.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { NavLinkProps } from "react-router-dom";
|
|
3
|
-
import { AvatarProps, InputProps } from "./index";
|
|
3
|
+
import { AvatarProps, InputProps, ButtonProps } from "./index";
|
|
4
4
|
|
|
5
5
|
export interface AppSwitcherProps {
|
|
6
6
|
isOpen?: boolean;
|
|
@@ -35,6 +35,47 @@ export interface MenuBarProps {
|
|
|
35
35
|
className?: string;
|
|
36
36
|
showMenu?: boolean;
|
|
37
37
|
"data-cy"?: string;
|
|
38
|
+
children?: React.ReactNode;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface MenuBarBlockProps {
|
|
42
|
+
label: string;
|
|
43
|
+
url?: string;
|
|
44
|
+
icon?: React.ReactNode;
|
|
45
|
+
count?: number;
|
|
46
|
+
active?: boolean;
|
|
47
|
+
onEdit?: Function;
|
|
48
|
+
onClick?: Function;
|
|
49
|
+
className?: string;
|
|
50
|
+
"data-cy"?: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface MenuBarItemProps
|
|
54
|
+
extends React.DetailedHTMLProps<
|
|
55
|
+
React.ButtonHTMLAttributes<HTMLButtonElement>,
|
|
56
|
+
HTMLButtonElement
|
|
57
|
+
> {
|
|
58
|
+
label?: string;
|
|
59
|
+
description?: string;
|
|
60
|
+
active?: boolean;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface MenuBarSubTitleProps {
|
|
64
|
+
iconProps?: ButtonProps;
|
|
65
|
+
"data-cy"?: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface MenuBarSearchProps extends InputProps {
|
|
69
|
+
collapse?: boolean;
|
|
70
|
+
onCollapse?: Function;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface MenuBarAddNewProps
|
|
74
|
+
extends React.DetailedHTMLProps<
|
|
75
|
+
React.HTMLAttributes<HTMLDivElement>,
|
|
76
|
+
HTMLDivElement
|
|
77
|
+
> {
|
|
78
|
+
label?: string;
|
|
38
79
|
}
|
|
39
80
|
|
|
40
81
|
export type ScrollableProps = {
|
|
@@ -110,7 +151,13 @@ export interface SubHeaderProps {
|
|
|
110
151
|
export const AppSwitcher: React.FC<AppSwitcherProps>;
|
|
111
152
|
export const Container: React.ForwardRefExoticComponent<ContainerProps>;
|
|
112
153
|
export const Header: React.FC<HeaderProps>;
|
|
113
|
-
export const MenuBar: React.FC<MenuBarProps
|
|
154
|
+
export const MenuBar: React.FC<MenuBarProps> & {
|
|
155
|
+
Block: React.FC<MenuBarBlockProps>;
|
|
156
|
+
Item: React.FC<MenuBarItemProps>;
|
|
157
|
+
SubTitle: React.FC<MenuBarSubTitleProps>;
|
|
158
|
+
Search: React.FC<MenuBarSearchProps>;
|
|
159
|
+
AddNew: React.FC<MenuBarAddNewProps>;
|
|
160
|
+
};
|
|
114
161
|
export const Scrollable: React.FC<ScrollableProps>;
|
|
115
162
|
export const Sidebar: React.FC<SidebarProps>;
|
|
116
163
|
export const SubHeader: React.FC<SubHeaderProps>;
|