@livechat/design-system-react-components 1.0.0-alpha.57 → 1.0.0-alpha.59
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/components/ActionMenu/ActionMenu.spec.d.ts +1 -0
- package/dist/components/ActionMenu/ActionMenu.stories.d.ts +6 -0
- package/dist/components/ActionMenu/constants.d.ts +21 -0
- package/dist/{src/components → components}/Alert/Alert.d.ts +1 -1
- package/dist/components/Alert/Alert.spec.d.ts +1 -0
- package/dist/components/Alert/Alert.stories.d.ts +9 -0
- package/dist/{src/components → components}/Avatar/Avatar.d.ts +4 -4
- package/dist/components/Avatar/Avatar.spec.d.ts +1 -0
- package/dist/components/Avatar/Avatar.stories.d.ts +22 -0
- package/dist/components/Badge/Badge.spec.d.ts +1 -0
- package/dist/components/Badge/Badge.stories.d.ts +12 -0
- package/dist/{src/components → components}/Button/Button.d.ts +2 -2
- package/dist/components/Button/Button.spec.d.ts +1 -0
- package/dist/components/Button/Button.stories.d.ts +42 -0
- package/dist/{src/components → components}/Card/Card.d.ts +1 -1
- package/dist/components/Card/Card.spec.d.ts +1 -0
- package/dist/components/Card/Card.stories.d.ts +11 -0
- package/dist/components/Checkbox/Checkbox.spec.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.stories.d.ts +12 -0
- package/dist/components/DatePicker/DatePicker.spec.d.ts +1 -0
- package/dist/components/DatePicker/DatePicker.stories.d.ts +7 -0
- package/dist/components/DatePicker/DatePickerRangeCalendarsWrapper.d.ts +2 -0
- package/dist/components/DatePicker/RangeDatePicker.spec.d.ts +1 -0
- package/dist/components/DatePicker/RangeDatePicker.stories.d.ts +4 -0
- package/dist/{src/components → components}/DatePicker/helpers.d.ts +4 -4
- package/dist/{src/components → components}/DatePicker/types.d.ts +2 -2
- package/dist/{src/components → components}/FieldDescription/FieldDescription.d.ts +1 -1
- package/dist/{src/components → components}/FieldError/FieldError.d.ts +1 -1
- package/dist/components/FieldGroup/FieldGroup.spec.d.ts +1 -0
- package/dist/components/FieldGroup/FieldGroup.stories.d.ts +10 -0
- package/dist/components/FileUploadProgress/FileUploadProgress.d.ts +42 -0
- package/dist/components/FileUploadProgress/FileUploadProgress.stories.d.ts +7 -0
- package/dist/components/Form/Form.spec.d.ts +1 -0
- package/dist/components/Form/Form.stories.d.ts +8 -0
- package/dist/components/FormField/FormField.d.ts +40 -0
- package/dist/components/FormField/FormField.spec.d.ts +1 -0
- package/dist/components/FormField/FormField.stories.d.ts +9 -0
- package/dist/components/FormGroup/FormGroup.spec.d.ts +1 -0
- package/dist/components/FormGroup/FormGroup.stories.d.ts +10 -0
- package/dist/components/Icon/Icon.d.ts +14 -0
- package/dist/components/Icon/Icon.stories.d.ts +15 -0
- package/dist/components/Input/Input.spec.d.ts +1 -0
- package/dist/components/Input/Input.stories.d.ts +10 -0
- package/dist/components/Link/Link.stories.d.ts +12 -0
- package/dist/{src/components → components}/Loader/Loader.d.ts +12 -2
- package/dist/components/Loader/Loader.spec.d.ts +1 -0
- package/dist/components/Loader/Loader.stories.d.ts +10 -0
- package/dist/components/Modal/Modal.spec.d.ts +1 -0
- package/dist/components/Modal/Modal.stories.d.ts +14 -0
- package/dist/components/Modal/ModalBase.spec.d.ts +1 -0
- package/dist/components/Modal/StoriesComponents.d.ts +9 -0
- package/dist/{src/components → components}/NumericInput/NumericInput.d.ts +1 -1
- package/dist/components/NumericInput/NumericInput.spec.d.ts +1 -0
- package/dist/{src/components → components}/Picker/Picker.d.ts +1 -1
- package/dist/components/Picker/Picker.spec.d.ts +1 -0
- package/dist/components/Picker/Picker.stories.d.ts +10 -0
- package/dist/components/Picker/PickerList.spec.d.ts +1 -0
- package/dist/components/Picker/Trigger.spec.d.ts +1 -0
- package/dist/components/Picker/TriggerBody.spec.d.ts +1 -0
- package/dist/components/Popover/Popover.spec.d.ts +1 -0
- package/dist/components/Popover/Popover.stories.d.ts +13 -0
- package/dist/{src/components → components}/Progress/ProgressBar.d.ts +12 -0
- package/dist/components/Progress/ProgressBar.spec.d.ts +1 -0
- package/dist/components/Progress/ProgressBar.stories.d.ts +12 -0
- package/dist/{src/components → components}/Progress/ProgressCircle.d.ts +12 -0
- package/dist/components/Progress/ProgressCircle.spec.d.ts +1 -0
- package/dist/components/Progress/ProgressCircle.stories.d.ts +12 -0
- package/dist/components/Progress/constants.d.ts +4 -0
- package/dist/components/PromoBanner/PromoBanner.spec.d.ts +1 -0
- package/dist/components/PromoBanner/PromoBanner.stories.d.ts +11 -0
- package/dist/components/RadioButton/RadioButton.spec.d.ts +1 -0
- package/dist/components/RadioButton/RadioButton.stories.d.ts +13 -0
- package/dist/components/Search/Search.spec.d.ts +1 -0
- package/dist/components/Search/Search.stories.d.ts +19 -0
- package/dist/{src/components → components}/SegmentedControl/SegmentedControl.d.ts +2 -2
- package/dist/components/SegmentedControl/SegmentedControl.spec.d.ts +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.stories.d.ts +9 -0
- package/dist/{src/components → components}/Switch/Switch.d.ts +2 -2
- package/dist/components/Switch/Switch.spec.d.ts +1 -0
- package/dist/components/Switch/Switch.stories.d.ts +11 -0
- package/dist/{src/components → components}/Tab/Tab.d.ts +2 -2
- package/dist/components/Tab/Tab.spec.d.ts +1 -0
- package/dist/components/Tab/Tab.stories.d.ts +29 -0
- package/dist/components/Tab/TabsWrapper.spec.d.ts +1 -0
- package/dist/components/Tab/TabsWrapper.stories.d.ts +18 -0
- package/dist/components/Tag/Tag.spec.d.ts +1 -0
- package/dist/components/Tag/Tag.stories.d.ts +24 -0
- package/dist/{src/components → components}/TagInput/EmailTagInput.d.ts +1 -1
- package/dist/components/TagInput/TagInput.spec.d.ts +1 -0
- package/dist/components/TagInput/TagInput.stories.d.ts +10 -0
- package/dist/components/Textarea/Textarea.spec.d.ts +1 -0
- package/dist/components/Textarea/Textarea.stories.d.ts +7 -0
- package/dist/{src/components → components}/Toast/Toast.d.ts +2 -2
- package/dist/components/Toast/Toast.spec.d.ts +1 -0
- package/dist/components/Toast/Toast.stories.d.ts +14 -0
- package/dist/{src/components → components}/Toast/ToastWrapper.d.ts +3 -3
- package/dist/components/Toast/ToastWrapper.spec.d.ts +1 -0
- package/dist/components/Toast/ToastWrapper.stories.d.ts +40 -0
- package/dist/components/Tooltip/Tooltip.spec.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.stories.d.ts +70 -0
- package/dist/components/Tooltip/UserGuideStep.d.ts +15 -0
- package/dist/{src/components → components}/Typography/Heading.d.ts +1 -1
- package/dist/{src/components → components}/Typography/Text.d.ts +1 -1
- package/dist/components/UploadBar/UploadBar.d.ts +49 -0
- package/dist/components/UploadBar/UploadBar.stories.d.ts +7 -0
- package/dist/dsrc.cjs.js +8 -8
- package/dist/dsrc.es.js +3053 -3686
- package/dist/dsrc.umd.js +8 -8
- package/dist/preview-stats.json +2170 -0
- package/dist/stories/components/ColorTokens.d.ts +2 -0
- package/dist/stories/components/IconsShowcase.d.ts +6 -0
- package/dist/stories/components/Spacing.d.ts +2 -0
- package/dist/stories/components/SpacingExamples.d.ts +2 -0
- package/dist/stories/components/StoryDescriptor.d.ts +6 -0
- package/dist/stories/components/TablerIconsShowcase.d.ts +6 -0
- package/dist/style.css +1 -1
- package/dist/test/setup.d.ts +0 -0
- package/dist/test/utils.d.ts +3 -0
- package/dist/{src/themes → themes}/design-token.d.ts +2 -0
- package/dist/utils/PdfIcon.d.ts +2 -0
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/story-parameters.d.ts +2 -0
- package/package.json +21 -19
- package/dist/shadow/color-scheme.css +0 -14
- package/dist/shadow/color-scheme.css.map +0 -1
- package/dist/shadow/shadow.css +0 -39
- package/dist/shadow/shadow.css.map +0 -1
- package/dist/shadow/spacing.css +0 -19
- package/dist/shadow/spacing.css.map +0 -1
- package/dist/spacing/color-scheme.css +0 -14
- package/dist/spacing/color-scheme.css.map +0 -1
- package/dist/spacing/shadow.css +0 -39
- package/dist/spacing/shadow.css.map +0 -1
- package/dist/spacing/spacing.css +0 -19
- package/dist/spacing/spacing.css.map +0 -1
- package/dist/src/components/FileUploadProgress/FileUploadProgress.d.ts +0 -15
- package/dist/src/components/FormField/FormField.d.ts +0 -13
- package/dist/src/components/Icon/Icon.d.ts +0 -14
- package/dist/src/components/Progress/constants.d.ts +0 -4
- package/dist/src/components/UploadBar/UploadBar.d.ts +0 -16
- package/dist/src/global.d.ts +0 -4
- package/dist/src/utils/constants.d.ts +0 -1
- package/dist/src/vite-env.d.ts +0 -1
- package/dist/themes/dark.css +0 -253
- package/dist/themes/dark.css.map +0 -1
- package/dist/themes/legacy.css +0 -254
- package/dist/themes/legacy.css.map +0 -1
- package/dist/themes/light.css +0 -253
- package/dist/themes/light.css.map +0 -1
- /package/dist/{src/components → components}/ActionMenu/ActionMenu.d.ts +0 -0
- /package/dist/{src/components → components}/ActionMenu/index.d.ts +0 -0
- /package/dist/{src/components → components}/Alert/index.d.ts +0 -0
- /package/dist/{src/components → components}/Avatar/Avatar.helpers.d.ts +0 -0
- /package/dist/{src/components → components}/Avatar/index.d.ts +0 -0
- /package/dist/{src/components → components}/Badge/Badge.d.ts +0 -0
- /package/dist/{src/components → components}/Badge/Badge.helpers.d.ts +0 -0
- /package/dist/{src/components → components}/Badge/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/index.d.ts +0 -0
- /package/dist/{src/components → components}/Card/index.d.ts +0 -0
- /package/dist/{src/components → components}/Checkbox/Checkbox.d.ts +0 -0
- /package/dist/{src/components → components}/Checkbox/index.d.ts +0 -0
- /package/dist/{src/components → components}/DatePicker/DatePicker.d.ts +0 -0
- /package/dist/{src/components → components}/DatePicker/DatePickerNavbar.d.ts +0 -0
- /package/dist/{src/components → components}/DatePicker/RangeDatePicker.d.ts +0 -0
- /package/dist/{src/components → components}/DatePicker/hooks.d.ts +0 -0
- /package/dist/{src/components → components}/DatePicker/index.d.ts +0 -0
- /package/dist/{src/components → components}/FieldDescription/index.d.ts +0 -0
- /package/dist/{src/components → components}/FieldError/index.d.ts +0 -0
- /package/dist/{src/components → components}/FieldGroup/FieldGroup.d.ts +0 -0
- /package/dist/{src/components → components}/FieldGroup/index.d.ts +0 -0
- /package/dist/{src/components → components}/FileUploadProgress/FileUploadProgressActions.d.ts +0 -0
- /package/dist/{src/components → components}/FileUploadProgress/index.d.ts +0 -0
- /package/dist/{src/components → components}/Form/Form.d.ts +0 -0
- /package/dist/{src/components → components}/Form/index.d.ts +0 -0
- /package/dist/{src/components → components}/FormField/index.d.ts +0 -0
- /package/dist/{src/components → components}/FormGroup/FormGroup.d.ts +0 -0
- /package/dist/{src/components → components}/FormGroup/index.d.ts +0 -0
- /package/dist/{src/components → components}/Icon/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Input.d.ts +0 -0
- /package/dist/{src/components → components}/Input/index.d.ts +0 -0
- /package/dist/{src/components → components}/Link/Link.d.ts +0 -0
- /package/dist/{src/components → components}/Link/index.d.ts +0 -0
- /package/dist/{src/components → components}/Loader/index.d.ts +0 -0
- /package/dist/{src/components → components}/Modal/Modal.d.ts +0 -0
- /package/dist/{src/components → components}/Modal/ModalBase.d.ts +0 -0
- /package/dist/{src/components → components}/Modal/ModalCloseButton.d.ts +0 -0
- /package/dist/{src/components → components}/Modal/ModalPortal.d.ts +0 -0
- /package/dist/{src/components → components}/Modal/index.d.ts +0 -0
- /package/dist/{src/components → components}/NumericInput/index.d.ts +0 -0
- /package/dist/{src/components → components}/Picker/PickerList.d.ts +0 -0
- /package/dist/{src/components → components}/Picker/Trigger.d.ts +0 -0
- /package/dist/{src/components → components}/Picker/TriggerBody.d.ts +0 -0
- /package/dist/{src/components → components}/Picker/constants.d.ts +0 -0
- /package/dist/{src/components → components}/Picker/index.d.ts +0 -0
- /package/dist/{src/components → components}/Popover/Popover.d.ts +0 -0
- /package/dist/{src/components → components}/Popover/index.d.ts +0 -0
- /package/dist/{src/components → components}/Progress/helpers.d.ts +0 -0
- /package/dist/{src/components → components}/Progress/index.d.ts +0 -0
- /package/dist/{src/components → components}/PromoBanner/PromoBanner.d.ts +0 -0
- /package/dist/{src/components → components}/PromoBanner/index.d.ts +0 -0
- /package/dist/{src/components → components}/RadioButton/RadioButton.d.ts +0 -0
- /package/dist/{src/components → components}/RadioButton/index.d.ts +0 -0
- /package/dist/{src/components → components}/Search/Search.d.ts +0 -0
- /package/dist/{src/components → components}/Search/index.d.ts +0 -0
- /package/dist/{src/components → components}/SegmentedControl/index.d.ts +0 -0
- /package/dist/{src/components → components}/Switch/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tab/TabsWrapper.d.ts +0 -0
- /package/dist/{src/components → components}/Tab/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tag/Tag.d.ts +0 -0
- /package/dist/{src/components → components}/Tag/index.d.ts +0 -0
- /package/dist/{src/components → components}/TagInput/EditableTag.d.ts +0 -0
- /package/dist/{src/components → components}/TagInput/EditableTagContent.d.ts +0 -0
- /package/dist/{src/components → components}/TagInput/TagInput.d.ts +0 -0
- /package/dist/{src/components → components}/TagInput/index.d.ts +0 -0
- /package/dist/{src/components → components}/Textarea/Textarea.d.ts +0 -0
- /package/dist/{src/components → components}/Textarea/index.d.ts +0 -0
- /package/dist/{src/components → components}/Toast/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/Info.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/Interactive.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/Simple.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/SpotlightOverlay.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/Tooltip.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/UserGuide.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/helpers.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/virtualElementReference.d.ts +0 -0
- /package/dist/{src/components → components}/Typography/index.d.ts +0 -0
- /package/dist/{src/components → components}/UploadBar/index.d.ts +0 -0
- /package/dist/{src/foundations → foundations}/shadow-token.d.ts +0 -0
- /package/dist/{src/foundations → foundations}/spacing-token.d.ts +0 -0
- /package/dist/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/{src/utils → utils}/index.d.ts +0 -0
- /package/dist/{src/utils → utils}/keyCodes.d.ts +0 -0
- /package/dist/{src/utils → utils}/noop.d.ts +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IPopoverProps } from './Popover';
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, IPopoverProps & {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Default: {
|
|
8
|
+
(args: IPopoverProps): React.ReactElement;
|
|
9
|
+
args: {
|
|
10
|
+
placement: string;
|
|
11
|
+
isVisible: boolean;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ProgressSize, ProgressStatus } from './constants';
|
|
3
3
|
export interface ProgressBarProps {
|
|
4
|
+
/**
|
|
5
|
+
* The CSS class for container
|
|
6
|
+
*/
|
|
4
7
|
className?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Specify the value of current progress bar (0-100)
|
|
10
|
+
*/
|
|
5
11
|
percent: number;
|
|
12
|
+
/**
|
|
13
|
+
* Specify the progress bar status
|
|
14
|
+
*/
|
|
6
15
|
status?: ProgressStatus;
|
|
16
|
+
/**
|
|
17
|
+
* Specify the progress bar size
|
|
18
|
+
*/
|
|
7
19
|
size?: ProgressSize;
|
|
8
20
|
}
|
|
9
21
|
export declare const ProgressBar: React.ExoticComponent<ProgressBarProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ProgressBarProps } from './ProgressBar';
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, ProgressBarProps & React.RefAttributes<HTMLInputElement>>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const ProgressBar: {
|
|
6
|
+
(args: ProgressBarProps): React.ReactElement;
|
|
7
|
+
args: {
|
|
8
|
+
percent: number;
|
|
9
|
+
status: string;
|
|
10
|
+
size: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ProgressSize, ProgressStatus } from './constants';
|
|
3
3
|
export interface ProgressCircleProps {
|
|
4
|
+
/**
|
|
5
|
+
* The CSS class for container
|
|
6
|
+
*/
|
|
4
7
|
className?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Specify the value of current progress circle (0-100)
|
|
10
|
+
*/
|
|
5
11
|
progressValue: number;
|
|
12
|
+
/**
|
|
13
|
+
* Specify the progress circle status
|
|
14
|
+
*/
|
|
6
15
|
status?: ProgressStatus;
|
|
16
|
+
/**
|
|
17
|
+
* Specify the progress circle size
|
|
18
|
+
*/
|
|
7
19
|
size?: ProgressSize;
|
|
8
20
|
}
|
|
9
21
|
export declare const ProgressCircle: React.ExoticComponent<ProgressCircleProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ProgressCircleProps } from './ProgressCircle';
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, ProgressCircleProps & React.RefAttributes<HTMLInputElement>>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const ProgressCircle: {
|
|
6
|
+
(args: ProgressCircleProps): React.ReactElement;
|
|
7
|
+
args: {
|
|
8
|
+
progressValue: number;
|
|
9
|
+
status: string;
|
|
10
|
+
size: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { PromoBannerProps } from './PromoBanner';
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, PromoBannerProps & {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const PromoBanner: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, PromoBannerProps>;
|
|
8
|
+
export declare const WithButtons: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, PromoBannerProps>;
|
|
9
|
+
export declare const WithImage: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, PromoBannerProps>;
|
|
10
|
+
export declare const WithClose: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, PromoBannerProps>;
|
|
11
|
+
export declare const WithLight: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, PromoBannerProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { RadioButtonProps } from './RadioButton';
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, RadioButtonProps & React.RefAttributes<HTMLInputElement>>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const RadioButton: {
|
|
6
|
+
({ children, ...args }: RadioButtonProps): React.ReactElement;
|
|
7
|
+
args: {
|
|
8
|
+
checked: boolean;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
description: string;
|
|
11
|
+
children: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ISearchInputProps } from './Search';
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, ISearchInputProps & {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Search: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, ISearchInputProps>;
|
|
8
|
+
export declare const States: {
|
|
9
|
+
(args: ISearchInputProps): React.ReactElement;
|
|
10
|
+
args: {};
|
|
11
|
+
};
|
|
12
|
+
export declare const Sizes: {
|
|
13
|
+
(args: ISearchInputProps): React.ReactElement;
|
|
14
|
+
args: {};
|
|
15
|
+
};
|
|
16
|
+
export declare const CollapsableSearch: {
|
|
17
|
+
(args: ISearchInputProps): React.ReactElement;
|
|
18
|
+
args: {};
|
|
19
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ButtonProps } from '../Button';
|
|
3
|
-
export
|
|
4
|
-
|
|
3
|
+
export type ButtonSize = 'compact' | 'medium' | 'large';
|
|
4
|
+
type ButtonElement = {
|
|
5
5
|
id: string;
|
|
6
6
|
label: string;
|
|
7
7
|
} & Pick<ButtonProps, 'disabled' | 'loading' | 'icon'>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Story } from '@storybook/react';
|
|
3
|
+
import { SegmentedControlProps } from './SegmentedControl';
|
|
4
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, SegmentedControlProps & {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}>;
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const Default: Story<SegmentedControlProps>;
|
|
9
|
+
export declare const Uncontrolled: Story<SegmentedControlProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export declare const baseClass = "switch";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type SwitchSize = 'compact' | 'medium' | 'large';
|
|
4
|
+
export type SwitchState = 'regular' | 'loading' | 'locked';
|
|
5
5
|
export interface SwitchProps {
|
|
6
6
|
ariaLabel?: string;
|
|
7
7
|
className?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
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,11 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Size } from 'utils';
|
|
3
|
-
|
|
3
|
+
type HTMLProps = (React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
4
4
|
href: string;
|
|
5
5
|
}) | (React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
6
6
|
href?: never;
|
|
7
7
|
});
|
|
8
|
-
export
|
|
8
|
+
export type TabProps = HTMLProps & {
|
|
9
9
|
count?: number;
|
|
10
10
|
isSelected?: boolean;
|
|
11
11
|
asBadge?: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
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: () => JSX.Element;
|
|
29
|
+
export declare const Sizes: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { TagInputProps } from './TagInput';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
export
|
|
3
|
+
export type EmailTagInputProps = Omit<TagInputProps, 'validator'>;
|
|
4
4
|
export declare const emailRegex: RegExp;
|
|
5
5
|
export declare const EmailTagInput: React.FC<EmailTagInputProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
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: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
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: () => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type ToastKind = 'success' | 'warning' | 'error' | 'info';
|
|
3
|
+
type ToastAction = {
|
|
4
4
|
onClick: () => void;
|
|
5
5
|
label: string;
|
|
6
6
|
closesOnClick?: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
(): JSX.Element;
|
|
13
|
+
parameters: import("@storybook/types").Parameters;
|
|
14
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ToastProps, Toast } from './Toast';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
type HorizontalPosition = 'left' | 'center' | 'right';
|
|
4
|
+
type VerticalPosition = 'top' | 'bottom';
|
|
5
5
|
export declare const ANIMATION_TIME = 200;
|
|
6
|
-
interface Toast extends ToastProps {
|
|
6
|
+
interface Toast extends Omit<ToastProps, 'content'> {
|
|
7
7
|
id: string;
|
|
8
8
|
content: React.ReactElement | string;
|
|
9
9
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ITooltipProps } from './Tooltip';
|
|
3
|
+
export declare const Tooltip: {
|
|
4
|
+
(args: ITooltipProps): React.ReactElement;
|
|
5
|
+
args: {
|
|
6
|
+
placement: string;
|
|
7
|
+
isVisible: boolean;
|
|
8
|
+
theme: string;
|
|
9
|
+
triggerOnClick: boolean;
|
|
10
|
+
arrowOffsetY: number;
|
|
11
|
+
arrowOffsetX: number;
|
|
12
|
+
offsetMainAxis: number;
|
|
13
|
+
withFadeAnimation: boolean;
|
|
14
|
+
transitionDuration: number;
|
|
15
|
+
transitionDelay: number;
|
|
16
|
+
hoverOutDelayTimeout: number;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export declare const TooltipInfo: {
|
|
20
|
+
(args: ITooltipProps): JSX.Element;
|
|
21
|
+
args: {
|
|
22
|
+
placement: string;
|
|
23
|
+
isVisible: boolean;
|
|
24
|
+
theme: string;
|
|
25
|
+
triggerOnClick: boolean;
|
|
26
|
+
arrowOffsetY: number;
|
|
27
|
+
arrowOffsetX: number;
|
|
28
|
+
offsetMainAxis: number;
|
|
29
|
+
withFadeAnimation: boolean;
|
|
30
|
+
transitionDuration: number;
|
|
31
|
+
transitionDelay: number;
|
|
32
|
+
hoverOutDelayTimeout: number;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export declare const TooltipInteractive: {
|
|
36
|
+
(args: ITooltipProps): JSX.Element;
|
|
37
|
+
args: {
|
|
38
|
+
placement: string;
|
|
39
|
+
isVisible: boolean;
|
|
40
|
+
theme: string;
|
|
41
|
+
triggerOnClick: boolean;
|
|
42
|
+
arrowOffsetY: number;
|
|
43
|
+
arrowOffsetX: number;
|
|
44
|
+
offsetMainAxis: number;
|
|
45
|
+
withFadeAnimation: boolean;
|
|
46
|
+
transitionDuration: number;
|
|
47
|
+
transitionDelay: number;
|
|
48
|
+
hoverOutDelayTimeout: number;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export declare const TooltipUserGuide: {
|
|
52
|
+
(args: ITooltipProps): JSX.Element;
|
|
53
|
+
args: {
|
|
54
|
+
placement: string;
|
|
55
|
+
isVisible: boolean;
|
|
56
|
+
theme: string;
|
|
57
|
+
triggerOnClick: boolean;
|
|
58
|
+
arrowOffsetY: number;
|
|
59
|
+
arrowOffsetX: number;
|
|
60
|
+
offsetMainAxis: number;
|
|
61
|
+
withFadeAnimation: boolean;
|
|
62
|
+
transitionDuration: number;
|
|
63
|
+
transitionDelay: number;
|
|
64
|
+
hoverOutDelayTimeout: number;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, ITooltipProps & {
|
|
68
|
+
children?: React.ReactNode;
|
|
69
|
+
}>;
|
|
70
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
}>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ProgressStatus, ProgressSize } from '../Progress/constants';
|
|
3
|
+
export interface UploadBarProps {
|
|
4
|
+
/**
|
|
5
|
+
* The CSS class for container
|
|
6
|
+
*/
|
|
7
|
+
className?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Specify the value of current progress circle (0-100)
|
|
10
|
+
*/
|
|
11
|
+
progressValue: number;
|
|
12
|
+
/**
|
|
13
|
+
* Specify the upload bar title
|
|
14
|
+
*/
|
|
15
|
+
title: string;
|
|
16
|
+
/**
|
|
17
|
+
* Define if upload bar should be open
|
|
18
|
+
*/
|
|
19
|
+
isExpanded?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Specify the error message
|
|
22
|
+
*/
|
|
23
|
+
errorMessage?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Specify the upload bar status
|
|
26
|
+
*/
|
|
27
|
+
status?: ProgressStatus;
|
|
28
|
+
/**
|
|
29
|
+
* Renders given element
|
|
30
|
+
*/
|
|
31
|
+
icon?: React.ReactNode;
|
|
32
|
+
/**
|
|
33
|
+
* Specify the upload bar size
|
|
34
|
+
*/
|
|
35
|
+
size?: ProgressSize;
|
|
36
|
+
/**
|
|
37
|
+
* Set the component's mode to `multiple` to specify whether the upload bar should display multiple elements
|
|
38
|
+
*/
|
|
39
|
+
mode?: 'single' | 'multiple';
|
|
40
|
+
/**
|
|
41
|
+
* The event handler for close icon click
|
|
42
|
+
*/
|
|
43
|
+
onCloseButtonClick?: () => void;
|
|
44
|
+
/**
|
|
45
|
+
* The event handler for retry icon click
|
|
46
|
+
*/
|
|
47
|
+
onRetryButtonClick?: () => void;
|
|
48
|
+
}
|
|
49
|
+
export declare const UploadBar: React.FC<React.PropsWithChildren<UploadBarProps>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./UploadBar").UploadBarProps & {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
}>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const UploadBarWithSingleElement: React.FC;
|
|
7
|
+
export declare const UploadBarWithMultipleElements: React.FC;
|