@linzjs/lui 17.29.1-0 → 17.29.1-2
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.
|
@@ -1,12 +1,30 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
2
|
import { ILuiHeaderMenuItem, ILuiIcon } from '../LuiHeader/LuiHeader';
|
|
3
|
-
import { ILuiDrawerMenu,
|
|
3
|
+
import { ILuiDrawerMenu, ILuiDrawerMenuSection } from './LuiHeaderMenus';
|
|
4
4
|
import { Size } from '../common/ResponsiveUtils';
|
|
5
|
+
interface ILuiDrawerMenuOptionV2 {
|
|
6
|
+
/**
|
|
7
|
+
* The material-ui icon name (see https://material.io/resources/icons/?search=account_c&style=round)
|
|
8
|
+
*/
|
|
9
|
+
icon?: string | ReactElement;
|
|
10
|
+
/**
|
|
11
|
+
* The label shown beside the icon which is aligned at the left of the drawer
|
|
12
|
+
*/
|
|
13
|
+
label: string | ReactElement;
|
|
14
|
+
/**
|
|
15
|
+
* The badge which is shown which is aligned at the right of the drawer
|
|
16
|
+
*/
|
|
17
|
+
badge?: ReactElement;
|
|
18
|
+
/**
|
|
19
|
+
* The function to be bound together with closing the drawer on click
|
|
20
|
+
*/
|
|
21
|
+
onClick?: () => void;
|
|
22
|
+
}
|
|
5
23
|
declare const LuiDrawerMenuOptionsV2: React.FC<React.PropsWithChildren<ILuiIcon>>;
|
|
6
24
|
/**
|
|
7
25
|
* display badge on the left
|
|
8
26
|
*/
|
|
9
|
-
declare const LuiDrawerMenuOptionV2: React.FC<React.PropsWithChildren<
|
|
27
|
+
declare const LuiDrawerMenuOptionV2: React.FC<React.PropsWithChildren<ILuiDrawerMenuOptionV2>>;
|
|
10
28
|
declare const LuiDrawerMenuV2: React.FC<React.PropsWithChildren<ILuiDrawerMenu>>;
|
|
11
29
|
declare type ILuiDropdownMenuV2 = Omit<ILuiHeaderMenuItem, 'onClick'> & {
|
|
12
30
|
/**
|
|
@@ -23,4 +41,4 @@ declare type ILuiDropdownMenuV2 = Omit<ILuiHeaderMenuItem, 'onClick'> & {
|
|
|
23
41
|
declare const LuiDropdownMenuV2: React.FC<React.PropsWithChildren<ILuiDropdownMenuV2>>;
|
|
24
42
|
declare const LuiDrawerMenuSectionV2: (props: ILuiDrawerMenuSection) => JSX.Element;
|
|
25
43
|
declare const LuiDrawerMenuDividerV2: () => JSX.Element;
|
|
26
|
-
export { LuiDrawerMenuV2, LuiDrawerMenuOptionsV2, LuiDrawerMenuOptionV2, ILuiDropdownMenuV2, LuiDropdownMenuV2, LuiDrawerMenuSectionV2, LuiDrawerMenuDividerV2, };
|
|
44
|
+
export { LuiDrawerMenuV2, LuiDrawerMenuOptionsV2, LuiDrawerMenuOptionV2, ILuiDropdownMenuV2, LuiDropdownMenuV2, LuiDrawerMenuSectionV2, LuiDrawerMenuDividerV2, ILuiDrawerMenuOptionV2, };
|