@amboss/design-system 0.26.9 → 0.27.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.
@@ -3,7 +3,7 @@ import { IconName } from "../Icon/Icon";
3
3
  import { ButtonSize } from "../../types";
4
4
  export declare type MenuItem = {
5
5
  label: string;
6
- onSelect: () => void;
6
+ onSelect: (e: React.MouseEvent) => void;
7
7
  icon?: IconName;
8
8
  emphasized?: boolean;
9
9
  };
@@ -16,9 +16,9 @@ export declare type DropdownMenuProps = {
16
16
  size?: ButtonSize;
17
17
  disabled?: boolean;
18
18
  /** Dropdown menu open state callback */
19
- onMenuOpen?: () => void;
19
+ onMenuOpen?: (e: React.MouseEvent) => void;
20
20
  /** Dropdown menu close state callback */
21
- onMenuClose?: () => void;
21
+ onMenuClose?: (e: React.MouseEvent) => void;
22
22
  "data-e2e-test-id"?: string;
23
23
  };
24
24
  export declare function DropdownMenu({ menuItems, iconName, size, disabled, onMenuOpen, onMenuClose, "data-e2e-test-id": dataE2eTestId, }: DropdownMenuProps): React.ReactElement;
@@ -15,9 +15,9 @@ export declare const OrderRuntype: Union<[Literal<"first">, Literal<"last">, Lit
15
15
  export declare type Order = Static<typeof OrderRuntype>;
16
16
  declare const BaseVariationsRuntype: Union<[Literal<"primary">, Literal<"secondary">, Literal<"tertiary">]>;
17
17
  export declare type BaseVariations = Static<typeof BaseVariationsRuntype>;
18
- declare const TextVariationsRuntype: Union<[Union<[Literal<"primary">, Literal<"secondary">, Literal<"tertiary">]>, Literal<"error">, Literal<"warning">]>;
18
+ declare const TextVariationsRuntype: Union<[Union<[Literal<"primary">, Literal<"secondary">, Literal<"tertiary">]>, Literal<"info">, Literal<"error">, Literal<"warning">]>;
19
19
  export declare type TextVariations = Static<typeof TextVariationsRuntype>;
20
- declare const IconsVariationsRuntype: Union<[Union<[Literal<"primary">, Literal<"secondary">, Literal<"tertiary">]>, Literal<"error">, Literal<"warning">, Literal<"inherit">]>;
20
+ declare const IconsVariationsRuntype: Union<[Union<[Literal<"primary">, Literal<"secondary">, Literal<"tertiary">]>, Literal<"info">, Literal<"error">, Literal<"warning">, Literal<"inherit">]>;
21
21
  export declare type IconsVariations = Static<typeof IconsVariationsRuntype>;
22
22
  declare const LinkVariationsRuntype: Union<[Union<[Literal<"primary">, Literal<"secondary">, Literal<"tertiary">]>]>;
23
23
  export declare type LinkVariations = Static<typeof LinkVariationsRuntype>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amboss/design-system",
3
- "version": "0.26.9",
3
+ "version": "0.27.2",
4
4
  "description": "the design system for AMBOSS products",
5
5
  "author": "Bagrat Gobedashvili",
6
6
  "license": "ISC",