@livechat/design-system-react-components 1.0.0-alpha.2 → 1.0.0-alpha.22
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 +15 -0
- package/dist/dsrc.es.js +3255 -0
- package/dist/dsrc.umd.js +15 -0
- package/dist/shadow/shadow.css +7 -0
- package/dist/shadow/shadow.css.map +1 -0
- package/dist/shadow/spacing.css +18 -0
- package/dist/shadow/spacing.css.map +1 -0
- package/dist/spacing/shadow.css +7 -0
- package/dist/spacing/shadow.css.map +1 -0
- package/dist/spacing/spacing.css +18 -0
- package/dist/spacing/spacing.css.map +1 -0
- package/dist/src/components/Alert/Alert.d.ts +9 -0
- package/dist/src/components/Alert/index.d.ts +1 -0
- package/dist/src/components/Avatar/Avatar.d.ts +19 -0
- package/dist/src/components/Avatar/Avatar.helpers.d.ts +2 -0
- package/dist/src/components/Avatar/index.d.ts +1 -0
- package/dist/src/components/Badge/Badge.d.ts +9 -0
- package/dist/src/components/Badge/Badge.helpers.d.ts +1 -0
- package/dist/src/components/Badge/index.d.ts +1 -0
- package/dist/{components → src/components/Button}/Button.d.ts +14 -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 +12 -0
- package/dist/src/components/Card/index.d.ts +2 -0
- package/dist/src/components/Checkbox/Checkbox.d.ts +7 -0
- package/dist/src/components/Checkbox/index.d.ts +1 -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/FormField/FormField.d.ts +13 -0
- package/dist/src/components/FormField/index.d.ts +1 -0
- package/dist/src/components/FormGroup/FormGroup.d.ts +7 -0
- package/dist/src/components/FormGroup/index.d.ts +1 -0
- package/dist/src/components/Icon/Icon.d.ts +14 -0
- package/dist/src/components/Icon/index.d.ts +1 -0
- package/dist/src/components/Input/Input.d.ts +9 -0
- package/dist/src/components/Input/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/index.d.ts +1 -0
- package/dist/src/components/Picker/Picker.d.ts +17 -0
- package/dist/src/components/Picker/PickerList.d.ts +18 -0
- package/dist/src/components/Picker/Trigger.d.ts +15 -0
- package/dist/src/components/Picker/index.d.ts +1 -0
- package/dist/src/components/Popover/Popover.d.ts +10 -0
- package/dist/src/components/Popover/index.d.ts +1 -0
- package/dist/{components → src/components/Progress}/ProgressBar.d.ts +9 -9
- package/dist/src/components/Progress/ProgressCircle.d.ts +9 -0
- package/dist/src/components/Progress/constants.d.ts +4 -0
- package/dist/{components → src/components/Progress}/helpers.d.ts +3 -3
- package/dist/src/components/Progress/index.d.ts +2 -0
- package/dist/{components → src/components/PromoBanner}/PromoBanner.d.ts +13 -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/src/components/Search/Search.d.ts +16 -0
- package/dist/src/components/Search/index.d.ts +1 -0
- package/dist/{components → src/components/Switch}/Switch.d.ts +16 -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/Toast/Toast.d.ts +16 -0
- package/dist/src/components/Toast/ToastWrapper.d.ts +20 -0
- package/dist/src/components/Toast/index.d.ts +2 -0
- package/dist/src/components/Tooltip/Info.d.ts +8 -0
- package/dist/src/components/Tooltip/Interactive.d.ts +14 -0
- package/dist/src/components/Tooltip/Simple.d.ts +4 -0
- package/dist/src/components/Tooltip/SpotlightOverlay.d.ts +7 -0
- package/dist/src/components/Tooltip/Tooltip.d.ts +22 -0
- package/dist/src/components/Tooltip/UserGuide.d.ts +12 -0
- package/dist/src/components/Tooltip/helpers.d.ts +2 -0
- package/dist/src/components/Tooltip/index.d.ts +5 -0
- package/dist/src/components/Tooltip/virtualElementReference.d.ts +9 -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/foundations/shadow-token.d.ts +5 -0
- package/dist/src/foundations/spacing-token.d.ts +16 -0
- package/dist/src/index.d.ts +36 -0
- package/dist/src/themes/design-token.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/dist/themes/dark.css +130 -0
- package/dist/themes/dark.css.map +1 -0
- package/dist/themes/legacy.css +131 -0
- package/dist/themes/legacy.css.map +1 -0
- package/dist/themes/light.css +130 -0
- package/dist/themes/light.css.map +1 -0
- package/package.json +51 -36
- package/dist/components/Alert.d.ts +0 -19
- 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.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/Icon.d.ts +0 -69
- 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.spec.d.ts +0 -1
- package/dist/components/ProgressCircle.d.ts +0 -9
- 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.d.ts +0 -22
- package/dist/components/Toast.spec.d.ts +0 -1
- package/dist/components/ToastWrapper.d.ts +0 -26
- package/dist/components/ToastWrapper.spec.d.ts +0 -1
- package/dist/components/constants.d.ts +0 -12
- 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
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ComponentMeta } from '@storybook/react';
|
|
3
|
-
import { IProps as ISwitchProps } from '../components/Switch';
|
|
4
|
-
import noop from '../utils/noop';
|
|
5
|
-
declare const _default: ComponentMeta<React.FC<ISwitchProps>>;
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const Switch: {
|
|
8
|
-
(args: ISwitchProps): React.ReactElement;
|
|
9
|
-
args: {
|
|
10
|
-
onChange: typeof noop;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ComponentMeta } from '@storybook/react';
|
|
3
|
-
import { ITabProps } from '../components/Tab';
|
|
4
|
-
declare const _default: ComponentMeta<React.FC<ITabProps>>;
|
|
5
|
-
export default _default;
|
|
6
|
-
declare type ITabArgs = ITabProps;
|
|
7
|
-
export declare const Tab: {
|
|
8
|
-
(args: ITabArgs): React.ReactElement;
|
|
9
|
-
args: ITabProps;
|
|
10
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ComponentMeta } from '@storybook/react';
|
|
3
|
-
declare const _default: ComponentMeta<React.FC<React.HTMLAttributes<HTMLDivElement>>>;
|
|
4
|
-
export default _default;
|
|
5
|
-
declare type ITabArgs = {
|
|
6
|
-
items: Array<{
|
|
7
|
-
id: string;
|
|
8
|
-
title: string;
|
|
9
|
-
count: number;
|
|
10
|
-
}>;
|
|
11
|
-
};
|
|
12
|
-
export declare const TabsWrapper: {
|
|
13
|
-
({ items }: ITabArgs): React.ReactElement;
|
|
14
|
-
args: ITabArgs;
|
|
15
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ComponentMeta, Story } from '@storybook/react';
|
|
3
|
-
import { IToastProps } from '../components/Toast';
|
|
4
|
-
declare const _default: ComponentMeta<React.FC<IToastProps>>;
|
|
5
|
-
export default _default;
|
|
6
|
-
interface IToastArgs extends IToastProps {
|
|
7
|
-
label: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const Toast: Story<IToastArgs>;
|
|
10
|
-
export declare const SuccessToast: Story<IToastArgs>;
|
|
11
|
-
export declare const WarningToast: Story<IToastArgs>;
|
|
12
|
-
export declare const ErrorToast: Story<IToastArgs>;
|
|
13
|
-
export declare const InfoToast: Story<IToastArgs>;
|
|
14
|
-
export declare const NotificationToast: Story<IToastArgs>;
|
|
15
|
-
export declare const ToastWithActionAndRemovable: Story<IToastArgs>;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ComponentMeta } from '@storybook/react';
|
|
3
|
-
import { IToastWrapperProps } from '../components/ToastWrapper';
|
|
4
|
-
import { Variants } from '../components/Toast';
|
|
5
|
-
declare const _default: ComponentMeta<React.FC<IToastWrapperProps>>;
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const ToastWrapper: {
|
|
8
|
-
(args: IToastWrapperProps): React.ReactElement;
|
|
9
|
-
args: {
|
|
10
|
-
fixed: boolean;
|
|
11
|
-
toasts: ({
|
|
12
|
-
id: string;
|
|
13
|
-
variant: Variants;
|
|
14
|
-
content: JSX.Element;
|
|
15
|
-
removable?: undefined;
|
|
16
|
-
action?: undefined;
|
|
17
|
-
} | {
|
|
18
|
-
id: string;
|
|
19
|
-
variant: Variants;
|
|
20
|
-
content: string;
|
|
21
|
-
removable: boolean;
|
|
22
|
-
action?: undefined;
|
|
23
|
-
} | {
|
|
24
|
-
id: string;
|
|
25
|
-
variant: Variants;
|
|
26
|
-
content: string;
|
|
27
|
-
action: {
|
|
28
|
-
label: string;
|
|
29
|
-
handler: () => void;
|
|
30
|
-
};
|
|
31
|
-
removable?: undefined;
|
|
32
|
-
} | {
|
|
33
|
-
id: string;
|
|
34
|
-
variant: Variants;
|
|
35
|
-
content: string;
|
|
36
|
-
removable?: undefined;
|
|
37
|
-
action?: undefined;
|
|
38
|
-
})[];
|
|
39
|
-
};
|
|
40
|
-
};
|
package/dist/test-utils.d.ts
DELETED