@livechat/design-system-react-components 1.0.0-alpha.60 → 1.0.0-alpha.61
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 +1 -1
- package/dist/components/ActionMenu/ActionMenuItem.d.ts +6 -0
- package/dist/components/ActionMenu/constants.d.ts +1 -1
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Modal/ModalHeader.d.ts +9 -0
- package/dist/components/Modal/StoriesComponents.d.ts +1 -6
- package/dist/components/Modal/index.d.ts +2 -0
- package/dist/components/Tooltip/Tooltip.d.ts +1 -20
- package/dist/components/Tooltip/Tooltip.stories.d.ts +9 -38
- package/dist/components/Tooltip/components/FloatingComponent.d.ts +18 -0
- package/dist/components/Tooltip/{Interactive.d.ts → components/Interactive.d.ts} +1 -1
- package/dist/components/Tooltip/components/Reports.d.ts +7 -0
- package/dist/components/Tooltip/{UserGuide.d.ts → components/UserGuide/UserGuide.d.ts} +2 -2
- package/dist/components/Tooltip/components/UserGuide/index.d.ts +1 -0
- package/dist/components/Tooltip/components/index.d.ts +5 -0
- package/dist/components/Tooltip/helpers.d.ts +1 -0
- package/dist/components/Tooltip/index.d.ts +2 -4
- package/dist/components/Tooltip/types.d.ts +22 -0
- package/dist/dsrc.cjs.js +6 -6
- package/dist/dsrc.es.js +1588 -1468
- package/dist/dsrc.umd.js +6 -6
- package/dist/preview-stats.json +649 -553
- package/dist/style.css +1 -1
- package/package.json +13 -12
- /package/dist/components/Tooltip/{Info.d.ts → components/Info.d.ts} +0 -0
- /package/dist/components/Tooltip/{Simple.d.ts → components/Simple.d.ts} +0 -0
- /package/dist/components/Tooltip/{SpotlightOverlay.d.ts → components/UserGuide/SpotlightOverlay.d.ts} +0 -0
- /package/dist/components/Tooltip/{UserGuideStep.d.ts → components/UserGuide/UserGuideStep.d.ts} +0 -0
- /package/dist/components/Tooltip/{virtualElementReference.d.ts → components/UserGuide/virtualElementReference.d.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export type IconSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
3
|
-
export type IconKind = 'primary' | 'subtle' | 'inverted' | 'inverted-subtle' | 'link' | 'success' | 'warning' | 'error';
|
|
3
|
+
export type IconKind = 'primary' | 'subtle' | 'inverted' | 'inverted-subtle' | 'link' | 'success' | 'warning' | 'error' | 'negative' | 'positive' | 'warning' | 'action-primary' | 'action-negative' | 'action-positive' | 'action-warning' | 'action-neutral';
|
|
4
4
|
export type IconSource = React.FC<React.SVGProps<SVGSVGElement>> & React.ReactElement;
|
|
5
5
|
export interface IconProps {
|
|
6
6
|
source: IconSource;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconProps } from '../Icon';
|
|
3
|
+
export interface ModalHeaderProps {
|
|
4
|
+
title?: React.ReactNode;
|
|
5
|
+
iconProps?: IconProps;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
className?: 'string';
|
|
8
|
+
}
|
|
9
|
+
export declare const ModalHeader: React.FC<ModalHeaderProps>;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
interface ModalHeaderProps {
|
|
3
|
-
color?: string;
|
|
4
|
-
}
|
|
5
|
-
export declare const ModalHeader: React.FC<ModalHeaderProps>;
|
|
6
|
-
export declare const ModalFooter: React.FC;
|
|
7
2
|
export declare const ModalFullSpaceContent: React.FC;
|
|
8
3
|
export declare const ModalContent: React.FC;
|
|
9
|
-
export
|
|
4
|
+
export declare const ModalFooter: React.FC;
|
|
@@ -2,7 +2,9 @@ export { Modal } from './Modal';
|
|
|
2
2
|
export { ModalBase } from './ModalBase';
|
|
3
3
|
export { ModalCloseButton } from './ModalCloseButton';
|
|
4
4
|
export { ModalPortal } from './ModalPortal';
|
|
5
|
+
export { ModalHeader } from './ModalHeader';
|
|
5
6
|
export type { ModalProps } from './Modal';
|
|
6
7
|
export type { ModalBaseProps } from './ModalBase';
|
|
7
8
|
export type { ModalCloseButtonProps } from './ModalCloseButton';
|
|
8
9
|
export type { ModalPortalProps } from './ModalPortal';
|
|
10
|
+
export type { ModalHeaderProps } from './ModalHeader';
|
|
@@ -1,22 +1,3 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface ITooltipProps {
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
className?: string;
|
|
6
|
-
theme?: 'invert' | 'important' | undefined;
|
|
7
|
-
placement?: Placement;
|
|
8
|
-
isVisible?: boolean;
|
|
9
|
-
withFadeAnimation?: boolean;
|
|
10
|
-
transitionDuration?: number;
|
|
11
|
-
transitionDelay?: number;
|
|
12
|
-
hoverOutDelayTimeout?: number;
|
|
13
|
-
offsetMainAxis?: number;
|
|
14
|
-
triggerOnClick?: boolean;
|
|
15
|
-
arrowOffsetY?: number;
|
|
16
|
-
arrowOffsetX?: number;
|
|
17
|
-
triggerRenderer: () => React.ReactNode;
|
|
18
|
-
referenceElement?: VirtualElement;
|
|
19
|
-
onOpen?: () => void;
|
|
20
|
-
onClose?: () => void;
|
|
21
|
-
}
|
|
2
|
+
import { ITooltipProps } from './types';
|
|
22
3
|
export declare const Tooltip: React.FC<ITooltipProps>;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ITooltipProps } from './
|
|
3
|
-
|
|
2
|
+
import { ITooltipProps } from './types';
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, ITooltipProps & {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Default: {
|
|
4
8
|
(args: ITooltipProps): React.ReactElement;
|
|
5
9
|
args: {
|
|
6
10
|
placement: string;
|
|
@@ -16,38 +20,9 @@ export declare const Tooltip: {
|
|
|
16
20
|
hoverOutDelayTimeout: number;
|
|
17
21
|
};
|
|
18
22
|
};
|
|
19
|
-
export declare const TooltipInfo:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
placement: string;
|
|
23
|
-
isVisible: boolean;
|
|
24
|
-
theme: string;
|
|
25
|
-
triggerOnClick: boolean;
|
|
26
|
-
arrowOffsetY: number;
|
|
27
|
-
arrowOffsetX: number;
|
|
28
|
-
offsetMainAxis: number;
|
|
29
|
-
withFadeAnimation: boolean;
|
|
30
|
-
transitionDuration: number;
|
|
31
|
-
transitionDelay: number;
|
|
32
|
-
hoverOutDelayTimeout: number;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
export declare const TooltipInteractive: {
|
|
36
|
-
(args: ITooltipProps): JSX.Element;
|
|
37
|
-
args: {
|
|
38
|
-
placement: string;
|
|
39
|
-
isVisible: boolean;
|
|
40
|
-
theme: string;
|
|
41
|
-
triggerOnClick: boolean;
|
|
42
|
-
arrowOffsetY: number;
|
|
43
|
-
arrowOffsetX: number;
|
|
44
|
-
offsetMainAxis: number;
|
|
45
|
-
withFadeAnimation: boolean;
|
|
46
|
-
transitionDuration: number;
|
|
47
|
-
transitionDelay: number;
|
|
48
|
-
hoverOutDelayTimeout: number;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
23
|
+
export declare const TooltipInfo: () => JSX.Element;
|
|
24
|
+
export declare const TooltipInteractive: () => JSX.Element;
|
|
25
|
+
export declare const TooltipReports: () => JSX.Element;
|
|
51
26
|
export declare const TooltipUserGuide: {
|
|
52
27
|
(args: ITooltipProps): JSX.Element;
|
|
53
28
|
args: {
|
|
@@ -64,7 +39,3 @@ export declare const TooltipUserGuide: {
|
|
|
64
39
|
hoverOutDelayTimeout: number;
|
|
65
40
|
};
|
|
66
41
|
};
|
|
67
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, ITooltipProps & {
|
|
68
|
-
children?: React.ReactNode;
|
|
69
|
-
}>;
|
|
70
|
-
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { UseFloatingReturn } from '@floating-ui/react-dom';
|
|
3
|
+
import { ITooltipProps } from '../types';
|
|
4
|
+
type IProps = Pick<ITooltipProps, 'referenceElement' | 'arrowOffsetX' | 'arrowOffsetY' | 'className' | 'theme' | 'withFadeAnimation' | 'transitionDuration' | 'transitionDelay'> & {
|
|
5
|
+
visible?: boolean;
|
|
6
|
+
floatingOptions: UseFloatingReturn;
|
|
7
|
+
baseClass: string;
|
|
8
|
+
arrowRef: React.RefObject<HTMLDivElement>;
|
|
9
|
+
transitionDuration: number;
|
|
10
|
+
transitionDelay: number;
|
|
11
|
+
handleMouseEnter: (event: React.MouseEvent) => void;
|
|
12
|
+
handleMouseLeave: (event: React.MouseEvent) => void;
|
|
13
|
+
handleCloseAction: (event: MouseEvent | KeyboardEvent) => void;
|
|
14
|
+
childrenElements: React.ReactNode;
|
|
15
|
+
fullSpaceContent?: boolean;
|
|
16
|
+
};
|
|
17
|
+
export declare const FloatingComponent: React.FC<IProps>;
|
|
18
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ModalPortalProps } from '
|
|
3
|
-
import { ITooltipProps } from '
|
|
2
|
+
import { ModalPortalProps } from '../../../Modal';
|
|
3
|
+
import { ITooltipProps } from '../../types';
|
|
4
4
|
interface IOwnProps {
|
|
5
5
|
shouldSlide?: boolean;
|
|
6
6
|
className?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UserGuide } from './UserGuide';
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
export { Tooltip } from './Tooltip';
|
|
2
|
-
export { Simple } from './
|
|
3
|
-
export {
|
|
4
|
-
export { Interactive } from './Interactive';
|
|
5
|
-
export { UserGuide } from './UserGuide';
|
|
2
|
+
export { Simple, Info, Interactive, Reports } from './components';
|
|
3
|
+
export { UserGuide } from './components/UserGuide';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Placement, VirtualElement } from '@floating-ui/react-dom';
|
|
3
|
+
export interface ITooltipProps {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
theme?: 'invert' | 'important' | undefined;
|
|
7
|
+
placement?: Placement;
|
|
8
|
+
isVisible?: boolean;
|
|
9
|
+
withFadeAnimation?: boolean;
|
|
10
|
+
transitionDuration?: number;
|
|
11
|
+
transitionDelay?: number;
|
|
12
|
+
hoverOutDelayTimeout?: number;
|
|
13
|
+
offsetMainAxis?: number;
|
|
14
|
+
triggerOnClick?: boolean;
|
|
15
|
+
arrowOffsetY?: number;
|
|
16
|
+
arrowOffsetX?: number;
|
|
17
|
+
fullSpaceContent?: boolean;
|
|
18
|
+
triggerRenderer: () => React.ReactNode;
|
|
19
|
+
referenceElement?: VirtualElement;
|
|
20
|
+
onOpen?: () => void;
|
|
21
|
+
onClose?: () => void;
|
|
22
|
+
}
|