@bigbinary/neetoui 4.0.12 → 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 +5 -0
- package/README.md +1 -1
- package/index.css +1 -1
- package/index.d.ts +20 -1
- package/layouts.d.ts +49 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -564,7 +564,26 @@ export const Button: React.FC<ButtonProps>;
|
|
|
564
564
|
export const Callout: React.FC<CalloutProps>;
|
|
565
565
|
export const Checkbox: React.FC<CheckboxProps>;
|
|
566
566
|
export const DatePicker: React.FC<DatePickerProps>;
|
|
567
|
-
export const Dropdown: React.FC<DropdownProps
|
|
567
|
+
export const Dropdown: React.FC<DropdownProps> & {
|
|
568
|
+
Menu: React.FC<
|
|
569
|
+
React.DetailedHTMLProps<
|
|
570
|
+
React.HTMLAttributes<HTMLUListElement>,
|
|
571
|
+
HTMLUListElement
|
|
572
|
+
>
|
|
573
|
+
>;
|
|
574
|
+
MenuItem: React.FC<
|
|
575
|
+
React.DetailedHTMLProps<
|
|
576
|
+
React.LiHTMLAttributes<HTMLLIElement>,
|
|
577
|
+
HTMLLIElement
|
|
578
|
+
>
|
|
579
|
+
> & { Button: ButtonProps };
|
|
580
|
+
Divider: React.FC<
|
|
581
|
+
React.DetailedHTMLProps<
|
|
582
|
+
React.LiHTMLAttributes<HTMLLIElement>,
|
|
583
|
+
HTMLLIElement
|
|
584
|
+
>
|
|
585
|
+
>;
|
|
586
|
+
};
|
|
568
587
|
export const EmailInput: React.FC<EmailInputProps>;
|
|
569
588
|
export const Input: React.ForwardRefExoticComponent<InputProps>;
|
|
570
589
|
export const Label: React.FC<LabelProps>;
|
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>;
|