linear-react-components-ui 1.1.18-beta.1 → 1.1.18-beta.10
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/.eslintcache +1 -1
- package/.vscode/settings.json +0 -4
- package/lib/assets/styles/sidenav.scss +55 -54
- package/lib/menus/sidenav/NavMenuItem.js +45 -15
- package/lib/menus/sidenav/index.js +0 -58
- package/lib/menus/sidenav/popup_menu_help/index.js +37 -36
- package/lib/menus/sidenav/types.d.ts +6 -21
- package/package.json +1 -1
- package/lib/menus/sidenav/popup_menu_help/index.d.ts +0 -15
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode, ReactElement, CSSProperties
|
|
1
|
+
import { ReactNode, ReactElement, CSSProperties } from 'react';
|
|
2
2
|
import { PermissionAttr } from '../../@types/PermissionAttr.js';
|
|
3
3
|
import { Size } from '../../@types/Size.js';
|
|
4
4
|
import { WithTooltipProps } from '../../internals/types.js';
|
|
@@ -17,14 +17,6 @@ interface ISideNavProps {
|
|
|
17
17
|
enableMenuSearch?: boolean;
|
|
18
18
|
menuSearchEmptyMessage?: string;
|
|
19
19
|
menuSearchPlaceholder?: string;
|
|
20
|
-
helpList?: IHelpItem[];
|
|
21
|
-
copyright: string;
|
|
22
|
-
version: string;
|
|
23
|
-
}
|
|
24
|
-
interface IHelpItem {
|
|
25
|
-
id: string;
|
|
26
|
-
title: string;
|
|
27
|
-
url?: string;
|
|
28
20
|
}
|
|
29
21
|
interface ISideNavDimensions {
|
|
30
22
|
left: number;
|
|
@@ -59,8 +51,11 @@ interface INavMenuItemProps extends WithTooltipProps {
|
|
|
59
51
|
minWidth?: string | number;
|
|
60
52
|
maxWidth?: string | number;
|
|
61
53
|
columnsQtty?: number;
|
|
62
|
-
targetRef?:
|
|
54
|
+
targetRef?: (ref: HTMLLIElement | null) => void;
|
|
55
|
+
disableDefaultStyle?: boolean;
|
|
56
|
+
showDropdownOnClick?: boolean;
|
|
63
57
|
style?: CSSProperties;
|
|
58
|
+
customClassForDropdown?: string;
|
|
64
59
|
}
|
|
65
60
|
interface INavSubMenuItemProps {
|
|
66
61
|
title: string;
|
|
@@ -81,16 +76,6 @@ interface IPopupMenuSearchProps extends ISideNavProps {
|
|
|
81
76
|
handlerClose: () => void;
|
|
82
77
|
style?: CSSProperties | string;
|
|
83
78
|
}
|
|
84
|
-
interface IPopupMenuHelpProps extends ISideNavProps {
|
|
85
|
-
menuItemsContent?: IMenuItemContent[];
|
|
86
|
-
handlerClose: () => void;
|
|
87
|
-
style?: CSSProperties | string;
|
|
88
|
-
helpList?: IHelpItem[];
|
|
89
|
-
copyright: string;
|
|
90
|
-
version: string;
|
|
91
|
-
dropdown?: boolean;
|
|
92
|
-
isDropdownOpened?: boolean;
|
|
93
|
-
}
|
|
94
79
|
interface ISubMenuContext {
|
|
95
80
|
toggleSubMenu: () => void;
|
|
96
81
|
}
|
|
@@ -101,4 +86,4 @@ interface ISideNavContext {
|
|
|
101
86
|
}
|
|
102
87
|
type ITargetDimensions = DOMRect;
|
|
103
88
|
|
|
104
|
-
export { IEmptyListProps, IExpandMenuProps,
|
|
89
|
+
export { IEmptyListProps, IExpandMenuProps, IMenuItemContent, IMenuLinkProps, INavMenuGroupProps, INavMenuItemProps, INavSubMenuItemProps, IPopupMenuSearchProps, ISideNavContext, ISideNavDimensions, ISideNavProps, ISubMenuContext, ITargetDimensions };
|
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IPopupMenuHelpProps } from '../types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../../../@types/PermissionAttr.js';
|
|
4
|
-
import '../../../@types/Size.js';
|
|
5
|
-
import '../../../internals/types.js';
|
|
6
|
-
import '../../../@types/Position.js';
|
|
7
|
-
import '../../../@types/Icon.js';
|
|
8
|
-
import '../../../icons/helper.js';
|
|
9
|
-
|
|
10
|
-
declare const _default: {
|
|
11
|
-
(props: IPopupMenuHelpProps): JSX.Element;
|
|
12
|
-
displayName: string;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export { _default as default };
|