@livechat/design-system-react-components 1.0.0-alpha.2 → 1.0.0-alpha.6
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 +1 -0
- package/dist/dsrc.es.js +2213 -0
- package/dist/dsrc.umd.js +1 -0
- package/dist/{components → src/components/Alert}/Alert.d.ts +19 -19
- package/dist/src/components/Alert/index.d.ts +1 -0
- package/dist/src/components/Badge/Badge.d.ts +5 -0
- package/dist/src/components/Badge/index.d.ts +1 -0
- package/dist/{components → src/components/Button}/Button.d.ts +13 -13
- package/dist/src/components/Button/index.d.ts +2 -0
- package/dist/{components → src/components/ButtonGroup}/ButtonGroup.d.ts +11 -11
- package/dist/src/components/ButtonGroup/index.d.ts +1 -0
- package/dist/src/components/Card/Card.d.ts +6 -0
- package/dist/src/components/Card/index.d.ts +2 -0
- package/dist/src/components/Checkbox/Checkbox.d.ts +7 -0
- package/dist/{components → src/components/Checkbox}/CheckboxField.d.ts +7 -7
- package/dist/src/components/Checkbox/index.d.ts +2 -0
- package/dist/src/components/FieldDescription/FieldDescription.d.ts +3 -0
- package/dist/src/components/FieldDescription/index.d.ts +1 -0
- package/dist/src/components/FieldError/FieldError.d.ts +3 -0
- package/dist/src/components/FieldError/index.d.ts +1 -0
- package/dist/src/components/FieldGroup/FieldGroup.d.ts +8 -0
- package/dist/src/components/FieldGroup/index.d.ts +1 -0
- package/dist/src/components/Form/Form.d.ts +7 -0
- package/dist/src/components/Form/index.d.ts +2 -0
- package/dist/src/components/FormGroup/FormGroup.d.ts +7 -0
- package/dist/src/components/FormGroup/index.d.ts +1 -0
- package/dist/{components → src/components/Icon}/Icon.d.ts +70 -69
- package/dist/src/components/Icon/index.d.ts +1 -0
- package/dist/src/components/InputField/InputField.d.ts +15 -0
- package/dist/src/components/InputField/index.d.ts +1 -0
- package/dist/src/components/Link/Link.d.ts +14 -0
- package/dist/src/components/Link/index.d.ts +1 -0
- package/dist/{components → src/components/Loader}/Loader.d.ts +10 -10
- package/dist/src/components/Loader/index.d.ts +1 -0
- package/dist/src/components/Modal/ActionModal.d.ts +8 -0
- package/dist/src/components/Modal/Modal.d.ts +7 -0
- package/dist/src/components/Modal/ModalBase.d.ts +6 -0
- package/dist/src/components/Modal/ModalCloseButton.d.ts +3 -0
- package/dist/src/components/Modal/ModalPortal.d.ts +7 -0
- package/dist/src/components/Modal/index.d.ts +10 -0
- package/dist/src/components/NumericInput/NumericInput.d.ts +14 -0
- package/dist/src/components/NumericInput/NumericInputField.d.ts +19 -0
- package/dist/src/components/NumericInput/index.d.ts +2 -0
- package/dist/src/components/Popover/Popover.d.ts +15 -0
- package/dist/src/components/Popover/index.d.ts +1 -0
- package/dist/{components → src/components/Progress}/ProgressCircle.d.ts +9 -9
- package/dist/{components → src/components/Progress}/constants.d.ts +12 -12
- package/dist/{components → src/components/Progress}/helpers.d.ts +3 -3
- package/dist/src/components/Progress/index.d.ts +1 -0
- package/dist/{components → src/components/PromoBanner}/PromoBanner.d.ts +19 -19
- package/dist/src/components/PromoBanner/index.d.ts +1 -0
- package/dist/src/components/RadioButton/RadioButton.d.ts +7 -0
- package/dist/src/components/RadioButton/index.d.ts +1 -0
- package/dist/{components → src/components/Switch}/Switch.d.ts +20 -17
- package/dist/src/components/Switch/index.d.ts +1 -0
- package/dist/{components → src/components/Tab}/Tab.d.ts +12 -12
- package/dist/{components → src/components/Tab}/TabsWrapper.d.ts +3 -3
- package/dist/src/components/Tab/index.d.ts +2 -0
- package/dist/src/components/Tag/Tag.d.ts +12 -0
- package/dist/src/components/Tag/index.d.ts +1 -0
- package/dist/src/components/TagInput/EditableTag.d.ts +11 -0
- package/dist/src/components/TagInput/EditableTagContent.d.ts +11 -0
- package/dist/src/components/TagInput/EmailTagInput.d.ts +5 -0
- package/dist/src/components/TagInput/TagInput.d.ts +12 -0
- package/dist/src/components/TagInput/index.d.ts +4 -0
- package/dist/src/components/TextField/TextField.d.ts +13 -0
- package/dist/src/components/TextField/index.d.ts +1 -0
- package/dist/{components → src/components/Toast}/Toast.d.ts +22 -22
- package/dist/{components → src/components/Toast}/ToastWrapper.d.ts +27 -26
- package/dist/src/components/Toast/index.d.ts +2 -0
- package/dist/{components → src/components/Typography}/Heading.d.ts +11 -11
- package/dist/{components → src/components/Typography}/Text.d.ts +15 -15
- package/dist/src/components/Typography/index.d.ts +2 -0
- package/dist/src/index.d.ts +29 -0
- package/dist/src/themes/designTokens.d.ts +126 -0
- package/dist/src/utils/keyCodes.d.ts +12 -0
- package/dist/{utils → src/utils}/noop.d.ts +1 -1
- package/dist/src/vite-env.d.ts +1 -0
- package/dist/style.css +1 -0
- package/package.json +40 -35
- package/dist/components/Alert.spec.d.ts +0 -1
- package/dist/components/Badge.d.ts +0 -6
- package/dist/components/Badge.spec.d.ts +0 -1
- package/dist/components/Button.spec.d.ts +0 -1
- package/dist/components/ButtonGroup.spec.d.ts +0 -1
- package/dist/components/Card.d.ts +0 -6
- package/dist/components/Card.spec.d.ts +0 -1
- package/dist/components/Checkbox.d.ts +0 -7
- package/dist/components/CheckboxField.spec.d.ts +0 -1
- package/dist/components/FieldDescription.d.ts +0 -3
- package/dist/components/FieldError.d.ts +0 -3
- package/dist/components/FieldGroup.d.ts +0 -8
- package/dist/components/FieldGroup.spec.d.ts +0 -1
- package/dist/components/FieldLabel.d.ts +0 -3
- package/dist/components/Form.d.ts +0 -7
- package/dist/components/Form.spec.d.ts +0 -1
- package/dist/components/FormGroup.d.ts +0 -7
- package/dist/components/FormGroup.spec.d.ts +0 -1
- package/dist/components/Loader.spec.d.ts +0 -1
- package/dist/components/Modal/ActionModal.d.ts +0 -8
- package/dist/components/Modal/Modal.d.ts +0 -7
- package/dist/components/Modal/ModalBase.d.ts +0 -6
- package/dist/components/Modal/ModalBase.spec.d.ts +0 -1
- package/dist/components/Modal/ModalCloseButton.d.ts +0 -3
- package/dist/components/Modal/ModalPortal.d.ts +0 -7
- package/dist/components/ProgressBar.d.ts +0 -9
- package/dist/components/ProgressBar.spec.d.ts +0 -1
- package/dist/components/ProgressCircle.spec.d.ts +0 -1
- package/dist/components/PromoBanner.spec.d.ts +0 -1
- package/dist/components/RadioButton.d.ts +0 -7
- package/dist/components/RadioButton.spec.d.ts +0 -1
- package/dist/components/Switch.spec.d.ts +0 -1
- package/dist/components/Tab.spec.d.ts +0 -1
- package/dist/components/TabsWrapper.spec.d.ts +0 -1
- package/dist/components/Toast.spec.d.ts +0 -1
- package/dist/components/ToastWrapper.spec.d.ts +0 -1
- package/dist/constants/keyCodes.d.ts +0 -3
- package/dist/index.css +0 -2
- package/dist/index.css.map +0 -1
- package/dist/index.d.ts +0 -8
- package/dist/index.js +0 -2
- package/dist/index.js.map +0 -1
- package/dist/index.modern.js +0 -2
- package/dist/index.modern.js.map +0 -1
- package/dist/index.module.js +0 -2
- package/dist/index.module.js.map +0 -1
- package/dist/index.umd.js +0 -2
- package/dist/index.umd.js.map +0 -1
- package/dist/stories/Alert.stories.d.ts +0 -14
- package/dist/stories/Badge.stories.d.ts +0 -16
- package/dist/stories/Button.stories.d.ts +0 -20
- package/dist/stories/ButtonGroup.stories.d.ts +0 -18
- package/dist/stories/Card.stories.d.ts +0 -10
- package/dist/stories/CheckboxField.stories.d.ts +0 -9
- package/dist/stories/FieldGroup.stories.d.ts +0 -9
- package/dist/stories/Form.stories.d.ts +0 -6
- package/dist/stories/FormGroup.stories.d.ts +0 -9
- package/dist/stories/Icon.stories.d.ts +0 -14
- package/dist/stories/Loader.stories.d.ts +0 -8
- package/dist/stories/Modal.stories.d.ts +0 -19
- package/dist/stories/ProgressCircle.stories.d.ts +0 -13
- package/dist/stories/Progressbar.stories.d.ts +0 -13
- package/dist/stories/PromoBanner.stories.d.ts +0 -13
- package/dist/stories/RadioButton.stories.d.ts +0 -9
- package/dist/stories/Switch.stories.d.ts +0 -12
- package/dist/stories/Tab.stories.d.ts +0 -10
- package/dist/stories/TabsWrapper.stories.d.ts +0 -15
- package/dist/stories/Toast.stories.d.ts +0 -15
- package/dist/stories/ToastWrapper.stories.d.ts +0 -40
- package/dist/stories/foundations/components/ColorTokens.d.ts +0 -2
- package/dist/stories/foundations/components/IconsShowcase.d.ts +0 -6
- package/dist/test-utils.d.ts +0 -2
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
id: string;
|
|
4
|
+
labelText?: string;
|
|
5
|
+
labelAdornment?: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
inline?: boolean;
|
|
8
|
+
error?: string;
|
|
9
|
+
description?: React.ReactNode;
|
|
10
|
+
labelRightNode?: React.ReactNode;
|
|
11
|
+
fieldClassName?: string;
|
|
12
|
+
value: string;
|
|
13
|
+
max?: number;
|
|
14
|
+
min?: number;
|
|
15
|
+
onChange: (value: string) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare type NumericInputFieldProps = Props & React.InputHTMLAttributes<HTMLInputElement>;
|
|
18
|
+
export declare const NumericInputField: React.FC<NumericInputFieldProps>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as PopperCore from '@popperjs/core';
|
|
3
|
+
declare type PopoverModifiers = {
|
|
4
|
+
[key: string]: Partial<PopperCore.StrictModifiers>;
|
|
5
|
+
};
|
|
6
|
+
export interface IPopoverProps {
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
modifiers?: PopoverModifiers;
|
|
10
|
+
placement?: PopperCore.Placement;
|
|
11
|
+
isVisible?: boolean;
|
|
12
|
+
triggerRenderer: () => React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare const Popover: React.FC<IPopoverProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Popover';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ProgressSize, ProgressStatus } from './constants';
|
|
3
|
-
export interface
|
|
4
|
-
className?: string;
|
|
5
|
-
percent: number;
|
|
6
|
-
status?: ProgressStatus;
|
|
7
|
-
size?: ProgressSize;
|
|
8
|
-
}
|
|
9
|
-
export declare const ProgressCircle: React.ExoticComponent<
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ProgressSize, ProgressStatus } from './constants';
|
|
3
|
+
export interface ProgressCircleProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
percent: number;
|
|
6
|
+
status?: ProgressStatus;
|
|
7
|
+
size?: ProgressSize;
|
|
8
|
+
}
|
|
9
|
+
export declare const ProgressCircle: React.ExoticComponent<ProgressCircleProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export declare enum ProgressStatus {
|
|
2
|
-
Normal = "normal",
|
|
3
|
-
Error = "error",
|
|
4
|
-
Success = "success"
|
|
5
|
-
}
|
|
6
|
-
export declare enum ProgressSize {
|
|
7
|
-
Small = "small",
|
|
8
|
-
Medium = "medium",
|
|
9
|
-
Large = "large"
|
|
10
|
-
}
|
|
11
|
-
export declare const PROGRESS_STATUSES: ProgressStatus[];
|
|
12
|
-
export declare const PROGRESS_SIZES: ProgressSize[];
|
|
1
|
+
export declare const enum ProgressStatus {
|
|
2
|
+
Normal = "normal",
|
|
3
|
+
Error = "error",
|
|
4
|
+
Success = "success"
|
|
5
|
+
}
|
|
6
|
+
export declare const enum ProgressSize {
|
|
7
|
+
Small = "small",
|
|
8
|
+
Medium = "medium",
|
|
9
|
+
Large = "large"
|
|
10
|
+
}
|
|
11
|
+
export declare const PROGRESS_STATUSES: ProgressStatus[];
|
|
12
|
+
export declare const PROGRESS_SIZES: ProgressSize[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ProgressStatus } from './constants';
|
|
2
|
-
export declare function getPercentNumber(status: ProgressStatus, percent?: number): number;
|
|
3
|
-
export declare function getProgressStatus(status: ProgressStatus, percent: number): ProgressStatus;
|
|
1
|
+
import { ProgressStatus } from './constants';
|
|
2
|
+
export declare function getPercentNumber(status: ProgressStatus, percent?: number): number;
|
|
3
|
+
export declare function getProgressStatus(status: ProgressStatus, percent: number): ProgressStatus;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProgressCircle } from './ProgressCircle';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare enum PromoBannerSize {
|
|
3
|
-
Small = "small",
|
|
4
|
-
Medium = "medium",
|
|
5
|
-
Large = "large"
|
|
6
|
-
}
|
|
7
|
-
export interface
|
|
8
|
-
className?: string;
|
|
9
|
-
buttonText?: string;
|
|
10
|
-
header: string;
|
|
11
|
-
img?: string;
|
|
12
|
-
light?: boolean;
|
|
13
|
-
linkText?: string;
|
|
14
|
-
size?: PromoBannerSize;
|
|
15
|
-
onButtonClick?: () => void;
|
|
16
|
-
onClose?: () => void;
|
|
17
|
-
onLinkClick?: () => void;
|
|
18
|
-
}
|
|
19
|
-
export declare const PromoBanner: React.FC<
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const enum PromoBannerSize {
|
|
3
|
+
Small = "small",
|
|
4
|
+
Medium = "medium",
|
|
5
|
+
Large = "large"
|
|
6
|
+
}
|
|
7
|
+
export interface PromoBannerProps {
|
|
8
|
+
className?: string;
|
|
9
|
+
buttonText?: string;
|
|
10
|
+
header: string;
|
|
11
|
+
img?: string;
|
|
12
|
+
light?: boolean;
|
|
13
|
+
linkText?: string;
|
|
14
|
+
size?: PromoBannerSize;
|
|
15
|
+
onButtonClick?: () => void;
|
|
16
|
+
onClose?: () => void;
|
|
17
|
+
onLinkClick?: () => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const PromoBanner: React.FC<PromoBannerProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PromoBanner } from './PromoBanner';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RadioButton } from './RadioButton';
|
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
declare enum SwitchSize {
|
|
3
|
-
Basic = "basic",
|
|
4
|
-
Compact = "compact"
|
|
5
|
-
}
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const enum SwitchSize {
|
|
3
|
+
Basic = "basic",
|
|
4
|
+
Compact = "compact"
|
|
5
|
+
}
|
|
6
|
+
export declare const enum SwitchStyles {
|
|
7
|
+
Enabled = "enabled",
|
|
8
|
+
Disabled = "disabled"
|
|
9
|
+
}
|
|
10
|
+
export interface SwitchProps {
|
|
11
|
+
className?: string;
|
|
12
|
+
defaultOn?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
innerRef?: React.LegacyRef<HTMLInputElement> | undefined;
|
|
15
|
+
name?: string;
|
|
16
|
+
on?: boolean;
|
|
17
|
+
onChange?(e: React.FormEvent, value: boolean): void;
|
|
18
|
+
size?: SwitchSize;
|
|
19
|
+
}
|
|
20
|
+
export declare const Switch: React.FC<SwitchProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Switch } from './Switch';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
declare type HTMLProps = (React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
3
|
-
href: string;
|
|
4
|
-
}) | (React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
5
|
-
href?: never;
|
|
6
|
-
});
|
|
7
|
-
export declare type
|
|
8
|
-
description?: React.ReactNode;
|
|
9
|
-
isSelected?: boolean;
|
|
10
|
-
};
|
|
11
|
-
export declare const Tab: React.FC<
|
|
12
|
-
export {};
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare type HTMLProps = (React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
3
|
+
href: string;
|
|
4
|
+
}) | (React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
5
|
+
href?: never;
|
|
6
|
+
});
|
|
7
|
+
export declare type TabProps = HTMLProps & {
|
|
8
|
+
description?: React.ReactNode;
|
|
9
|
+
isSelected?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const Tab: React.FC<TabProps>;
|
|
12
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare const TabsWrapper: React.FC<React.HTMLAttributes<HTMLDivElement>>;
|
|
3
|
-
export declare const TabsList: React.FC<React.HTMLAttributes<HTMLDivElement>>;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const TabsWrapper: React.FC<React.HTMLAttributes<HTMLDivElement>>;
|
|
3
|
+
export declare const TabsList: React.FC<React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface TagProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
kind?: 'default' | 'info' | 'warning' | 'success' | 'error';
|
|
4
|
+
size?: 'medium' | 'large';
|
|
5
|
+
customColor?: string;
|
|
6
|
+
dismissible?: boolean;
|
|
7
|
+
outline?: boolean;
|
|
8
|
+
onRemove?(): void;
|
|
9
|
+
icon?: React.FC<React.SVGProps<SVGSVGElement>> | string;
|
|
10
|
+
avatar?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const Tag: React.FC<TagProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tag } from './Tag';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface EditableTagProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
inputRef: React.RefObject<HTMLInputElement>;
|
|
4
|
+
index: number;
|
|
5
|
+
update: (idx: number, value: string) => void;
|
|
6
|
+
remove: (idx: number) => void;
|
|
7
|
+
validator?: (val: string) => boolean;
|
|
8
|
+
children: string;
|
|
9
|
+
size: 'medium' | 'large';
|
|
10
|
+
}
|
|
11
|
+
export declare const EditableTag: React.FC<EditableTagProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface EditableTagContentProps {
|
|
3
|
+
value: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
innerEditableRef: React.RefObject<HTMLDivElement>;
|
|
6
|
+
inputRef: React.RefObject<HTMLInputElement>;
|
|
7
|
+
change: (value: string) => void;
|
|
8
|
+
remove: () => void;
|
|
9
|
+
validator?: (value: string) => boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const EditableTagContent: React.FC<EditableTagContentProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare type Tags = string[];
|
|
3
|
+
export interface TagInputProps {
|
|
4
|
+
error?: string;
|
|
5
|
+
tags?: Tags;
|
|
6
|
+
onChange: (tags: Tags) => void;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
validator?: (val: string) => boolean;
|
|
9
|
+
size?: 'medium' | 'large';
|
|
10
|
+
}
|
|
11
|
+
export declare const TagInput: React.FC<TagInputProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface TextFieldProps {
|
|
3
|
+
labelText?: string;
|
|
4
|
+
labelAdornment?: React.ReactNode;
|
|
5
|
+
labelFor?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
inline?: boolean;
|
|
8
|
+
error?: string;
|
|
9
|
+
description?: React.ReactNode;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
labelRightNode?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare const TextField: React.FC<TextFieldProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TextField } from './TextField';
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare enum Variants {
|
|
3
|
-
Success = "success",
|
|
4
|
-
Warning = "warning",
|
|
5
|
-
Error = "error",
|
|
6
|
-
Info = "info",
|
|
7
|
-
Notification = "notification"
|
|
8
|
-
}
|
|
9
|
-
interface
|
|
10
|
-
handler: () => void;
|
|
11
|
-
label: string;
|
|
12
|
-
closeOnClick?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export interface
|
|
15
|
-
action?:
|
|
16
|
-
className?: string;
|
|
17
|
-
removable?: boolean;
|
|
18
|
-
variant?: Variants;
|
|
19
|
-
onClose?: () => void;
|
|
20
|
-
}
|
|
21
|
-
export declare const Toast: React.FC<
|
|
22
|
-
export {};
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const enum Variants {
|
|
3
|
+
Success = "success",
|
|
4
|
+
Warning = "warning",
|
|
5
|
+
Error = "error",
|
|
6
|
+
Info = "info",
|
|
7
|
+
Notification = "notification"
|
|
8
|
+
}
|
|
9
|
+
interface ToastAction {
|
|
10
|
+
handler: () => void;
|
|
11
|
+
label: string;
|
|
12
|
+
closeOnClick?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface ToastProps {
|
|
15
|
+
action?: ToastAction;
|
|
16
|
+
className?: string;
|
|
17
|
+
removable?: boolean;
|
|
18
|
+
variant?: Variants;
|
|
19
|
+
onClose?: () => void;
|
|
20
|
+
}
|
|
21
|
+
export declare const Toast: React.FC<ToastProps>;
|
|
22
|
+
export {};
|
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare enum HorizontalPosition {
|
|
4
|
-
Left = "left",
|
|
5
|
-
Center = "center",
|
|
6
|
-
Right = "right"
|
|
7
|
-
}
|
|
8
|
-
export declare enum VerticalPosition {
|
|
9
|
-
Top = "top",
|
|
10
|
-
Bottom = "bottom"
|
|
11
|
-
}
|
|
12
|
-
export declare const ANIMATION_TIME = 200;
|
|
13
|
-
|
|
14
|
-
id: string;
|
|
15
|
-
content: React.ReactElement | string;
|
|
16
|
-
}
|
|
17
|
-
export interface
|
|
18
|
-
className?: string;
|
|
19
|
-
toasts:
|
|
20
|
-
fixed?: boolean;
|
|
21
|
-
block?: boolean;
|
|
22
|
-
animationType?: string;
|
|
23
|
-
verticalPosition?: VerticalPosition;
|
|
24
|
-
horizontalPosition?: HorizontalPosition;
|
|
25
|
-
}
|
|
26
|
-
export declare const ToastWrapper: React.FC<
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ToastProps, Toast } from './Toast';
|
|
3
|
+
export declare enum HorizontalPosition {
|
|
4
|
+
Left = "left",
|
|
5
|
+
Center = "center",
|
|
6
|
+
Right = "right"
|
|
7
|
+
}
|
|
8
|
+
export declare enum VerticalPosition {
|
|
9
|
+
Top = "top",
|
|
10
|
+
Bottom = "bottom"
|
|
11
|
+
}
|
|
12
|
+
export declare const ANIMATION_TIME = 200;
|
|
13
|
+
interface Toast extends ToastProps {
|
|
14
|
+
id: string;
|
|
15
|
+
content: React.ReactElement | string;
|
|
16
|
+
}
|
|
17
|
+
export interface ToastWrapperProps {
|
|
18
|
+
className?: string;
|
|
19
|
+
toasts: Toast[];
|
|
20
|
+
fixed?: boolean;
|
|
21
|
+
block?: boolean;
|
|
22
|
+
animationType?: string;
|
|
23
|
+
verticalPosition?: VerticalPosition;
|
|
24
|
+
horizontalPosition?: HorizontalPosition;
|
|
25
|
+
}
|
|
26
|
+
export declare const ToastWrapper: React.FC<ToastWrapperProps>;
|
|
27
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
declare type TSize = 'xl' | 'lg' | 'md' | 'sm' | 'xs';
|
|
3
|
-
interface IProps {
|
|
4
|
-
size?: TSize;
|
|
5
|
-
/** DOM element name that will be rendered */
|
|
6
|
-
as?: string;
|
|
7
|
-
/** Optional custom className */
|
|
8
|
-
className?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const Heading: React.FC<IProps>;
|
|
11
|
-
export {};
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare type TSize = 'xl' | 'lg' | 'md' | 'sm' | 'xs';
|
|
3
|
+
interface IProps {
|
|
4
|
+
size?: TSize;
|
|
5
|
+
/** DOM element name that will be rendered */
|
|
6
|
+
as?: string;
|
|
7
|
+
/** Optional custom className */
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const Heading: React.FC<IProps>;
|
|
11
|
+
export {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
declare type TSize = 'md' | 'sm' | 'xs';
|
|
3
|
-
interface IProps {
|
|
4
|
-
/** DOM element name that will be rendered */
|
|
5
|
-
as?: string;
|
|
6
|
-
size?: TSize;
|
|
7
|
-
/** Optional custom className */
|
|
8
|
-
className?: string;
|
|
9
|
-
caps?: boolean;
|
|
10
|
-
bold?: boolean;
|
|
11
|
-
underline?: boolean;
|
|
12
|
-
strike?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare const Text: React.FC<IProps>;
|
|
15
|
-
export {};
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare type TSize = 'md' | 'sm' | 'xs';
|
|
3
|
+
interface IProps {
|
|
4
|
+
/** DOM element name that will be rendered */
|
|
5
|
+
as?: string;
|
|
6
|
+
size?: TSize;
|
|
7
|
+
/** Optional custom className */
|
|
8
|
+
className?: string;
|
|
9
|
+
caps?: boolean;
|
|
10
|
+
bold?: boolean;
|
|
11
|
+
underline?: boolean;
|
|
12
|
+
strike?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const Text: React.FC<IProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export { DesignTokens } from './themes/designTokens';
|
|
2
|
+
export * from './components/Alert';
|
|
3
|
+
export * from './components/Badge';
|
|
4
|
+
export * from './components/Button';
|
|
5
|
+
export * from './components/ButtonGroup';
|
|
6
|
+
export * from './components/Card';
|
|
7
|
+
export * from './components/Checkbox';
|
|
8
|
+
export * from './components/FieldDescription';
|
|
9
|
+
export * from './components/FieldError';
|
|
10
|
+
export * from './components/FieldGroup';
|
|
11
|
+
export * from './components/Form';
|
|
12
|
+
export * from './components/FormGroup';
|
|
13
|
+
export * from './components/Icon';
|
|
14
|
+
export * from './components/InputField';
|
|
15
|
+
export * from './components/Link';
|
|
16
|
+
export * from './components/Loader';
|
|
17
|
+
export * from './components/Modal';
|
|
18
|
+
export * from './components/NumericInput';
|
|
19
|
+
export * from './components/Popover';
|
|
20
|
+
export * from './components/Progress';
|
|
21
|
+
export * from './components/PromoBanner';
|
|
22
|
+
export * from './components/RadioButton';
|
|
23
|
+
export * from './components/Switch';
|
|
24
|
+
export * from './components/Tab';
|
|
25
|
+
export * from './components/Tag';
|
|
26
|
+
export * from './components/TagInput';
|
|
27
|
+
export * from './components/TextField';
|
|
28
|
+
export * from './components/Toast';
|
|
29
|
+
export * from './components/Typography';
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
export declare const DesignTokens: {
|
|
2
|
+
Background: string;
|
|
3
|
+
SurfaceBasicDefault: string;
|
|
4
|
+
SurfaceBasicSubtle: string;
|
|
5
|
+
SurfaceBasicHover: string;
|
|
6
|
+
SurfaceBasicActive: string;
|
|
7
|
+
SurfaceBasicDisabled: string;
|
|
8
|
+
SurfaceSecondaryDefault: string;
|
|
9
|
+
SurfaceSecondarySubtle: string;
|
|
10
|
+
SurfaceSecondaryHover: string;
|
|
11
|
+
SurfaceSecondaryDisabled: string;
|
|
12
|
+
SurfaceFeedbackInfo: string;
|
|
13
|
+
SurfaceFeedbackNegative: string;
|
|
14
|
+
SurfaceFeedbackWarning: string;
|
|
15
|
+
SurfaceFeedbackPositive: string;
|
|
16
|
+
SurfaceInvertDefault: string;
|
|
17
|
+
SurfaceInvertSubtle: string;
|
|
18
|
+
SurfaceInvertDisabled: string;
|
|
19
|
+
SurfaceOverlay: string;
|
|
20
|
+
ContentDefault: string;
|
|
21
|
+
ContentSubtle: string;
|
|
22
|
+
ContentDisabled: string;
|
|
23
|
+
ContentWhiteLocked: string;
|
|
24
|
+
ContentInvertDefault: string;
|
|
25
|
+
ContentInvertSubtle: string;
|
|
26
|
+
ContentInvertDisabled: string;
|
|
27
|
+
BorderDefault: string;
|
|
28
|
+
BorderSubtle: string;
|
|
29
|
+
BorderHover: string;
|
|
30
|
+
BorderDisabled: string;
|
|
31
|
+
BorderInvertDefault: string;
|
|
32
|
+
BorderInvertSubtle: string;
|
|
33
|
+
BorderInvertHover: string;
|
|
34
|
+
BorderInvertDisabled: string;
|
|
35
|
+
ColorActionActive: string;
|
|
36
|
+
ColorActionHover: string;
|
|
37
|
+
ColorActionDefault: string;
|
|
38
|
+
ColorActionDisabled: string;
|
|
39
|
+
ColorNegativeActive: string;
|
|
40
|
+
ColorNegativeHover: string;
|
|
41
|
+
ColorNegativeDefault: string;
|
|
42
|
+
ColorNegativeDisabled: string;
|
|
43
|
+
ColorWarningDefault: string;
|
|
44
|
+
ColorWarningHover: string;
|
|
45
|
+
ColorPositiveDefault: string;
|
|
46
|
+
ColorPositiveHover: string;
|
|
47
|
+
ColorPositiveDisabled: string;
|
|
48
|
+
ColorBot: string;
|
|
49
|
+
ColorBlack: string;
|
|
50
|
+
ColorWhite: string;
|
|
51
|
+
DecorBlue900: string;
|
|
52
|
+
DecorBlue800: string;
|
|
53
|
+
DecorBlue700: string;
|
|
54
|
+
DecorBlue600: string;
|
|
55
|
+
DecorBlue500: string;
|
|
56
|
+
DecorBlue400: string;
|
|
57
|
+
DecorBlue300: string;
|
|
58
|
+
DecorBlue200: string;
|
|
59
|
+
DecorBlue100: string;
|
|
60
|
+
DecorBlue50: string;
|
|
61
|
+
DecorOrange900: string;
|
|
62
|
+
DecorOrange800: string;
|
|
63
|
+
DecorOrange700: string;
|
|
64
|
+
DecorOrange600: string;
|
|
65
|
+
DecorOrange500: string;
|
|
66
|
+
DecorOrange400: string;
|
|
67
|
+
DecorOrange300: string;
|
|
68
|
+
DecorOrange200: string;
|
|
69
|
+
DecorOrange100: string;
|
|
70
|
+
DecorOrange50: string;
|
|
71
|
+
DecorYellow900: string;
|
|
72
|
+
DecorYellow800: string;
|
|
73
|
+
DecorYellow700: string;
|
|
74
|
+
DecorYellow600: string;
|
|
75
|
+
DecorYellow500: string;
|
|
76
|
+
DecorYellow400: string;
|
|
77
|
+
DecorYellow300: string;
|
|
78
|
+
DecorYellow200: string;
|
|
79
|
+
DecorYellow100: string;
|
|
80
|
+
DecorYellow50: string;
|
|
81
|
+
DecorGray950: string;
|
|
82
|
+
DecorGray900: string;
|
|
83
|
+
DecorGray800: string;
|
|
84
|
+
DecorGray700: string;
|
|
85
|
+
DecorGray600: string;
|
|
86
|
+
DecorGray500: string;
|
|
87
|
+
DecorGray400: string;
|
|
88
|
+
DecorGray300: string;
|
|
89
|
+
DecorGray200: string;
|
|
90
|
+
DecorGray150: string;
|
|
91
|
+
DecorGray100: string;
|
|
92
|
+
DecorGray75: string;
|
|
93
|
+
DecorGray50: string;
|
|
94
|
+
DecorGray40: string;
|
|
95
|
+
DecorGray20: string;
|
|
96
|
+
DecorGreen900: string;
|
|
97
|
+
DecorGreen800: string;
|
|
98
|
+
DecorGreen700: string;
|
|
99
|
+
DecorGreen600: string;
|
|
100
|
+
DecorGreen500: string;
|
|
101
|
+
DecorGreen400: string;
|
|
102
|
+
DecorGreen300: string;
|
|
103
|
+
DecorGreen200: string;
|
|
104
|
+
DecorGreen100: string;
|
|
105
|
+
DecorGreen50: string;
|
|
106
|
+
DecorRed900: string;
|
|
107
|
+
DecorRed800: string;
|
|
108
|
+
DecorRed700: string;
|
|
109
|
+
DecorRed600: string;
|
|
110
|
+
DecorRed500: string;
|
|
111
|
+
DecorRed400: string;
|
|
112
|
+
DecorRed300: string;
|
|
113
|
+
DecorRed200: string;
|
|
114
|
+
DecorRed100: string;
|
|
115
|
+
DecorRed50: string;
|
|
116
|
+
DecorPurple900: string;
|
|
117
|
+
DecorPurple800: string;
|
|
118
|
+
DecorPurple700: string;
|
|
119
|
+
DecorPurple600: string;
|
|
120
|
+
DecorPurple500: string;
|
|
121
|
+
DecorPurple400: string;
|
|
122
|
+
DecorPurple300: string;
|
|
123
|
+
DecorPurple200: string;
|
|
124
|
+
DecorPurple100: string;
|
|
125
|
+
DecorPurple50: string;
|
|
126
|
+
};
|