@livechat/design-system-react-components 1.19.1 → 1.19.3

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.
@@ -0,0 +1,2 @@
1
+ import { IActionBarOption } from './types';
2
+ export declare const getDefaultOptions: (onClickHandler: (key: string) => void) => IActionBarOption[];
@@ -15,7 +15,7 @@ export interface IActionBarProps {
15
15
  /**
16
16
  * Set the key for active element
17
17
  */
18
- activeOptionKey?: string | null;
18
+ activeOptionKey?: string;
19
19
  /**
20
20
  * Set 'scroll' to disable menu and enable scroll
21
21
  */
@@ -24,17 +24,23 @@ export interface IActionBarProps {
24
24
  * Set the bar buttons verticaly
25
25
  */
26
26
  vertical?: boolean;
27
+ /**
28
+ * Optional element that will be placed at the bottom of the menu
29
+ */
30
+ menuFooter?: React.ReactNode;
27
31
  }
28
32
  export interface IActionBarOption {
29
33
  key: string;
30
34
  element: React.ReactElement;
31
35
  label: string;
32
36
  showTooltip?: boolean;
37
+ hideInMenu?: boolean;
33
38
  onClick: () => void;
34
39
  }
35
40
  export interface IActionBarItem {
41
+ id: string;
36
42
  option: IActionBarOption;
37
43
  menuItemsKeys: string[];
38
- activeOptionKey?: string | null;
44
+ isActive?: boolean;
39
45
  vertical?: boolean;
40
46
  }