@livechat/design-system-react-components 1.0.0-y.0 → 1.1.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/components/ActionBar/ActionBar.d.ts +25 -0
- package/dist/components/ActionBar/ActionBar.spec.d.ts +1 -0
- package/dist/components/ActionBar/ActionBar.stories.d.ts +10 -0
- package/dist/components/ActionBar/ActionBarItem.d.ts +15 -0
- package/dist/components/ActionBar/index.d.ts +2 -0
- package/dist/components/ActionMenu/ActionMenu.d.ts +34 -0
- package/dist/components/ActionMenu/ActionMenu.spec.d.ts +1 -0
- package/dist/components/ActionMenu/ActionMenu.stories.d.ts +11 -0
- package/dist/components/ActionMenu/ActionMenuItem.d.ts +16 -0
- package/dist/components/ActionMenu/constants.d.ts +21 -0
- package/dist/components/ActionMenu/index.d.ts +3 -0
- package/dist/components/ActionMenu/types.d.ts +9 -0
- package/dist/components/Alert/Alert.d.ts +32 -0
- package/dist/components/Alert/Alert.spec.d.ts +1 -0
- package/dist/components/Alert/Alert.stories.d.ts +9 -0
- package/dist/components/Avatar/Avatar.d.ts +49 -0
- package/dist/{src/components → components}/Avatar/Avatar.helpers.d.ts +1 -0
- package/dist/components/Avatar/Avatar.helpers.spec.d.ts +1 -0
- package/dist/components/Avatar/Avatar.spec.d.ts +1 -0
- package/dist/components/Avatar/Avatar.stories.d.ts +22 -0
- package/dist/components/Avatar/index.d.ts +3 -0
- package/dist/{src/components → components}/Badge/Badge.d.ts +15 -0
- package/dist/components/Badge/Badge.spec.d.ts +1 -0
- package/dist/components/Badge/Badge.stories.d.ts +12 -0
- package/dist/components/Button/Button.d.ts +63 -0
- package/dist/components/Button/Button.spec.d.ts +1 -0
- package/dist/components/Button/Button.stories.d.ts +42 -0
- package/dist/components/Card/Card.d.ts +30 -0
- package/dist/components/Card/Card.spec.d.ts +1 -0
- package/dist/components/Card/Card.stories.d.ts +11 -0
- package/dist/{src/components → components}/Checkbox/Checkbox.d.ts +9 -0
- package/dist/components/Checkbox/Checkbox.spec.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.stories.d.ts +13 -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/components/DatePicker/helpers.d.ts +16 -0
- package/dist/{src/components → components}/DatePicker/types.d.ts +5 -5
- package/dist/components/DetailsCard/DetailsCard.d.ts +28 -0
- package/dist/components/DetailsCard/DetailsCard.spec.d.ts +1 -0
- package/dist/components/DetailsCard/DetailsCard.stories.d.ts +17 -0
- package/dist/components/DetailsCard/index.d.ts +2 -0
- package/dist/components/DetailsCardInfo/DetailsCardInfo.d.ts +8 -0
- package/dist/components/DetailsCardInfo/index.d.ts +1 -0
- package/dist/{src/components → components}/FieldDescription/FieldDescription.d.ts +1 -1
- package/dist/{src/components → components}/FieldError/FieldError.d.ts +1 -1
- package/dist/{src/components → components}/FieldGroup/FieldGroup.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.d.ts +16 -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.d.ts +16 -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 +32 -0
- package/dist/components/Icon/Icon.stories.d.ts +15 -0
- package/dist/components/Icon/index.d.ts +2 -0
- package/dist/components/Icon/types.d.ts +2 -0
- package/dist/{src/components → components}/Input/Input.d.ts +17 -2
- 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.d.ts +25 -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/StoriesComponents.d.ts +4 -0
- package/dist/components/Modal/components/ModalBase.d.ts +20 -0
- package/dist/components/Modal/components/ModalBase.spec.d.ts +1 -0
- package/dist/{src/components/Modal → components/Modal/components}/ModalCloseButton.d.ts +2 -1
- package/dist/components/Modal/components/ModalHeader.d.ts +26 -0
- package/dist/components/Modal/index.d.ts +10 -0
- package/dist/{src/components → components}/NumericInput/NumericInput.d.ts +2 -4
- package/dist/components/NumericInput/NumericInput.spec.d.ts +1 -0
- package/dist/components/NumericInput/NumericInput.stories.d.ts +20 -0
- package/dist/components/Picker/Picker.d.ts +78 -0
- package/dist/components/Picker/Picker.spec.d.ts +1 -0
- package/dist/components/Picker/Picker.stories.d.ts +11 -0
- package/dist/{src/components → components}/Picker/PickerList.d.ts +1 -10
- package/dist/components/Picker/PickerList.spec.d.ts +1 -0
- package/dist/components/Picker/PickerListItem.d.ts +11 -0
- package/dist/{src/components → components}/Picker/Trigger.d.ts +3 -1
- package/dist/components/Picker/Trigger.spec.d.ts +1 -0
- package/dist/{src/components → components}/Picker/TriggerBody.d.ts +4 -4
- package/dist/components/Picker/TriggerBody.spec.d.ts +1 -0
- package/dist/components/Picker/constants.d.ts +50 -0
- package/dist/components/Picker/helpers.d.ts +2 -0
- package/dist/components/Picker/index.d.ts +3 -0
- package/dist/components/Picker/types.d.ts +17 -0
- package/dist/components/Popover/Popover.d.ts +38 -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.d.ts +43 -0
- package/dist/components/PromoBanner/PromoBanner.spec.d.ts +1 -0
- package/dist/components/PromoBanner/PromoBanner.stories.d.ts +11 -0
- package/dist/components/PromoBannerV2/PromoBannerV2.d.ts +33 -0
- package/dist/components/PromoBannerV2/PromoBannerV2.spec.d.ts +1 -0
- package/dist/components/PromoBannerV2/PromoBannerV2.stories.d.ts +23 -0
- package/dist/components/PromoBannerV2/constants.d.ts +1 -0
- package/dist/components/PromoBannerV2/index.d.ts +2 -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.d.ts +36 -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 +23 -2
- package/dist/components/SegmentedControl/SegmentedControl.spec.d.ts +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.stories.d.ts +9 -0
- package/dist/components/Switch/Switch.d.ts +47 -0
- 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 +3 -3
- 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.d.ts +36 -0
- package/dist/components/Tag/Tag.spec.d.ts +1 -0
- package/dist/components/Tag/Tag.stories.d.ts +26 -0
- package/dist/components/Tag/index.d.ts +2 -0
- package/dist/{src/components → components}/TagInput/EmailTagInput.d.ts +2 -2
- package/dist/components/TagInput/TagInput.d.ts +32 -0
- 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 +3 -3
- 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 +34 -0
- package/dist/components/Tooltip/Tooltip.d.ts +3 -0
- package/dist/components/Tooltip/Tooltip.spec.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.stories.d.ts +41 -0
- package/dist/components/Tooltip/components/FloatingComponent.d.ts +18 -0
- package/dist/{src/components/Tooltip → components/Tooltip/components}/Info.d.ts +3 -2
- package/dist/{src/components/Tooltip → components/Tooltip/components}/Interactive.d.ts +5 -4
- package/dist/components/Tooltip/components/Reports.d.ts +7 -0
- package/dist/{src/components/Tooltip → components/Tooltip/components/UserGuide}/SpotlightOverlay.d.ts +2 -1
- package/dist/{src/components/Tooltip → components/Tooltip/components/UserGuide}/UserGuide.d.ts +2 -2
- package/dist/components/Tooltip/components/UserGuide/UserGuideStep.d.ts +16 -0
- package/dist/components/Tooltip/components/UserGuide/index.d.ts +1 -0
- package/dist/{src/components/Tooltip → components/Tooltip/components}/index.d.ts +1 -1
- package/dist/components/Tooltip/helpers.d.ts +4 -0
- package/dist/components/Tooltip/index.d.ts +4 -0
- package/dist/{src/components/Tooltip/Tooltip.d.ts → components/Tooltip/types.d.ts} +10 -2
- package/dist/components/Typography/Display.d.ts +10 -0
- package/dist/{src/components → components}/Typography/Heading.d.ts +2 -2
- package/dist/{src/components → components}/Typography/Text.d.ts +2 -2
- package/dist/{src/components → components}/Typography/index.d.ts +1 -0
- package/dist/components/UploadBar/UploadBar.d.ts +49 -0
- package/dist/components/UploadBar/UploadBar.stories.d.ts +7 -0
- package/dist/dsrc.cjs.js +12 -9
- package/dist/dsrc.es.js +3968 -3544
- package/dist/foundations/radius-token.d.ts +6 -0
- package/dist/{src/foundations → foundations}/shadow-token.d.ts +1 -0
- package/dist/{src/foundations → foundations}/spacing-token.d.ts +1 -0
- package/dist/{src/index.d.ts → index.d.ts} +6 -1
- package/dist/preview-stats.json +2560 -0
- package/dist/stories/components/BlockColumns.d.ts +8 -0
- package/dist/stories/components/ColorTokens.d.ts +2 -0
- package/dist/stories/components/Radius.d.ts +2 -0
- package/dist/stories/components/RadiusExamples.d.ts +2 -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 +25 -21
- package/dist/dsrc.umd.js +0 -15
- package/dist/shadow/shadow.css +0 -7
- package/dist/shadow/shadow.css.map +0 -1
- package/dist/shadow/spacing.css +0 -18
- package/dist/shadow/spacing.css.map +0 -1
- package/dist/spacing/shadow.css +0 -7
- package/dist/spacing/shadow.css.map +0 -1
- package/dist/spacing/spacing.css +0 -18
- package/dist/spacing/spacing.css.map +0 -1
- package/dist/src/components/Alert/Alert.d.ts +0 -9
- package/dist/src/components/Avatar/Avatar.d.ts +0 -19
- package/dist/src/components/Avatar/index.d.ts +0 -1
- package/dist/src/components/Button/Button.d.ts +0 -14
- package/dist/src/components/Card/Card.d.ts +0 -12
- package/dist/src/components/DatePicker/helpers.d.ts +0 -39
- package/dist/src/components/FileUploadProgress/FileUploadProgress.d.ts +0 -15
- package/dist/src/components/Form/Form.d.ts +0 -7
- package/dist/src/components/FormField/FormField.d.ts +0 -13
- package/dist/src/components/FormGroup/FormGroup.d.ts +0 -7
- package/dist/src/components/Icon/Icon.d.ts +0 -14
- package/dist/src/components/Icon/index.d.ts +0 -1
- package/dist/src/components/Modal/Modal.d.ts +0 -9
- package/dist/src/components/Modal/ModalBase.d.ts +0 -7
- package/dist/src/components/Modal/index.d.ts +0 -8
- package/dist/src/components/Picker/Picker.d.ts +0 -23
- package/dist/src/components/Picker/constants.d.ts +0 -21
- package/dist/src/components/Picker/index.d.ts +0 -2
- package/dist/src/components/Popover/Popover.d.ts +0 -12
- package/dist/src/components/Progress/constants.d.ts +0 -4
- package/dist/src/components/PromoBanner/PromoBanner.d.ts +0 -13
- package/dist/src/components/Search/Search.d.ts +0 -12
- package/dist/src/components/Switch/Switch.d.ts +0 -17
- package/dist/src/components/Tag/Tag.d.ts +0 -14
- package/dist/src/components/Tag/index.d.ts +0 -1
- package/dist/src/components/TagInput/TagInput.d.ts +0 -13
- package/dist/src/components/Tooltip/helpers.d.ts +0 -2
- package/dist/src/components/UploadBar/UploadBar.d.ts +0 -16
- package/dist/src/utils/constants.d.ts +0 -1
- package/dist/src/vite-env.d.ts +0 -1
- package/dist/themes/dark.css +0 -236
- package/dist/themes/dark.css.map +0 -1
- package/dist/themes/legacy.css +0 -237
- package/dist/themes/legacy.css.map +0 -1
- package/dist/themes/light.css +0 -236
- package/dist/themes/light.css.map +0 -1
- /package/dist/{src/components → components}/Alert/index.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/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/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/index.d.ts +0 -0
- /package/dist/{src/components → components}/FormField/index.d.ts +0 -0
- /package/dist/{src/components → components}/FormGroup/index.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/Modal → components/Modal/components}/ModalPortal.d.ts +0 -0
- /package/dist/{src/components → components}/NumericInput/index.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/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/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}/TagInput/EditableTag.d.ts +0 -0
- /package/dist/{src/components → components}/TagInput/EditableTagContent.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/Tooltip → components/Tooltip/components}/Simple.d.ts +0 -0
- /package/dist/{src/components/Tooltip → components/Tooltip/components/UserGuide}/virtualElementReference.d.ts +0 -0
- /package/dist/{src/components → components}/UploadBar/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,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: () => React.ReactElement;
|
|
29
|
+
export declare const Sizes: () => React.ReactElement;
|
|
@@ -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,36 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface TagProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Specify the tag kind
|
|
5
|
+
*/
|
|
6
|
+
kind?: 'default' | 'info' | 'warning' | 'success' | 'error' | 'purple' | 'black';
|
|
7
|
+
/**
|
|
8
|
+
* Specify the tag size
|
|
9
|
+
*/
|
|
10
|
+
size?: 'small' | 'medium' | 'large' | 'xlarge';
|
|
11
|
+
/**
|
|
12
|
+
* Set the tag custom color
|
|
13
|
+
*/
|
|
14
|
+
customColor?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Set to show close icon
|
|
17
|
+
*/
|
|
18
|
+
dismissible?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Outlined version of tag
|
|
21
|
+
*/
|
|
22
|
+
outline?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* The event handler for close icon click
|
|
25
|
+
*/
|
|
26
|
+
onRemove?(): void;
|
|
27
|
+
/**
|
|
28
|
+
* React node element to show on the left
|
|
29
|
+
*/
|
|
30
|
+
leftNode?: React.ReactElement;
|
|
31
|
+
/**
|
|
32
|
+
* React node element to show on the right
|
|
33
|
+
*/
|
|
34
|
+
rightNode?: React.ReactElement;
|
|
35
|
+
}
|
|
36
|
+
export declare const Tag: React.FC<React.PropsWithChildren<TagProps>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
leftNode: React.JSX.Element;
|
|
16
|
+
rightNode: React.JSX.Element;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export declare const Sizes: {
|
|
20
|
+
({ children, ...args }: TagProps): React.ReactElement;
|
|
21
|
+
args: {
|
|
22
|
+
children: string;
|
|
23
|
+
leftNode: React.JSX.Element;
|
|
24
|
+
rightNode: React.JSX.Element;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TagInputProps } from './TagInput';
|
|
2
1
|
import * as React from 'react';
|
|
3
|
-
|
|
2
|
+
import { TagInputProps } from './TagInput';
|
|
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,32 @@
|
|
|
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>;
|
|
@@ -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: () => React.ReactElement;
|
|
@@ -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: () => React.ReactElement;
|
|
@@ -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;
|
|
@@ -12,5 +12,5 @@ export interface ToastProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
12
12
|
kind?: ToastKind;
|
|
13
13
|
onClose?: () => void;
|
|
14
14
|
}
|
|
15
|
-
export declare const Toast: React.FC<ToastProps
|
|
15
|
+
export declare const Toast: React.FC<React.PropsWithChildren<ToastProps>>;
|
|
16
16
|
export {};
|
|
@@ -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
|
+
(): React.ReactElement;
|
|
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,34 @@
|
|
|
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: string;
|
|
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
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
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,8 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { TooltipTheme } from '../types';
|
|
2
3
|
export declare const Info: React.FC<{
|
|
3
|
-
header
|
|
4
|
+
header?: string;
|
|
4
5
|
text: string;
|
|
5
6
|
closeWithX?: boolean;
|
|
6
|
-
theme?:
|
|
7
|
+
theme?: TooltipTheme;
|
|
7
8
|
handleCloseAction?: (ev: React.MouseEvent) => void;
|
|
8
9
|
}>;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { TooltipButton, TooltipTheme } from '../types';
|
|
2
3
|
export declare const Interactive: React.FC<{
|
|
3
|
-
header
|
|
4
|
+
header?: string;
|
|
4
5
|
text: string;
|
|
5
6
|
image?: {
|
|
6
7
|
src: string;
|
|
7
8
|
alt: string;
|
|
8
9
|
};
|
|
9
10
|
closeWithX?: boolean;
|
|
10
|
-
theme?:
|
|
11
|
-
handleClickPrimary: () => void;
|
|
12
|
-
handleClickSecondary: () => void;
|
|
11
|
+
theme?: TooltipTheme;
|
|
13
12
|
handleCloseAction?: (ev: React.MouseEvent) => void;
|
|
13
|
+
primaryButton: TooltipButton;
|
|
14
|
+
secondaryButton: TooltipButton;
|
|
14
15
|
}>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
declare const SpotlightOverlay: ({ gap, isVisible, slide, disablePointerEvents, }: {
|
|
2
3
|
gap: DOMRect | null;
|
|
3
4
|
isVisible: boolean;
|
|
4
5
|
slide: boolean;
|
|
5
6
|
disablePointerEvents: boolean;
|
|
6
|
-
}) =>
|
|
7
|
+
}) => React.ReactElement | null;
|
|
7
8
|
export default SpotlightOverlay;
|
package/dist/{src/components/Tooltip → components/Tooltip/components/UserGuide}/UserGuide.d.ts
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ModalPortalProps } from '
|
|
3
|
-
import { ITooltipProps } from '
|
|
2
|
+
import { ModalPortalProps } from '../../../Modal';
|
|
3
|
+
import { ITooltipProps } from '../../types';
|
|
4
4
|
interface IOwnProps {
|
|
5
5
|
shouldSlide?: boolean;
|
|
6
6
|
className?: string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TooltipTheme } from '../../types';
|
|
3
|
+
export declare const UserGuideStep: React.FC<{
|
|
4
|
+
header: string;
|
|
5
|
+
text: string;
|
|
6
|
+
image?: {
|
|
7
|
+
src: string;
|
|
8
|
+
alt: string;
|
|
9
|
+
};
|
|
10
|
+
currentStep: number;
|
|
11
|
+
stepMax: number;
|
|
12
|
+
closeWithX?: boolean;
|
|
13
|
+
theme?: TooltipTheme;
|
|
14
|
+
handleClickPrimary: () => void;
|
|
15
|
+
handleCloseAction?: (ev: KeyboardEvent | React.MouseEvent) => void;
|
|
16
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UserGuide } from './UserGuide';
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Placement, VirtualElement } from '@floating-ui/react-dom';
|
|
3
|
+
import { ButtonKind } from '../Button';
|
|
4
|
+
export type TooltipTheme = 'invert' | 'important' | undefined;
|
|
5
|
+
export type TooltipButton = {
|
|
6
|
+
handleClick: () => void;
|
|
7
|
+
label: string;
|
|
8
|
+
kind?: ButtonKind;
|
|
9
|
+
};
|
|
3
10
|
export interface ITooltipProps {
|
|
4
11
|
children?: React.ReactNode;
|
|
5
12
|
className?: string;
|
|
6
|
-
|
|
13
|
+
triggerClassName?: string;
|
|
14
|
+
theme?: TooltipTheme;
|
|
7
15
|
placement?: Placement;
|
|
8
16
|
isVisible?: boolean;
|
|
9
17
|
withFadeAnimation?: boolean;
|
|
@@ -14,9 +22,9 @@ export interface ITooltipProps {
|
|
|
14
22
|
triggerOnClick?: boolean;
|
|
15
23
|
arrowOffsetY?: number;
|
|
16
24
|
arrowOffsetX?: number;
|
|
25
|
+
fullSpaceContent?: boolean;
|
|
17
26
|
triggerRenderer: () => React.ReactNode;
|
|
18
27
|
referenceElement?: VirtualElement;
|
|
19
28
|
onOpen?: () => void;
|
|
20
29
|
onClose?: () => void;
|
|
21
30
|
}
|
|
22
|
-
export declare const Tooltip: React.FC<ITooltipProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
size?: 'md' | 'sm';
|
|
4
|
+
/** DOM element name that will be rendered */
|
|
5
|
+
as?: string;
|
|
6
|
+
/** Optional custom className */
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const Display: React.FC<React.PropsWithChildren<IProps>>;
|
|
10
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
type TSize = 'xl' | 'lg' | 'md' | 'sm' | 'xs';
|
|
3
3
|
interface IProps {
|
|
4
4
|
size?: TSize;
|
|
5
5
|
/** DOM element name that will be rendered */
|
|
@@ -7,5 +7,5 @@ interface IProps {
|
|
|
7
7
|
/** Optional custom className */
|
|
8
8
|
className?: string;
|
|
9
9
|
}
|
|
10
|
-
export declare const Heading: React.FC<IProps
|
|
10
|
+
export declare const Heading: React.FC<React.PropsWithChildren<IProps>>;
|
|
11
11
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
type TSize = 'md' | 'sm' | 'xs';
|
|
3
3
|
interface IProps {
|
|
4
4
|
/** DOM element name that will be rendered */
|
|
5
5
|
as?: string;
|
|
@@ -11,5 +11,5 @@ interface IProps {
|
|
|
11
11
|
underline?: boolean;
|
|
12
12
|
strike?: boolean;
|
|
13
13
|
}
|
|
14
|
-
export declare const Text: React.FC<IProps
|
|
14
|
+
export declare const Text: React.FC<React.PropsWithChildren<IProps>>;
|
|
15
15
|
export {};
|
|
@@ -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;
|