@livechat/design-system-react-components 1.0.0-refresh-ui.2 → 1.0.0
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 +10 -10
- package/dist/dsrc.es.js +2822 -2428
- package/dist/preview-stats.json +2131 -598
- package/dist/style.css +1 -1
- package/package.json +3 -4
- package/dist/components/ActionMenu/ActionMenu.d.ts +0 -35
- package/dist/components/ActionMenu/ActionMenu.spec.d.ts +0 -1
- package/dist/components/ActionMenu/ActionMenu.stories.d.ts +0 -11
- package/dist/components/ActionMenu/ActionMenuItem.d.ts +0 -16
- package/dist/components/ActionMenu/constants.d.ts +0 -21
- package/dist/components/ActionMenu/index.d.ts +0 -2
- package/dist/components/Alert/Alert.d.ts +0 -32
- package/dist/components/Alert/Alert.spec.d.ts +0 -1
- package/dist/components/Alert/Alert.stories.d.ts +0 -9
- package/dist/components/Alert/index.d.ts +0 -1
- package/dist/components/Avatar/Avatar.d.ts +0 -49
- package/dist/components/Avatar/Avatar.helpers.d.ts +0 -2
- package/dist/components/Avatar/Avatar.spec.d.ts +0 -1
- package/dist/components/Avatar/Avatar.stories.d.ts +0 -22
- package/dist/components/Avatar/index.d.ts +0 -1
- package/dist/components/Badge/Badge.d.ts +0 -24
- package/dist/components/Badge/Badge.helpers.d.ts +0 -1
- package/dist/components/Badge/Badge.spec.d.ts +0 -1
- package/dist/components/Badge/Badge.stories.d.ts +0 -12
- package/dist/components/Badge/index.d.ts +0 -1
- package/dist/components/Button/Button.d.ts +0 -63
- package/dist/components/Button/Button.spec.d.ts +0 -1
- package/dist/components/Button/Button.stories.d.ts +0 -42
- package/dist/components/Button/index.d.ts +0 -2
- package/dist/components/Card/Card.d.ts +0 -30
- package/dist/components/Card/Card.spec.d.ts +0 -1
- package/dist/components/Card/Card.stories.d.ts +0 -11
- package/dist/components/Card/index.d.ts +0 -2
- package/dist/components/Checkbox/Checkbox.d.ts +0 -16
- package/dist/components/Checkbox/Checkbox.spec.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -13
- package/dist/components/Checkbox/index.d.ts +0 -1
- package/dist/components/DatePicker/DatePicker.d.ts +0 -4
- package/dist/components/DatePicker/DatePicker.spec.d.ts +0 -1
- package/dist/components/DatePicker/DatePicker.stories.d.ts +0 -7
- package/dist/components/DatePicker/DatePickerNavbar.d.ts +0 -4
- package/dist/components/DatePicker/DatePickerRangeCalendarsWrapper.d.ts +0 -2
- package/dist/components/DatePicker/RangeDatePicker.d.ts +0 -16
- package/dist/components/DatePicker/RangeDatePicker.spec.d.ts +0 -1
- package/dist/components/DatePicker/RangeDatePicker.stories.d.ts +0 -4
- package/dist/components/DatePicker/helpers.d.ts +0 -16
- package/dist/components/DatePicker/hooks.d.ts +0 -6
- package/dist/components/DatePicker/index.d.ts +0 -2
- package/dist/components/DatePicker/types.d.ts +0 -100
- package/dist/components/FieldDescription/FieldDescription.d.ts +0 -3
- package/dist/components/FieldDescription/index.d.ts +0 -1
- package/dist/components/FieldError/FieldError.d.ts +0 -3
- package/dist/components/FieldError/index.d.ts +0 -1
- package/dist/components/FieldGroup/FieldGroup.d.ts +0 -8
- package/dist/components/FieldGroup/FieldGroup.spec.d.ts +0 -1
- package/dist/components/FieldGroup/FieldGroup.stories.d.ts +0 -10
- package/dist/components/FieldGroup/index.d.ts +0 -1
- package/dist/components/FileUploadProgress/FileUploadProgress.d.ts +0 -42
- package/dist/components/FileUploadProgress/FileUploadProgress.stories.d.ts +0 -7
- package/dist/components/FileUploadProgress/FileUploadProgressActions.d.ts +0 -9
- package/dist/components/FileUploadProgress/index.d.ts +0 -2
- package/dist/components/Form/Form.d.ts +0 -16
- package/dist/components/Form/Form.spec.d.ts +0 -1
- package/dist/components/Form/Form.stories.d.ts +0 -8
- package/dist/components/Form/index.d.ts +0 -2
- package/dist/components/FormField/FormField.d.ts +0 -40
- package/dist/components/FormField/FormField.spec.d.ts +0 -1
- package/dist/components/FormField/FormField.stories.d.ts +0 -9
- package/dist/components/FormField/index.d.ts +0 -1
- package/dist/components/FormGroup/FormGroup.d.ts +0 -16
- package/dist/components/FormGroup/FormGroup.spec.d.ts +0 -1
- package/dist/components/FormGroup/FormGroup.stories.d.ts +0 -10
- package/dist/components/FormGroup/index.d.ts +0 -1
- package/dist/components/Icon/Icon.d.ts +0 -32
- package/dist/components/Icon/Icon.stories.d.ts +0 -15
- package/dist/components/Icon/index.d.ts +0 -1
- package/dist/components/Input/Input.d.ts +0 -25
- package/dist/components/Input/Input.spec.d.ts +0 -1
- package/dist/components/Input/Input.stories.d.ts +0 -10
- package/dist/components/Input/index.d.ts +0 -1
- package/dist/components/Link/Link.d.ts +0 -14
- package/dist/components/Link/Link.stories.d.ts +0 -12
- package/dist/components/Link/index.d.ts +0 -1
- package/dist/components/Loader/Loader.d.ts +0 -20
- package/dist/components/Loader/Loader.spec.d.ts +0 -1
- package/dist/components/Loader/Loader.stories.d.ts +0 -10
- package/dist/components/Loader/index.d.ts +0 -1
- package/dist/components/Modal/Modal.d.ts +0 -21
- package/dist/components/Modal/Modal.spec.d.ts +0 -1
- package/dist/components/Modal/Modal.stories.d.ts +0 -14
- package/dist/components/Modal/ModalBase.d.ts +0 -20
- package/dist/components/Modal/ModalBase.spec.d.ts +0 -1
- package/dist/components/Modal/ModalCloseButton.d.ts +0 -6
- package/dist/components/Modal/ModalHeader.d.ts +0 -9
- package/dist/components/Modal/ModalPortal.d.ts +0 -7
- package/dist/components/Modal/StoriesComponents.d.ts +0 -4
- package/dist/components/Modal/index.d.ts +0 -10
- package/dist/components/NumericInput/NumericInput.d.ts +0 -12
- package/dist/components/NumericInput/NumericInput.spec.d.ts +0 -1
- package/dist/components/NumericInput/NumericInput.stories.d.ts +0 -20
- package/dist/components/NumericInput/index.d.ts +0 -1
- package/dist/components/Picker/Picker.d.ts +0 -84
- package/dist/components/Picker/Picker.spec.d.ts +0 -1
- package/dist/components/Picker/Picker.stories.d.ts +0 -10
- package/dist/components/Picker/PickerList.d.ts +0 -14
- package/dist/components/Picker/PickerList.spec.d.ts +0 -1
- package/dist/components/Picker/PickerListItem.d.ts +0 -10
- package/dist/components/Picker/Trigger.d.ts +0 -17
- package/dist/components/Picker/Trigger.spec.d.ts +0 -1
- package/dist/components/Picker/TriggerBody.d.ts +0 -19
- package/dist/components/Picker/TriggerBody.spec.d.ts +0 -1
- package/dist/components/Picker/constants.d.ts +0 -22
- package/dist/components/Picker/index.d.ts +0 -3
- package/dist/components/Picker/types.d.ts +0 -11
- package/dist/components/Popover/Popover.d.ts +0 -34
- package/dist/components/Popover/Popover.spec.d.ts +0 -1
- package/dist/components/Popover/Popover.stories.d.ts +0 -13
- package/dist/components/Popover/index.d.ts +0 -1
- package/dist/components/Progress/ProgressBar.d.ts +0 -21
- package/dist/components/Progress/ProgressBar.spec.d.ts +0 -1
- package/dist/components/Progress/ProgressBar.stories.d.ts +0 -12
- package/dist/components/Progress/ProgressCircle.d.ts +0 -21
- package/dist/components/Progress/ProgressCircle.spec.d.ts +0 -1
- package/dist/components/Progress/ProgressCircle.stories.d.ts +0 -12
- package/dist/components/Progress/constants.d.ts +0 -4
- package/dist/components/Progress/helpers.d.ts +0 -3
- package/dist/components/Progress/index.d.ts +0 -2
- package/dist/components/PromoBanner/PromoBanner.d.ts +0 -40
- package/dist/components/PromoBanner/PromoBanner.spec.d.ts +0 -1
- package/dist/components/PromoBanner/PromoBanner.stories.d.ts +0 -11
- package/dist/components/PromoBanner/index.d.ts +0 -1
- package/dist/components/RadioButton/RadioButton.d.ts +0 -7
- package/dist/components/RadioButton/RadioButton.spec.d.ts +0 -1
- package/dist/components/RadioButton/RadioButton.stories.d.ts +0 -13
- package/dist/components/RadioButton/index.d.ts +0 -1
- package/dist/components/Search/Search.d.ts +0 -36
- package/dist/components/Search/Search.spec.d.ts +0 -1
- package/dist/components/Search/Search.stories.d.ts +0 -19
- package/dist/components/Search/index.d.ts +0 -1
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +0 -39
- package/dist/components/SegmentedControl/SegmentedControl.spec.d.ts +0 -1
- package/dist/components/SegmentedControl/SegmentedControl.stories.d.ts +0 -9
- package/dist/components/SegmentedControl/index.d.ts +0 -2
- package/dist/components/Switch/Switch.d.ts +0 -47
- package/dist/components/Switch/Switch.spec.d.ts +0 -1
- package/dist/components/Switch/Switch.stories.d.ts +0 -11
- package/dist/components/Switch/index.d.ts +0 -1
- package/dist/components/Tab/Tab.d.ts +0 -15
- package/dist/components/Tab/Tab.spec.d.ts +0 -1
- package/dist/components/Tab/Tab.stories.d.ts +0 -29
- package/dist/components/Tab/TabsWrapper.d.ts +0 -3
- package/dist/components/Tab/TabsWrapper.spec.d.ts +0 -1
- package/dist/components/Tab/TabsWrapper.stories.d.ts +0 -18
- package/dist/components/Tab/index.d.ts +0 -2
- package/dist/components/Tag/Tag.d.ts +0 -41
- package/dist/components/Tag/Tag.spec.d.ts +0 -1
- package/dist/components/Tag/Tag.stories.d.ts +0 -24
- package/dist/components/Tag/index.d.ts +0 -1
- package/dist/components/TagInput/EditableTag.d.ts +0 -11
- package/dist/components/TagInput/EditableTagContent.d.ts +0 -11
- package/dist/components/TagInput/EmailTagInput.d.ts +0 -5
- package/dist/components/TagInput/TagInput.d.ts +0 -32
- package/dist/components/TagInput/TagInput.spec.d.ts +0 -1
- package/dist/components/TagInput/TagInput.stories.d.ts +0 -10
- package/dist/components/TagInput/index.d.ts +0 -4
- package/dist/components/Textarea/Textarea.d.ts +0 -6
- package/dist/components/Textarea/Textarea.spec.d.ts +0 -1
- package/dist/components/Textarea/Textarea.stories.d.ts +0 -7
- package/dist/components/Textarea/index.d.ts +0 -1
- package/dist/components/Toast/Toast.d.ts +0 -16
- package/dist/components/Toast/Toast.spec.d.ts +0 -1
- package/dist/components/Toast/Toast.stories.d.ts +0 -14
- package/dist/components/Toast/ToastWrapper.d.ts +0 -20
- package/dist/components/Toast/ToastWrapper.spec.d.ts +0 -1
- package/dist/components/Toast/ToastWrapper.stories.d.ts +0 -40
- package/dist/components/Toast/index.d.ts +0 -2
- package/dist/components/Tooltip/Tooltip.d.ts +0 -3
- package/dist/components/Tooltip/Tooltip.spec.d.ts +0 -1
- package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -41
- package/dist/components/Tooltip/components/FloatingComponent.d.ts +0 -18
- package/dist/components/Tooltip/components/Info.d.ts +0 -8
- package/dist/components/Tooltip/components/Interactive.d.ts +0 -23
- package/dist/components/Tooltip/components/Reports.d.ts +0 -7
- package/dist/components/Tooltip/components/Simple.d.ts +0 -4
- package/dist/components/Tooltip/components/UserGuide/SpotlightOverlay.d.ts +0 -8
- package/dist/components/Tooltip/components/UserGuide/UserGuide.d.ts +0 -12
- package/dist/components/Tooltip/components/UserGuide/UserGuideStep.d.ts +0 -15
- package/dist/components/Tooltip/components/UserGuide/index.d.ts +0 -1
- package/dist/components/Tooltip/components/UserGuide/virtualElementReference.d.ts +0 -9
- package/dist/components/Tooltip/components/index.d.ts +0 -5
- package/dist/components/Tooltip/helpers.d.ts +0 -3
- package/dist/components/Tooltip/index.d.ts +0 -3
- package/dist/components/Tooltip/types.d.ts +0 -22
- package/dist/components/Typography/Heading.d.ts +0 -11
- package/dist/components/Typography/Text.d.ts +0 -15
- package/dist/components/Typography/index.d.ts +0 -2
- package/dist/components/UploadBar/UploadBar.d.ts +0 -49
- package/dist/components/UploadBar/UploadBar.stories.d.ts +0 -7
- package/dist/components/UploadBar/index.d.ts +0 -1
- package/dist/dsrc.umd.js +0 -18
- package/dist/foundations/radius-token.d.ts +0 -6
- package/dist/foundations/shadow-token.d.ts +0 -6
- package/dist/foundations/spacing-token.d.ts +0 -17
- package/dist/index.d.ts +0 -42
- package/dist/stories/components/BlockColumns.d.ts +0 -8
- package/dist/stories/components/ColorTokens.d.ts +0 -2
- package/dist/stories/components/IconsShowcase.d.ts +0 -6
- package/dist/stories/components/Spacing.d.ts +0 -2
- package/dist/stories/components/SpacingExamples.d.ts +0 -2
- package/dist/stories/components/StoryDescriptor.d.ts +0 -6
- package/dist/stories/components/TablerIconsShowcase.d.ts +0 -6
- package/dist/test/setup.d.ts +0 -0
- package/dist/test/utils.d.ts +0 -3
- package/dist/themes/design-token.d.ts +0 -228
- package/dist/utils/PdfIcon.d.ts +0 -2
- package/dist/utils/constants.d.ts +0 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/keyCodes.d.ts +0 -12
- package/dist/utils/noop.d.ts +0 -1
- package/dist/utils/story-parameters.d.ts +0 -2
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { SwitchProps } from './Switch';
|
|
4
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, SwitchProps & {
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
}>;
|
|
7
|
-
export default _default;
|
|
8
|
-
export declare const Default: Story<SwitchProps>;
|
|
9
|
-
export declare const States: Story;
|
|
10
|
-
export declare const Availability: Story;
|
|
11
|
-
export declare const Sizes: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Switch } from './Switch';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Size } from 'utils';
|
|
3
|
-
type HTMLProps = (React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
4
|
-
href: string;
|
|
5
|
-
}) | (React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
6
|
-
href?: never;
|
|
7
|
-
});
|
|
8
|
-
export type TabProps = HTMLProps & {
|
|
9
|
-
count?: number;
|
|
10
|
-
isSelected?: boolean;
|
|
11
|
-
asBadge?: boolean;
|
|
12
|
-
size?: Size;
|
|
13
|
-
};
|
|
14
|
-
export declare const Tab: React.FC<React.PropsWithChildren<TabProps>>;
|
|
15
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { TabProps } from './Tab';
|
|
3
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
4
|
-
href: string;
|
|
5
|
-
} & {
|
|
6
|
-
count?: number | undefined;
|
|
7
|
-
isSelected?: boolean | undefined;
|
|
8
|
-
asBadge?: boolean | undefined;
|
|
9
|
-
size?: import("../..").Size | undefined;
|
|
10
|
-
} & {
|
|
11
|
-
children?: React.ReactNode;
|
|
12
|
-
}> | import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
13
|
-
href?: undefined;
|
|
14
|
-
} & {
|
|
15
|
-
count?: number | undefined;
|
|
16
|
-
isSelected?: boolean | undefined;
|
|
17
|
-
asBadge?: boolean | undefined;
|
|
18
|
-
size?: import("../..").Size | undefined;
|
|
19
|
-
} & {
|
|
20
|
-
children?: React.ReactNode;
|
|
21
|
-
}>;
|
|
22
|
-
export default _default;
|
|
23
|
-
type ITabArgs = TabProps;
|
|
24
|
-
export declare const Tab: {
|
|
25
|
-
(args: ITabArgs): React.ReactElement;
|
|
26
|
-
args: TabProps;
|
|
27
|
-
};
|
|
28
|
-
export declare const StatesAndVariants: () => React.ReactElement;
|
|
29
|
-
export declare const Sizes: () => React.ReactElement;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, React.HTMLAttributes<HTMLDivElement> & {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
}>;
|
|
5
|
-
export default _default;
|
|
6
|
-
type ITabArgs = {
|
|
7
|
-
items: Array<{
|
|
8
|
-
id: string;
|
|
9
|
-
title: string;
|
|
10
|
-
count: number;
|
|
11
|
-
asBadge?: boolean;
|
|
12
|
-
isDisabled?: boolean;
|
|
13
|
-
}>;
|
|
14
|
-
};
|
|
15
|
-
export declare const TabsWrapper: {
|
|
16
|
-
({ items }: ITabArgs): React.ReactElement;
|
|
17
|
-
args: ITabArgs;
|
|
18
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { IconSize, IconSource } from '../Icon';
|
|
3
|
-
export interface TagProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
/**
|
|
5
|
-
* Specify the tag kind
|
|
6
|
-
*/
|
|
7
|
-
kind?: 'default' | 'info' | 'warning' | 'success' | 'error' | 'purple' | 'black';
|
|
8
|
-
/**
|
|
9
|
-
* Specify the tag size
|
|
10
|
-
*/
|
|
11
|
-
size?: 'medium' | 'large';
|
|
12
|
-
/**
|
|
13
|
-
* Specify the tag icon size if used
|
|
14
|
-
*/
|
|
15
|
-
iconSize?: IconSize;
|
|
16
|
-
/**
|
|
17
|
-
* Set the tag custom color
|
|
18
|
-
*/
|
|
19
|
-
customColor?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Set to show close icon
|
|
22
|
-
*/
|
|
23
|
-
dismissible?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Outlined version of tag
|
|
26
|
-
*/
|
|
27
|
-
outline?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* The event handler for close icon click
|
|
30
|
-
*/
|
|
31
|
-
onRemove?(): void;
|
|
32
|
-
/**
|
|
33
|
-
* Pass the icon to show it
|
|
34
|
-
*/
|
|
35
|
-
icon?: IconSource;
|
|
36
|
-
/**
|
|
37
|
-
* Pass the image source to show it as avatar
|
|
38
|
-
*/
|
|
39
|
-
avatar?: string;
|
|
40
|
-
}
|
|
41
|
-
export declare const Tag: React.FC<React.PropsWithChildren<TagProps>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { TagProps } from './Tag';
|
|
3
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, TagProps & {
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
}>;
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const Default: {
|
|
8
|
-
({ children, ...args }: TagProps): React.ReactElement;
|
|
9
|
-
args: TagProps;
|
|
10
|
-
};
|
|
11
|
-
export declare const Kinds: {
|
|
12
|
-
({ children, ...args }: TagProps): React.ReactElement;
|
|
13
|
-
args: {
|
|
14
|
-
children: string;
|
|
15
|
-
icon: any;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export declare const Sizes: {
|
|
19
|
-
({ children, ...args }: TagProps): React.ReactElement;
|
|
20
|
-
args: {
|
|
21
|
-
children: string;
|
|
22
|
-
icon: any;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Tag } from './Tag';
|
|
@@ -1,11 +0,0 @@
|
|
|
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>;
|
|
@@ -1,11 +0,0 @@
|
|
|
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>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface TagInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'onChange'> {
|
|
3
|
-
/**
|
|
4
|
-
* Set the id for input
|
|
5
|
-
*/
|
|
6
|
-
id?: string;
|
|
7
|
-
/**
|
|
8
|
-
* Set the error message
|
|
9
|
-
*/
|
|
10
|
-
error?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Array of defined tags
|
|
13
|
-
*/
|
|
14
|
-
tags?: string[];
|
|
15
|
-
/**
|
|
16
|
-
* The event handler for modify tags array
|
|
17
|
-
*/
|
|
18
|
-
onChange: (tags: string[]) => void;
|
|
19
|
-
/**
|
|
20
|
-
* Set the input placeholder
|
|
21
|
-
*/
|
|
22
|
-
placeholder?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Set the custom validation for provided items
|
|
25
|
-
*/
|
|
26
|
-
validator?: (val: string) => boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Specify the input size
|
|
29
|
-
*/
|
|
30
|
-
size?: 'medium' | 'large';
|
|
31
|
-
}
|
|
32
|
-
export declare const TagInput: React.FC<TagInputProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { TagInputProps, EmailTagInputProps } from './index';
|
|
4
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, TagInputProps & {
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
}>;
|
|
7
|
-
export default _default;
|
|
8
|
-
export declare const DefaultTagInput: Story<TagInputProps>;
|
|
9
|
-
export declare const DefaultEmailTagInput: Story<EmailTagInputProps>;
|
|
10
|
-
export declare const Sizes: () => React.ReactElement;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
3
|
-
className?: string;
|
|
4
|
-
error?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { TextareaProps } from './Textarea';
|
|
4
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const Default: Story<TextareaProps>;
|
|
7
|
-
export declare const States: () => React.ReactElement;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Textarea } from './Textarea';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
type ToastKind = 'success' | 'warning' | 'error' | 'info';
|
|
3
|
-
type ToastAction = {
|
|
4
|
-
onClick: () => void;
|
|
5
|
-
label: string;
|
|
6
|
-
closesOnClick?: boolean;
|
|
7
|
-
};
|
|
8
|
-
export interface ToastProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
9
|
-
action?: ToastAction;
|
|
10
|
-
className?: string;
|
|
11
|
-
removable?: boolean;
|
|
12
|
-
kind?: ToastKind;
|
|
13
|
-
onClose?: () => void;
|
|
14
|
-
}
|
|
15
|
-
export declare const Toast: React.FC<React.PropsWithChildren<ToastProps>>;
|
|
16
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { ToastProps } from './Toast';
|
|
4
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, ToastProps & {
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
}>;
|
|
7
|
-
export default _default;
|
|
8
|
-
export declare const Default: Story<ToastProps>;
|
|
9
|
-
export declare const Kinds: Story;
|
|
10
|
-
export declare const WithCloseIcon: Story;
|
|
11
|
-
export declare const WithCustomAction: {
|
|
12
|
-
(): React.ReactElement;
|
|
13
|
-
parameters: import("@storybook/types").Parameters;
|
|
14
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ToastProps, Toast } from './Toast';
|
|
3
|
-
type HorizontalPosition = 'left' | 'center' | 'right';
|
|
4
|
-
type VerticalPosition = 'top' | 'bottom';
|
|
5
|
-
export declare const ANIMATION_TIME = 200;
|
|
6
|
-
interface Toast extends Omit<ToastProps, 'content'> {
|
|
7
|
-
id: string;
|
|
8
|
-
content: React.ReactElement | string;
|
|
9
|
-
}
|
|
10
|
-
export interface ToastWrapperProps {
|
|
11
|
-
className?: string;
|
|
12
|
-
toasts: Toast[];
|
|
13
|
-
fixed?: boolean;
|
|
14
|
-
block?: boolean;
|
|
15
|
-
animationType?: string;
|
|
16
|
-
verticalPosition?: VerticalPosition;
|
|
17
|
-
horizontalPosition?: HorizontalPosition;
|
|
18
|
-
}
|
|
19
|
-
export declare const ToastWrapper: React.FC<ToastWrapperProps>;
|
|
20
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ToastWrapperProps } from './ToastWrapper';
|
|
3
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, ToastWrapperProps & {
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
}>;
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const ToastWrapper: {
|
|
8
|
-
(args: ToastWrapperProps): React.ReactElement;
|
|
9
|
-
args: {
|
|
10
|
-
fixed: boolean;
|
|
11
|
-
toasts: ({
|
|
12
|
-
id: string;
|
|
13
|
-
kind: string;
|
|
14
|
-
content: React.JSX.Element;
|
|
15
|
-
removable?: undefined;
|
|
16
|
-
action?: undefined;
|
|
17
|
-
} | {
|
|
18
|
-
id: string;
|
|
19
|
-
kind: string;
|
|
20
|
-
content: string;
|
|
21
|
-
removable: boolean;
|
|
22
|
-
action?: undefined;
|
|
23
|
-
} | {
|
|
24
|
-
id: string;
|
|
25
|
-
kind: string;
|
|
26
|
-
content: string;
|
|
27
|
-
action: {
|
|
28
|
-
label: string;
|
|
29
|
-
handler: () => void;
|
|
30
|
-
};
|
|
31
|
-
removable?: undefined;
|
|
32
|
-
} | {
|
|
33
|
-
id: string;
|
|
34
|
-
kind: string;
|
|
35
|
-
content: string;
|
|
36
|
-
removable?: undefined;
|
|
37
|
-
action?: undefined;
|
|
38
|
-
})[];
|
|
39
|
-
};
|
|
40
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
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: {
|
|
8
|
-
(args: ITooltipProps): React.ReactElement;
|
|
9
|
-
args: {
|
|
10
|
-
placement: string;
|
|
11
|
-
isVisible: boolean;
|
|
12
|
-
theme: string;
|
|
13
|
-
triggerOnClick: boolean;
|
|
14
|
-
arrowOffsetY: number;
|
|
15
|
-
arrowOffsetX: number;
|
|
16
|
-
offsetMainAxis: number;
|
|
17
|
-
withFadeAnimation: boolean;
|
|
18
|
-
transitionDuration: number;
|
|
19
|
-
transitionDelay: number;
|
|
20
|
-
hoverOutDelayTimeout: number;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export declare const TooltipInfo: () => React.ReactElement;
|
|
24
|
-
export declare const TooltipInteractive: () => React.ReactElement;
|
|
25
|
-
export declare const TooltipReports: () => React.ReactElement;
|
|
26
|
-
export declare const TooltipUserGuide: {
|
|
27
|
-
(args: ITooltipProps): React.ReactElement;
|
|
28
|
-
args: {
|
|
29
|
-
placement: string;
|
|
30
|
-
isVisible: boolean;
|
|
31
|
-
theme: string;
|
|
32
|
-
triggerOnClick: boolean;
|
|
33
|
-
arrowOffsetY: number;
|
|
34
|
-
arrowOffsetX: number;
|
|
35
|
-
offsetMainAxis: number;
|
|
36
|
-
withFadeAnimation: boolean;
|
|
37
|
-
transitionDuration: number;
|
|
38
|
-
transitionDelay: number;
|
|
39
|
-
hoverOutDelayTimeout: number;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
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,23 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ButtonKind } from '../../Button';
|
|
3
|
-
export declare const Interactive: React.FC<{
|
|
4
|
-
header?: string;
|
|
5
|
-
text: string;
|
|
6
|
-
image?: {
|
|
7
|
-
src: string;
|
|
8
|
-
alt: string;
|
|
9
|
-
};
|
|
10
|
-
closeWithX?: boolean;
|
|
11
|
-
theme?: 'invert' | 'important';
|
|
12
|
-
handleCloseAction?: (ev: React.MouseEvent) => void;
|
|
13
|
-
primaryButton: {
|
|
14
|
-
handleClick: () => void;
|
|
15
|
-
label: string;
|
|
16
|
-
kind?: ButtonKind;
|
|
17
|
-
};
|
|
18
|
-
secondaryButton: {
|
|
19
|
-
handleClick: () => void;
|
|
20
|
-
label: string;
|
|
21
|
-
kind?: ButtonKind;
|
|
22
|
-
};
|
|
23
|
-
}>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
declare const SpotlightOverlay: ({ gap, isVisible, slide, disablePointerEvents, }: {
|
|
3
|
-
gap: DOMRect | null;
|
|
4
|
-
isVisible: boolean;
|
|
5
|
-
slide: boolean;
|
|
6
|
-
disablePointerEvents: boolean;
|
|
7
|
-
}) => React.ReactElement | null;
|
|
8
|
-
export default SpotlightOverlay;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ModalPortalProps } from '../../../Modal';
|
|
3
|
-
import { ITooltipProps } from '../../types';
|
|
4
|
-
interface IOwnProps {
|
|
5
|
-
shouldSlide?: boolean;
|
|
6
|
-
className?: string;
|
|
7
|
-
disableSpotlightPointerEvents?: boolean;
|
|
8
|
-
}
|
|
9
|
-
interface IUserGuide extends IOwnProps, ITooltipProps, Omit<ModalPortalProps, 'children'> {
|
|
10
|
-
}
|
|
11
|
-
export declare const UserGuide: React.FC<IUserGuide>;
|
|
12
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare const UserGuideStep: React.FC<{
|
|
3
|
-
header: string;
|
|
4
|
-
text: string;
|
|
5
|
-
image?: {
|
|
6
|
-
src: string;
|
|
7
|
-
alt: string;
|
|
8
|
-
};
|
|
9
|
-
currentStep: number;
|
|
10
|
-
stepMax: number;
|
|
11
|
-
closeWithX?: boolean;
|
|
12
|
-
theme?: string;
|
|
13
|
-
handleClickPrimary: () => void;
|
|
14
|
-
handleCloseAction?: (ev: KeyboardEvent | React.MouseEvent) => void;
|
|
15
|
-
}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { UserGuide } from './UserGuide';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export default class VirtualReference {
|
|
2
|
-
element: Element;
|
|
3
|
-
padding: number;
|
|
4
|
-
constructor(element: Element, padding: number);
|
|
5
|
-
addPadding(rect: DOMRect): Omit<DOMRect, 'toJSON'>;
|
|
6
|
-
getBoundingClientRect(): Omit<DOMRect, 'toJSON'>;
|
|
7
|
-
get clientWidth(): number;
|
|
8
|
-
get clientHeight(): number;
|
|
9
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
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<React.PropsWithChildren<IProps>>;
|
|
11
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
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<React.PropsWithChildren<IProps>>;
|
|
15
|
-
export {};
|