@touchtech/baselayer-ui 5.4.0 → 5.6.0
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,7 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
declare type ButtonBadgeProps = {
|
|
3
3
|
children: ReactNode;
|
|
4
|
+
inverted?: boolean;
|
|
4
5
|
className?: string;
|
|
5
6
|
};
|
|
6
|
-
declare function ButtonBadge({ children, className }: ButtonBadgeProps): JSX.Element;
|
|
7
|
+
declare function ButtonBadge({ children, inverted, className }: ButtonBadgeProps): JSX.Element;
|
|
7
8
|
export default ButtonBadge;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactChild, ReactElement } from "react";
|
|
2
|
+
import { MenuPlacement } from "../Menu";
|
|
2
3
|
export declare type Item = {
|
|
3
4
|
id: number | string;
|
|
4
5
|
name: string;
|
|
@@ -19,5 +20,6 @@ export interface DropdownProps<T extends Item> {
|
|
|
19
20
|
display: ReactChild;
|
|
20
21
|
renderClickable?: RenderClickableFn<T>;
|
|
21
22
|
selectedItem: T | null;
|
|
23
|
+
placement?: MenuPlacement;
|
|
22
24
|
}
|
|
23
|
-
export declare function Dropdown<T extends Item>({ itemBodyRenderer, items, onSelect: handleSelect, display, renderClickable, selectedItem, }: DropdownProps<T>): JSX.Element;
|
|
25
|
+
export declare function Dropdown<T extends Item>({ itemBodyRenderer, items, onSelect: handleSelect, display, renderClickable, selectedItem, placement }: DropdownProps<T>): JSX.Element;
|