@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.
- package/dist/components/ActionMenu/ActionMenu.d.ts +4 -0
- package/dist/components/ActionMenu/ActionMenu.stories.d.ts +1 -0
- package/dist/components/Tooltip/types.d.ts +6 -1
- package/dist/dsrc.cjs.js +1 -1
- package/dist/dsrc.es.js +1331 -1324
- package/dist/preview-stats.json +525 -519
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -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
|
*/
|