@livechat/design-system-react-components 1.6.4 → 1.7.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.
- package/dist/components/ActionMenu/ActionMenu.d.ts +6 -1
- package/dist/components/Popover/types.d.ts +6 -1
- package/dist/components/Tooltip/types.d.ts +6 -1
- package/dist/dsrc.cjs.js +1 -1
- package/dist/dsrc.es.js +1345 -1338
- package/dist/preview-stats.json +491 -491
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Placement, flip } from '@floating-ui/react';
|
|
2
|
+
import { Placement, flip, Strategy } from '@floating-ui/react';
|
|
3
3
|
import { IActionMenuOption } from './types';
|
|
4
4
|
export interface ActionMenuProps {
|
|
5
5
|
/**
|
|
@@ -46,5 +46,10 @@ export interface ActionMenuProps {
|
|
|
46
46
|
* Optional handler called on menu open
|
|
47
47
|
*/
|
|
48
48
|
onOpen?: () => void;
|
|
49
|
+
/**
|
|
50
|
+
* Set the type of CSS position property to use
|
|
51
|
+
* https://floating-ui.com/docs/usefloating#strategy
|
|
52
|
+
*/
|
|
53
|
+
floatingStrategy?: Strategy;
|
|
49
54
|
}
|
|
50
55
|
export declare const ActionMenu: React.FC<ActionMenuProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Placement, UseClickProps, UseDismissProps, FlipOptions } from '@floating-ui/react';
|
|
2
|
+
import { Placement, UseClickProps, UseDismissProps, FlipOptions, Strategy } from '@floating-ui/react';
|
|
3
3
|
export interface IPopoverProps {
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
/**
|
|
@@ -56,4 +56,9 @@ export interface IPopoverProps {
|
|
|
56
56
|
* https://floating-ui.com/docs/useclick
|
|
57
57
|
*/
|
|
58
58
|
useClickHookProps?: UseClickProps;
|
|
59
|
+
/**
|
|
60
|
+
* Set the type of CSS position property to use
|
|
61
|
+
* https://floating-ui.com/docs/usefloating#strategy
|
|
62
|
+
*/
|
|
63
|
+
floatingStrategy?: Strategy;
|
|
59
64
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Placement, VirtualElement, UseDismissProps } from '@floating-ui/react';
|
|
2
|
+
import { Placement, VirtualElement, UseDismissProps, Strategy } from '@floating-ui/react';
|
|
3
3
|
import { ButtonKind } from '../Button';
|
|
4
4
|
export type TooltipTheme = 'invert' | 'important' | undefined;
|
|
5
5
|
export type TooltipButton = {
|
|
@@ -116,4 +116,9 @@ export interface ITooltipProps {
|
|
|
116
116
|
* Be default, moving the curson from trigger to tooltip will keep it open.
|
|
117
117
|
*/
|
|
118
118
|
closeOnTriggerBlur?: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Set the type of CSS position property to use
|
|
121
|
+
* https://floating-ui.com/docs/usefloating#strategy
|
|
122
|
+
*/
|
|
123
|
+
floatingStrategy?: Strategy;
|
|
119
124
|
}
|