@livechat/design-system-react-components 1.0.0-alpha.41 → 1.0.0-alpha.43
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/dsrc.cjs.js +9 -9
- package/dist/dsrc.es.js +127 -130
- package/dist/dsrc.umd.js +9 -9
- package/dist/src/components/Alert/Alert.d.ts +2 -2
- package/dist/src/components/Avatar/Avatar.d.ts +2 -2
- package/dist/src/components/Badge/Badge.d.ts +3 -3
- package/dist/src/components/Button/Button.d.ts +4 -4
- package/dist/src/components/Card/Card.d.ts +4 -4
- package/dist/src/components/Checkbox/Checkbox.d.ts +3 -3
- package/dist/src/components/DatePicker/DatePicker.d.ts +1 -2
- package/dist/src/components/DatePicker/DatePickerNavbar.d.ts +2 -2
- package/dist/src/components/DatePicker/types.d.ts +3 -3
- package/dist/src/components/FieldDescription/FieldDescription.d.ts +3 -3
- package/dist/src/components/FieldError/FieldError.d.ts +3 -3
- package/dist/src/components/FieldGroup/FieldGroup.d.ts +4 -4
- package/dist/src/components/FileUploadProgress/FileUploadProgress.d.ts +3 -3
- package/dist/src/components/FileUploadProgress/FileUploadProgressActions.d.ts +2 -2
- package/dist/src/components/Form/Form.d.ts +4 -4
- package/dist/src/components/FormField/FormField.d.ts +6 -6
- package/dist/src/components/FormGroup/FormGroup.d.ts +3 -3
- package/dist/src/components/Icon/Icon.d.ts +3 -3
- package/dist/src/components/Input/Input.d.ts +4 -4
- package/dist/src/components/Link/Link.d.ts +3 -3
- package/dist/src/components/Loader/Loader.d.ts +3 -3
- package/dist/src/components/Modal/Modal.d.ts +5 -5
- package/dist/src/components/Modal/ModalBase.d.ts +3 -3
- package/dist/src/components/Modal/ModalCloseButton.d.ts +3 -3
- package/dist/src/components/Modal/ModalPortal.d.ts +4 -4
- package/dist/src/components/NumericInput/NumericInput.d.ts +3 -3
- package/dist/src/components/Picker/Picker.d.ts +2 -2
- package/dist/src/components/Picker/PickerList.d.ts +4 -4
- package/dist/src/components/Picker/Trigger.d.ts +3 -3
- package/dist/src/components/Picker/TriggerBody.d.ts +2 -2
- package/dist/src/components/Popover/Popover.d.ts +4 -4
- package/dist/src/components/Progress/ProgressBar.d.ts +2 -2
- package/dist/src/components/Progress/ProgressCircle.d.ts +2 -2
- package/dist/src/components/PromoBanner/PromoBanner.d.ts +2 -2
- package/dist/src/components/RadioButton/RadioButton.d.ts +3 -3
- package/dist/src/components/Search/Search.d.ts +2 -2
- package/dist/src/components/SegmentedControl/SegmentedControl.d.ts +4 -4
- package/dist/src/components/Switch/Switch.d.ts +4 -4
- package/dist/src/components/Tab/Tab.d.ts +4 -4
- package/dist/src/components/Tab/TabsWrapper.d.ts +3 -3
- package/dist/src/components/Tag/Tag.d.ts +3 -3
- package/dist/src/components/TagInput/EditableTag.d.ts +4 -4
- package/dist/src/components/TagInput/EditableTagContent.d.ts +4 -4
- package/dist/src/components/TagInput/EmailTagInput.d.ts +2 -2
- package/dist/src/components/TagInput/TagInput.d.ts +2 -2
- package/dist/src/components/Textarea/Textarea.d.ts +3 -3
- package/dist/src/components/Toast/Toast.d.ts +3 -3
- package/dist/src/components/Toast/ToastWrapper.d.ts +3 -3
- package/dist/src/components/Tooltip/Info.d.ts +3 -3
- package/dist/src/components/Tooltip/Interactive.d.ts +12 -4
- package/dist/src/components/Tooltip/Simple.d.ts +2 -2
- package/dist/src/components/Tooltip/Tooltip.d.ts +4 -4
- package/dist/src/components/Tooltip/UserGuide.d.ts +2 -2
- package/dist/src/components/Typography/Heading.d.ts +2 -2
- package/dist/src/components/Typography/Text.d.ts +2 -2
- package/dist/src/components/UploadBar/UploadBar.d.ts +3 -3
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { RefObject, FC } from 'react';
|
|
2
2
|
export interface EditableTagContentProps {
|
|
3
3
|
value: string;
|
|
4
4
|
className?: string;
|
|
5
|
-
innerEditableRef:
|
|
6
|
-
inputRef:
|
|
5
|
+
innerEditableRef: RefObject<HTMLDivElement>;
|
|
6
|
+
inputRef: RefObject<HTMLInputElement>;
|
|
7
7
|
change: (value: string) => void;
|
|
8
8
|
remove: () => void;
|
|
9
9
|
validator?: (value: string) => boolean;
|
|
10
10
|
}
|
|
11
|
-
export declare const EditableTagContent:
|
|
11
|
+
export declare const EditableTagContent: FC<EditableTagContentProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
1
2
|
import { TagInputProps } from './TagInput';
|
|
2
|
-
import * as React from 'react';
|
|
3
3
|
export declare type EmailTagInputProps = Omit<TagInputProps, 'validator'>;
|
|
4
4
|
export declare const emailRegex: RegExp;
|
|
5
|
-
export declare const EmailTagInput:
|
|
5
|
+
export declare const EmailTagInput: FC<EmailTagInputProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FC } from 'react';
|
|
2
2
|
declare type Tags = string[];
|
|
3
3
|
export interface TagInputProps {
|
|
4
4
|
id?: string;
|
|
@@ -9,5 +9,5 @@ export interface TagInputProps {
|
|
|
9
9
|
validator?: (val: string) => boolean;
|
|
10
10
|
size?: 'medium' | 'large';
|
|
11
11
|
}
|
|
12
|
-
export declare const TagInput:
|
|
12
|
+
export declare const TagInput: FC<TagInputProps>;
|
|
13
13
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
export interface TextareaProps extends
|
|
1
|
+
import { TextareaHTMLAttributes } from 'react';
|
|
2
|
+
export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
3
3
|
className?: string;
|
|
4
4
|
error?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export declare const Textarea:
|
|
6
|
+
export declare const Textarea: import("react").ForwardRefExoticComponent<TextareaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { HTMLAttributes, FC } from 'react';
|
|
2
2
|
declare type ToastKind = 'success' | 'warning' | 'error' | 'info';
|
|
3
3
|
declare type ToastAction = {
|
|
4
4
|
onClick: () => void;
|
|
5
5
|
label: string;
|
|
6
6
|
closesOnClick?: boolean;
|
|
7
7
|
};
|
|
8
|
-
export interface ToastProps extends
|
|
8
|
+
export interface ToastProps extends HTMLAttributes<HTMLDivElement> {
|
|
9
9
|
action?: ToastAction;
|
|
10
10
|
className?: string;
|
|
11
11
|
removable?: boolean;
|
|
12
12
|
kind?: ToastKind;
|
|
13
13
|
onClose?: () => void;
|
|
14
14
|
}
|
|
15
|
-
export declare const Toast:
|
|
15
|
+
export declare const Toast: FC<ToastProps>;
|
|
16
16
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ReactElement, FC } from 'react';
|
|
2
2
|
import { ToastProps, Toast } from './Toast';
|
|
3
3
|
declare type HorizontalPosition = 'left' | 'center' | 'right';
|
|
4
4
|
declare type VerticalPosition = 'top' | 'bottom';
|
|
5
5
|
export declare const ANIMATION_TIME = 200;
|
|
6
6
|
interface Toast extends ToastProps {
|
|
7
7
|
id: string;
|
|
8
|
-
content:
|
|
8
|
+
content: ReactElement | string;
|
|
9
9
|
}
|
|
10
10
|
export interface ToastWrapperProps {
|
|
11
11
|
className?: string;
|
|
@@ -16,5 +16,5 @@ export interface ToastWrapperProps {
|
|
|
16
16
|
verticalPosition?: VerticalPosition;
|
|
17
17
|
horizontalPosition?: HorizontalPosition;
|
|
18
18
|
}
|
|
19
|
-
export declare const ToastWrapper:
|
|
19
|
+
export declare const ToastWrapper: FC<ToastWrapperProps>;
|
|
20
20
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
2
|
export declare const Info: React.FC<{
|
|
3
|
-
header
|
|
3
|
+
header?: string;
|
|
4
4
|
text: string;
|
|
5
5
|
closeWithX?: boolean;
|
|
6
6
|
theme?: string;
|
|
7
|
-
handleCloseAction?: (ev:
|
|
7
|
+
handleCloseAction?: (ev: MouseEvent) => void;
|
|
8
8
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ButtonKind } from '../Button';
|
|
2
2
|
export declare const Interactive: React.FC<{
|
|
3
|
-
header
|
|
3
|
+
header?: string;
|
|
4
4
|
text: string;
|
|
5
5
|
image?: {
|
|
6
6
|
src: string;
|
|
@@ -8,7 +8,15 @@ export declare const Interactive: React.FC<{
|
|
|
8
8
|
};
|
|
9
9
|
closeWithX?: boolean;
|
|
10
10
|
theme?: 'invert' | 'important';
|
|
11
|
-
handleClickPrimary: () => void;
|
|
12
|
-
handleClickSecondary: () => void;
|
|
13
11
|
handleCloseAction?: (ev: React.MouseEvent) => void;
|
|
12
|
+
primaryButton: {
|
|
13
|
+
handleClick: () => void;
|
|
14
|
+
label: string;
|
|
15
|
+
kind?: ButtonKind;
|
|
16
|
+
};
|
|
17
|
+
secondaryButton: {
|
|
18
|
+
handleClick: () => void;
|
|
19
|
+
label: string;
|
|
20
|
+
kind?: ButtonKind;
|
|
21
|
+
};
|
|
14
22
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { Placement, VirtualElement } from '@floating-ui/react-dom';
|
|
2
|
+
import { ReactNode, FC } from 'react';
|
|
3
3
|
export interface ITooltipProps {
|
|
4
|
-
children?:
|
|
4
|
+
children?: ReactNode;
|
|
5
5
|
className?: string;
|
|
6
6
|
theme?: 'invert' | 'important' | undefined;
|
|
7
7
|
placement?: Placement;
|
|
@@ -14,9 +14,9 @@ export interface ITooltipProps {
|
|
|
14
14
|
triggerOnClick?: boolean;
|
|
15
15
|
arrowOffsetY?: number;
|
|
16
16
|
arrowOffsetX?: number;
|
|
17
|
-
triggerRenderer: () =>
|
|
17
|
+
triggerRenderer: () => ReactNode;
|
|
18
18
|
referenceElement?: VirtualElement;
|
|
19
19
|
onOpen?: () => void;
|
|
20
20
|
onClose?: () => void;
|
|
21
21
|
}
|
|
22
|
-
export declare const Tooltip:
|
|
22
|
+
export declare const Tooltip: FC<ITooltipProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { ModalPortalProps } from '../Modal/';
|
|
3
2
|
import { ITooltipProps } from './Tooltip';
|
|
3
|
+
import { FC } from 'react';
|
|
4
4
|
interface IOwnProps {
|
|
5
5
|
shouldSlide?: boolean;
|
|
6
6
|
className?: string;
|
|
@@ -8,5 +8,5 @@ interface IOwnProps {
|
|
|
8
8
|
}
|
|
9
9
|
interface IUserGuide extends IOwnProps, ITooltipProps, Omit<ModalPortalProps, 'children'> {
|
|
10
10
|
}
|
|
11
|
-
export declare const UserGuide:
|
|
11
|
+
export declare const UserGuide: FC<IUserGuide>;
|
|
12
12
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FC } from 'react';
|
|
2
2
|
declare type TSize = 'xl' | 'lg' | 'md' | 'sm' | 'xs';
|
|
3
3
|
interface IProps {
|
|
4
4
|
size?: TSize;
|
|
@@ -7,5 +7,5 @@ interface IProps {
|
|
|
7
7
|
/** Optional custom className */
|
|
8
8
|
className?: string;
|
|
9
9
|
}
|
|
10
|
-
export declare const Heading:
|
|
10
|
+
export declare const Heading: FC<IProps>;
|
|
11
11
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FC } from 'react';
|
|
2
2
|
declare type TSize = 'md' | 'sm' | 'xs';
|
|
3
3
|
interface IProps {
|
|
4
4
|
/** DOM element name that will be rendered */
|
|
@@ -11,5 +11,5 @@ interface IProps {
|
|
|
11
11
|
underline?: boolean;
|
|
12
12
|
strike?: boolean;
|
|
13
13
|
}
|
|
14
|
-
export declare const Text:
|
|
14
|
+
export declare const Text: FC<IProps>;
|
|
15
15
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { ProgressStatus, ProgressSize } from '../Progress/constants';
|
|
2
|
+
import { ReactNode, FC } from 'react';
|
|
3
3
|
export interface UploadBarProps {
|
|
4
4
|
className?: string;
|
|
5
5
|
progressValue: number;
|
|
@@ -7,10 +7,10 @@ export interface UploadBarProps {
|
|
|
7
7
|
isExpanded?: boolean;
|
|
8
8
|
errorMessage?: string;
|
|
9
9
|
status?: ProgressStatus;
|
|
10
|
-
icon?:
|
|
10
|
+
icon?: ReactNode;
|
|
11
11
|
size?: ProgressSize;
|
|
12
12
|
mode?: 'single' | 'multiple';
|
|
13
13
|
onCloseButtonClick?: () => void;
|
|
14
14
|
onRetryButtonClick?: () => void;
|
|
15
15
|
}
|
|
16
|
-
export declare const UploadBar:
|
|
16
|
+
export declare const UploadBar: FC<UploadBarProps>;
|