@highlight-ui/dropdown-menu
Advanced tools
Comparing version 1.1.7 to 1.2.0
import * as React from 'react'; | ||
export declare type DropdownMenuItemProps = React.PropsWithChildren<{ | ||
import { PropsWithMetadata } from '@highlight-ui/utils-commons'; | ||
export declare type DropdownMenuItemProps = React.PropsWithChildren<PropsWithMetadata<{ | ||
active?: boolean; | ||
className?: string; | ||
disabled?: boolean; | ||
hover?: boolean; | ||
/** | ||
* If set, an HTML anchor element is rendered. If not, an HTML button element is rendered instead | ||
*/ | ||
href?: string; | ||
onClick?: React.MouseEventHandler; | ||
preventToCloseOnClick?: boolean; | ||
selected?: boolean; | ||
}>; | ||
}>> & React.ComponentPropsWithoutRef<'a'> & React.ComponentPropsWithoutRef<'button'>; | ||
export declare class DropdownMenuItem extends React.PureComponent<DropdownMenuItemProps> { | ||
@@ -13,0 +14,0 @@ static defaultProps: { |
import * as React from 'react'; | ||
export declare type DropdownMenuToggleProps = React.PropsWithChildren<{ | ||
import { PropsWithMetadata } from '@highlight-ui/utils-commons'; | ||
export declare type DropdownMenuToggleProps = React.PropsWithChildren<PropsWithMetadata<{ | ||
className?: string; | ||
@@ -7,3 +8,3 @@ containerWidth?: number; | ||
onToggle?: (event?: React.MouseEvent<HTMLDivElement, MouseEvent>) => void; | ||
}>; | ||
}>>; | ||
export declare class DropdownMenuToggle extends React.PureComponent<DropdownMenuToggleProps> { | ||
@@ -10,0 +11,0 @@ static defaultProps: { |
import * as React from 'react'; | ||
export declare type DropdownMenuItemProps = React.PropsWithChildren<{ | ||
import { PropsWithMetadata } from '@highlight-ui/utils-commons'; | ||
export declare type DropdownMenuItemProps = React.PropsWithChildren<PropsWithMetadata<{ | ||
active?: boolean; | ||
className?: string; | ||
disabled?: boolean; | ||
hover?: boolean; | ||
/** | ||
* If set, an HTML anchor element is rendered. If not, an HTML button element is rendered instead | ||
*/ | ||
href?: string; | ||
onClick?: React.MouseEventHandler; | ||
preventToCloseOnClick?: boolean; | ||
selected?: boolean; | ||
}>; | ||
}>> & React.ComponentPropsWithoutRef<'a'> & React.ComponentPropsWithoutRef<'button'>; | ||
export declare class DropdownMenuItem extends React.PureComponent<DropdownMenuItemProps> { | ||
@@ -13,0 +14,0 @@ static defaultProps: { |
import * as React from 'react'; | ||
export declare type DropdownMenuToggleProps = React.PropsWithChildren<{ | ||
import { PropsWithMetadata } from '@highlight-ui/utils-commons'; | ||
export declare type DropdownMenuToggleProps = React.PropsWithChildren<PropsWithMetadata<{ | ||
className?: string; | ||
@@ -7,3 +8,3 @@ containerWidth?: number; | ||
onToggle?: (event?: React.MouseEvent<HTMLDivElement, MouseEvent>) => void; | ||
}>; | ||
}>>; | ||
export declare class DropdownMenuToggle extends React.PureComponent<DropdownMenuToggleProps> { | ||
@@ -10,0 +11,0 @@ static defaultProps: { |
{ | ||
"name": "@highlight-ui/dropdown-menu", | ||
"version": "1.1.7", | ||
"version": "1.2.0", | ||
"author": "Personio GmbH", | ||
@@ -54,3 +54,3 @@ "main": "dist/cjs/index.js", | ||
}, | ||
"gitHead": "7edacd8e39cdd8434a62174a81c0b2e45d1d677e" | ||
"gitHead": "dd73e9ee39e5314928e11058ca3ed62ffe0792a4" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1376723
14738