@livechat/design-system-react-components 1.10.1 → 1.12.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.
@@ -14,6 +14,10 @@ export interface ActionMenuProps {
14
14
  * Array of menu options
15
15
  */
16
16
  options: IActionMenuOption[];
17
+ /**
18
+ * Array of selected menu options keys
19
+ */
20
+ selectedOptions?: string[];
17
21
  /**
18
22
  * Trigger element
19
23
  */
@@ -9,3 +9,4 @@ declare const _default: {
9
9
  export default _default;
10
10
  export declare const Default: () => React.ReactElement;
11
11
  export declare const KeepOpenOnItemClick: () => React.ReactElement;
12
+ export declare const WithSelectedOptions: () => React.ReactElement;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { Placement, VirtualElement, UseDismissProps, Strategy } from '@floating-ui/react';
2
+ import { Placement, VirtualElement, UseDismissProps, Strategy, UseClickProps } from '@floating-ui/react';
3
3
  import { ButtonKind } from '../Button';
4
4
  export type TooltipTheme = 'invert' | 'important' | undefined;
5
5
  export type TooltipButton = {
@@ -103,6 +103,11 @@ export interface ITooltipProps {
103
103
  * https://floating-ui.com/docs/usedismiss
104
104
  */
105
105
  useDismissHookProps?: UseDismissProps;
106
+ /**
107
+ * Set the `floating-ui` useClick hook paramns if you need more control
108
+ * https://floating-ui.com/docs/useclick
109
+ */
110
+ useClickHookProps?: UseClickProps;
106
111
  /**
107
112
  * Set to move the arrow along the Y axis from default position (left and right possition)
108
113
  */