@altinn/altinn-components 0.29.3 → 0.29.4
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,11 +1,11 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { MenuItemProps, MenuProps, MenuSearchProps } from '../';
|
|
3
|
-
import { MenuItemsVirtualProps } from '../Menu
|
|
4
|
-
interface AccountSearchProps extends MenuSearchProps {
|
|
3
|
+
import { MenuItemsVirtualProps } from '../Menu';
|
|
4
|
+
export interface AccountSearchProps extends MenuSearchProps {
|
|
5
5
|
getResultsLabel?: (hits: number) => string;
|
|
6
6
|
hidden?: boolean;
|
|
7
7
|
}
|
|
8
|
-
interface AccountMenuItemProps extends MenuItemProps {
|
|
8
|
+
export interface AccountMenuItemProps extends MenuItemProps {
|
|
9
9
|
id: string;
|
|
10
10
|
type: 'person' | 'company' | 'group';
|
|
11
11
|
name: string;
|
|
@@ -19,4 +19,3 @@ export interface AccountMenuProps extends MenuProps {
|
|
|
19
19
|
scrollRefStyles?: CSSProperties;
|
|
20
20
|
}
|
|
21
21
|
export declare const AccountMenu: ({ items, groups, search, onSelectAccount, currentAccount, menuItemsVirtual, }: AccountMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
export {};
|
|
@@ -34,14 +34,14 @@ declare const meta: {
|
|
|
34
34
|
href?: string | undefined;
|
|
35
35
|
controls?: React.ReactNode;
|
|
36
36
|
selected?: boolean | undefined;
|
|
37
|
-
tabIndex?: number | undefined;
|
|
38
|
-
onKeyPress?: React.KeyboardEventHandler | undefined;
|
|
39
|
-
onClick?: (() => void) | undefined;
|
|
40
|
-
onMouseEnter?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
41
37
|
interactive?: boolean | undefined;
|
|
42
|
-
|
|
38
|
+
onClick?: (() => void) | undefined;
|
|
39
|
+
onKeyPress?: React.KeyboardEventHandler | undefined;
|
|
40
|
+
tabIndex?: number | undefined;
|
|
43
41
|
description?: React.ReactNode | import('..').HeadingProps;
|
|
42
|
+
collapsible?: boolean | undefined;
|
|
44
43
|
linkIcon?: boolean | undefined;
|
|
44
|
+
onMouseEnter?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
45
45
|
ariaLabel?: string | undefined;
|
|
46
46
|
shadow?: import('..').Shadow | undefined;
|
|
47
47
|
};
|