@livechat/design-system-react-components 1.0.0-alpha.46 → 1.0.0-alpha.48
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 +89 -92
- 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 +6 -6
- 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 +2 -1
- 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 +2 -2
- package/dist/src/components/Tooltip/Interactive.d.ts +1 -0
- 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 +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
export interface EditableTagProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
inputRef: RefObject<HTMLInputElement>;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface EditableTagProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
inputRef: React.RefObject<HTMLInputElement>;
|
|
4
4
|
index: number;
|
|
5
5
|
update: (idx: number, value: string) => void;
|
|
6
6
|
remove: (idx: number) => void;
|
|
@@ -8,4 +8,4 @@ export interface EditableTagProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
8
8
|
children: string;
|
|
9
9
|
size: 'medium' | 'large';
|
|
10
10
|
}
|
|
11
|
-
export declare const EditableTag: FC<EditableTagProps>;
|
|
11
|
+
export declare const EditableTag: React.FC<EditableTagProps>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export interface EditableTagContentProps {
|
|
3
3
|
value: string;
|
|
4
4
|
className?: string;
|
|
5
|
-
innerEditableRef: RefObject<HTMLDivElement>;
|
|
6
|
-
inputRef: RefObject<HTMLInputElement>;
|
|
5
|
+
innerEditableRef: React.RefObject<HTMLDivElement>;
|
|
6
|
+
inputRef: React.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: FC<EditableTagContentProps>;
|
|
11
|
+
export declare const EditableTagContent: React.FC<EditableTagContentProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
1
|
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: FC<EmailTagInputProps>;
|
|
5
|
+
export declare const EmailTagInput: React.FC<EmailTagInputProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React 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: FC<TagInputProps>;
|
|
12
|
+
export declare const TagInput: React.FC<TagInputProps>;
|
|
13
13
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
3
3
|
className?: string;
|
|
4
4
|
error?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export declare const Textarea:
|
|
6
|
+
export declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React 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 HTMLAttributes<HTMLDivElement> {
|
|
8
|
+
export interface ToastProps extends React.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: FC<ToastProps>;
|
|
15
|
+
export declare const Toast: React.FC<ToastProps>;
|
|
16
16
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React 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: ReactElement | string;
|
|
8
|
+
content: React.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: FC<ToastWrapperProps>;
|
|
19
|
+
export declare const ToastWrapper: React.FC<ToastWrapperProps>;
|
|
20
20
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export declare const Info: React.FC<{
|
|
3
3
|
header?: string;
|
|
4
4
|
text: string;
|
|
5
5
|
closeWithX?: boolean;
|
|
6
6
|
theme?: string;
|
|
7
|
-
handleCloseAction?: (ev: MouseEvent) => void;
|
|
7
|
+
handleCloseAction?: (ev: React.MouseEvent) => void;
|
|
8
8
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { Placement, VirtualElement } from '@floating-ui/react-dom';
|
|
2
|
-
import { ReactNode, FC } from 'react';
|
|
3
3
|
export interface ITooltipProps {
|
|
4
|
-
children?: ReactNode;
|
|
4
|
+
children?: React.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: () => ReactNode;
|
|
17
|
+
triggerRenderer: () => React.ReactNode;
|
|
18
18
|
referenceElement?: VirtualElement;
|
|
19
19
|
onOpen?: () => void;
|
|
20
20
|
onClose?: () => void;
|
|
21
21
|
}
|
|
22
|
-
export declare const Tooltip: FC<ITooltipProps>;
|
|
22
|
+
export declare const Tooltip: React.FC<ITooltipProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { ModalPortalProps } from '../Modal/';
|
|
2
3
|
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: FC<IUserGuide>;
|
|
11
|
+
export declare const UserGuide: React.FC<IUserGuide>;
|
|
12
12
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React 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: FC<IProps>;
|
|
10
|
+
export declare const Heading: React.FC<IProps>;
|
|
11
11
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React 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: FC<IProps>;
|
|
14
|
+
export declare const Text: React.FC<IProps>;
|
|
15
15
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
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?: ReactNode;
|
|
10
|
+
icon?: React.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: FC<UploadBarProps>;
|
|
16
|
+
export declare const UploadBar: React.FC<UploadBarProps>;
|