@livechat/design-system-react-components 2.0.0-alpha.2 → 2.0.0-alpha.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.
- package/dist/components/Progress/{helpers.d.ts → Progress.helpers.d.ts} +0 -1
- package/dist/components/Progress/constants.d.ts +0 -1
- package/dist/components/Tooltip/types.d.ts +7 -4
- package/dist/components/Typography/types.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1818 -1774
- package/dist/style.css +1 -1
- package/package.json +4 -4
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { Placement, VirtualElement, UseDismissProps, Strategy, UseClickProps } from '@floating-ui/react';
|
|
2
|
-
import {
|
|
2
|
+
import { ButtonProps } from '../Button';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
export type TooltipTheme = 'invert' | 'important' | undefined;
|
|
5
5
|
export type TooltipButton = {
|
|
6
6
|
handleClick: () => void;
|
|
7
7
|
label: string;
|
|
8
|
-
|
|
9
|
-
};
|
|
8
|
+
} & Omit<ButtonProps, 'onClick'>;
|
|
10
9
|
export interface ITooltipProps {
|
|
11
10
|
/**
|
|
12
11
|
* The CSS class for tooltip
|
|
@@ -86,6 +85,10 @@ export interface ITooltipProps {
|
|
|
86
85
|
* Set if you want to show tooltip after trigger click if state is not managed
|
|
87
86
|
*/
|
|
88
87
|
triggerOnClick?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Set if you want to show tooltip after trigger hover if state is not managed
|
|
90
|
+
*/
|
|
91
|
+
triggerOnHover?: boolean;
|
|
89
92
|
/**
|
|
90
93
|
* Set the tooltip distance from the trigger
|
|
91
94
|
*/
|
|
@@ -188,5 +191,5 @@ export interface ITooltipInteractiveProps {
|
|
|
188
191
|
/**
|
|
189
192
|
* The Interactive tooltip secondary button props
|
|
190
193
|
*/
|
|
191
|
-
secondaryButton
|
|
194
|
+
secondaryButton?: TooltipButton;
|
|
192
195
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type TTextSize = 'xs' | 'sm' | 'md';
|
|
1
|
+
export type TTextSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
2
2
|
export type THeadingSize = '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3
3
|
export type TDisplaySize = 'sm' | 'md' | 'lg' | 'max';
|
|
4
4
|
export type TTextAlign = 'left' | 'right' | 'center' | 'justify';
|