@amboss/design-system 1.5.6 → 1.5.7
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.
|
@@ -2,7 +2,7 @@ import React, { AriaAttributes } from "react";
|
|
|
2
2
|
import { IconName } from "../Icon/Icon";
|
|
3
3
|
import { BaseVariations, ButtonSize, HorizontalAlignment, TextVariations } from "../../types";
|
|
4
4
|
declare type ButtonPrivateProps = {
|
|
5
|
-
squareCorners?: boolean;
|
|
5
|
+
squareCorners?: boolean | ("TopLeft" | "TopRight" | "BottomLeft" | "BottomRight")[];
|
|
6
6
|
alignItems?: HorizontalAlignment;
|
|
7
7
|
rightIconVariant?: TextVariations;
|
|
8
8
|
};
|
|
@@ -9,6 +9,9 @@ export declare type MenuItem = {
|
|
|
9
9
|
};
|
|
10
10
|
declare type Separator = "separator";
|
|
11
11
|
export declare type DropdownItem = MenuItem | Separator;
|
|
12
|
+
export declare type DropdownPrivateProps = {
|
|
13
|
+
dropdownSquareCorners?: boolean | ("TopLeft" | "TopRight" | "BottomLeft" | "BottomRight")[];
|
|
14
|
+
};
|
|
12
15
|
export declare type DropdownMenuProps = {
|
|
13
16
|
/** an array of menu items, contains "label" and "onSelect" */
|
|
14
17
|
menuItems: DropdownItem[];
|
|
@@ -20,12 +23,13 @@ export declare type DropdownMenuProps = {
|
|
|
20
23
|
onMenuOpen?: (e: React.MouseEvent) => void;
|
|
21
24
|
/** Dropdown menu close state callback */
|
|
22
25
|
onMenuClose?: (e: React.MouseEvent) => void;
|
|
26
|
+
privateProps?: DropdownPrivateProps;
|
|
23
27
|
"data-e2e-test-id"?: string;
|
|
24
28
|
};
|
|
25
29
|
export declare type MenuPositionProps = {
|
|
26
30
|
verticalPosition: "up" | "down";
|
|
27
31
|
};
|
|
28
|
-
export declare function DropdownMenu({ menuItems, label, iconName, size, disabled, onMenuOpen, onMenuClose, "data-e2e-test-id": dataE2eTestId, }: DropdownMenuProps): React.ReactElement;
|
|
32
|
+
export declare function DropdownMenu({ menuItems, label, iconName, size, disabled, onMenuOpen, onMenuClose, privateProps: { dropdownSquareCorners }, "data-e2e-test-id": dataE2eTestId, }: DropdownMenuProps): React.ReactElement;
|
|
29
33
|
export declare namespace DropdownMenu {
|
|
30
34
|
var defaultProps: Partial<DropdownMenuProps>;
|
|
31
35
|
}
|