@livechat/design-system-react-components 1.0.0-alpha.6 → 1.0.0-alpha.61
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.d.ts +27 -0
- package/dist/components/ActionMenu/ActionMenu.spec.d.ts +1 -0
- package/dist/components/ActionMenu/ActionMenu.stories.d.ts +6 -0
- package/dist/components/ActionMenu/ActionMenuItem.d.ts +6 -0
- package/dist/components/ActionMenu/constants.d.ts +21 -0
- package/dist/components/ActionMenu/index.d.ts +1 -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/components/Avatar/Avatar.helpers.d.ts +2 -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 +1 -0
- package/dist/components/Badge/Badge.d.ts +24 -0
- package/dist/components/Badge/Badge.helpers.d.ts +1 -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/Button/index.d.ts +2 -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 +3 -3
- package/dist/components/Checkbox/Checkbox.spec.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.stories.d.ts +12 -0
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/DatePicker/DatePicker.d.ts +4 -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/DatePickerNavbar.d.ts +4 -0
- package/dist/components/DatePicker/DatePickerRangeCalendarsWrapper.d.ts +2 -0
- package/dist/components/DatePicker/RangeDatePicker.d.ts +16 -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 +39 -0
- package/dist/components/DatePicker/hooks.d.ts +6 -0
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/DatePicker/types.d.ts +100 -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/FileUploadProgress/FileUploadProgressActions.d.ts +9 -0
- package/dist/components/FileUploadProgress/index.d.ts +2 -0
- package/dist/{src/components → components}/Form/Form.d.ts +1 -1
- 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/FormField/index.d.ts +1 -0
- package/dist/{src/components → components}/FormGroup/FormGroup.d.ts +1 -1
- 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/Icon/index.d.ts +1 -0
- package/dist/components/Input/Input.d.ts +25 -0
- package/dist/components/Input/Input.spec.d.ts +1 -0
- package/dist/components/Input/Input.stories.d.ts +10 -0
- package/dist/components/Input/index.d.ts +1 -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/{src/components → components}/Modal/Modal.d.ts +2 -0
- package/dist/components/Modal/Modal.spec.d.ts +1 -0
- package/dist/components/Modal/Modal.stories.d.ts +14 -0
- package/dist/{src/components → components}/Modal/ModalBase.d.ts +2 -1
- package/dist/components/Modal/ModalBase.spec.d.ts +1 -0
- package/dist/components/Modal/ModalCloseButton.d.ts +6 -0
- package/dist/components/Modal/ModalHeader.d.ts +9 -0
- package/dist/{src/components → components}/Modal/ModalPortal.d.ts +1 -1
- package/dist/components/Modal/StoriesComponents.d.ts +4 -0
- package/dist/{src/components → components}/Modal/index.d.ts +2 -2
- package/dist/{src/components → components}/NumericInput/NumericInput.d.ts +1 -1
- package/dist/components/NumericInput/NumericInput.spec.d.ts +1 -0
- package/dist/components/NumericInput/index.d.ts +1 -0
- package/dist/components/Picker/Picker.d.ts +80 -0
- 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.d.ts +23 -0
- package/dist/components/Picker/PickerList.spec.d.ts +1 -0
- package/dist/components/Picker/Trigger.d.ts +17 -0
- package/dist/components/Picker/Trigger.spec.d.ts +1 -0
- package/dist/components/Picker/TriggerBody.d.ts +16 -0
- package/dist/components/Picker/TriggerBody.spec.d.ts +1 -0
- package/dist/components/Picker/constants.d.ts +21 -0
- package/dist/components/Picker/index.d.ts +2 -0
- package/dist/components/Popover/Popover.d.ts +34 -0
- package/dist/components/Popover/Popover.spec.d.ts +1 -0
- package/dist/components/Popover/Popover.stories.d.ts +13 -0
- package/dist/components/Progress/ProgressBar.d.ts +21 -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 +13 -1
- 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/{src/components → components}/Progress/index.d.ts +1 -0
- package/dist/components/PromoBanner/PromoBanner.d.ts +40 -0
- package/dist/components/PromoBanner/PromoBanner.spec.d.ts +1 -0
- package/dist/components/PromoBanner/PromoBanner.stories.d.ts +11 -0
- package/dist/{src/components → components}/RadioButton/RadioButton.d.ts +2 -2
- 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/components/Search/index.d.ts +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +39 -0
- package/dist/components/SegmentedControl/SegmentedControl.spec.d.ts +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.stories.d.ts +9 -0
- package/dist/components/SegmentedControl/index.d.ts +2 -0
- package/dist/{src/components → components}/Switch/Switch.d.ts +5 -8
- package/dist/components/Switch/Switch.spec.d.ts +1 -0
- package/dist/components/Switch/Switch.stories.d.ts +11 -0
- package/dist/components/Tab/Tab.d.ts +15 -0
- 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 +41 -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.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.d.ts +6 -0
- package/dist/components/Textarea/Textarea.spec.d.ts +1 -0
- package/dist/components/Textarea/Textarea.stories.d.ts +7 -0
- package/dist/components/Textarea/index.d.ts +1 -0
- package/dist/components/Toast/Toast.d.ts +16 -0
- 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 -10
- 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.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/components/Tooltip/components/Info.d.ts +8 -0
- package/dist/components/Tooltip/components/Interactive.d.ts +23 -0
- package/dist/components/Tooltip/components/Reports.d.ts +7 -0
- package/dist/components/Tooltip/components/Simple.d.ts +4 -0
- package/dist/components/Tooltip/components/UserGuide/SpotlightOverlay.d.ts +7 -0
- package/dist/components/Tooltip/components/UserGuide/UserGuide.d.ts +12 -0
- package/dist/components/Tooltip/components/UserGuide/UserGuideStep.d.ts +15 -0
- package/dist/components/Tooltip/components/UserGuide/index.d.ts +1 -0
- package/dist/components/Tooltip/components/UserGuide/virtualElementReference.d.ts +9 -0
- package/dist/components/Tooltip/components/index.d.ts +5 -0
- package/dist/components/Tooltip/helpers.d.ts +3 -0
- package/dist/components/Tooltip/index.d.ts +3 -0
- package/dist/components/Tooltip/types.d.ts +22 -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/components/UploadBar/UploadBar.d.ts +49 -0
- package/dist/components/UploadBar/UploadBar.stories.d.ts +7 -0
- package/dist/components/UploadBar/index.d.ts +1 -0
- package/dist/dsrc.cjs.js +18 -1
- package/dist/dsrc.es.js +3845 -1817
- package/dist/dsrc.umd.js +18 -1
- package/dist/foundations/shadow-token.d.ts +5 -0
- package/dist/foundations/spacing-token.d.ts +17 -0
- package/dist/{src/index.d.ts → index.d.ts} +17 -4
- package/dist/preview-stats.json +2266 -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/themes/design-token.d.ts +228 -0
- package/dist/utils/PdfIcon.d.ts +2 -0
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/story-parameters.d.ts +2 -0
- package/package.json +35 -21
- package/dist/src/components/Alert/Alert.d.ts +0 -19
- package/dist/src/components/Badge/Badge.d.ts +0 -5
- package/dist/src/components/Button/Button.d.ts +0 -13
- package/dist/src/components/Button/index.d.ts +0 -2
- package/dist/src/components/ButtonGroup/ButtonGroup.d.ts +0 -11
- package/dist/src/components/ButtonGroup/index.d.ts +0 -1
- package/dist/src/components/Card/Card.d.ts +0 -6
- package/dist/src/components/Checkbox/CheckboxField.d.ts +0 -7
- package/dist/src/components/Checkbox/index.d.ts +0 -2
- package/dist/src/components/Icon/Icon.d.ts +0 -70
- package/dist/src/components/Icon/index.d.ts +0 -1
- package/dist/src/components/InputField/InputField.d.ts +0 -15
- package/dist/src/components/InputField/index.d.ts +0 -1
- package/dist/src/components/Modal/ActionModal.d.ts +0 -8
- package/dist/src/components/Modal/ModalCloseButton.d.ts +0 -3
- package/dist/src/components/NumericInput/NumericInputField.d.ts +0 -19
- package/dist/src/components/NumericInput/index.d.ts +0 -2
- package/dist/src/components/Popover/Popover.d.ts +0 -15
- package/dist/src/components/Progress/constants.d.ts +0 -12
- package/dist/src/components/PromoBanner/PromoBanner.d.ts +0 -19
- package/dist/src/components/Tab/Tab.d.ts +0 -12
- package/dist/src/components/Tag/Tag.d.ts +0 -12
- package/dist/src/components/TagInput/TagInput.d.ts +0 -12
- package/dist/src/components/TextField/TextField.d.ts +0 -13
- package/dist/src/components/TextField/index.d.ts +0 -1
- package/dist/src/components/Toast/Toast.d.ts +0 -22
- package/dist/src/themes/designTokens.d.ts +0 -126
- package/dist/src/vite-env.d.ts +0 -1
- /package/dist/{src/components → components}/Alert/index.d.ts +0 -0
- /package/dist/{src/components → components}/Badge/index.d.ts +0 -0
- /package/dist/{src/components → components}/Card/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}/Form/index.d.ts +0 -0
- /package/dist/{src/components → components}/FormGroup/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}/Popover/index.d.ts +0 -0
- /package/dist/{src/components → components}/Progress/helpers.d.ts +0 -0
- /package/dist/{src/components → components}/PromoBanner/index.d.ts +0 -0
- /package/dist/{src/components → components}/RadioButton/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/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}/Toast/index.d.ts +0 -0
- /package/dist/{src/components → components}/Typography/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 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { FieldGroupProps } from './FieldGroup';
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, FieldGroupProps & {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const FieldGroup: {
|
|
8
|
+
({ ...args }: FieldGroupProps): React.ReactElement;
|
|
9
|
+
args: FieldGroupProps;
|
|
10
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ProgressSize, ProgressStatus } from '../Progress/constants';
|
|
3
|
+
export type UploadProgressActionState = 'visible' | 'hover' | 'hidden';
|
|
4
|
+
export interface FileUploadProgressProps {
|
|
5
|
+
/**
|
|
6
|
+
* Define if action buttons should be visible, visible on hover, or hidden
|
|
7
|
+
*/
|
|
8
|
+
actionsVisibility?: UploadProgressActionState;
|
|
9
|
+
/**
|
|
10
|
+
* The CSS class for progress bar
|
|
11
|
+
*/
|
|
12
|
+
className?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Renders given element
|
|
15
|
+
*/
|
|
16
|
+
icon?: React.ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Specify the uploading file name
|
|
19
|
+
*/
|
|
20
|
+
title: string;
|
|
21
|
+
/**
|
|
22
|
+
* Specify the value of current file upload progress (0-100)
|
|
23
|
+
*/
|
|
24
|
+
progressValue: number;
|
|
25
|
+
/**
|
|
26
|
+
* Specify the progress bar size
|
|
27
|
+
*/
|
|
28
|
+
size?: ProgressSize;
|
|
29
|
+
/**
|
|
30
|
+
* Specify the uploading file status
|
|
31
|
+
*/
|
|
32
|
+
status?: ProgressStatus;
|
|
33
|
+
/**
|
|
34
|
+
* The event handler for close icon click
|
|
35
|
+
*/
|
|
36
|
+
onCloseButtonClick?: () => void;
|
|
37
|
+
/**
|
|
38
|
+
* The event handler for retry icon click
|
|
39
|
+
*/
|
|
40
|
+
onRetryButtonClick?: () => void;
|
|
41
|
+
}
|
|
42
|
+
export declare const FileUploadProgress: React.ExoticComponent<FileUploadProgressProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { FileUploadProgressProps } from './FileUploadProgress';
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, FileUploadProgressProps & React.RefAttributes<HTMLInputElement>>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const FileUploadProgress: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, FileUploadProgressProps>;
|
|
6
|
+
export declare const FileUploadProgressWithIcon: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, FileUploadProgressProps>;
|
|
7
|
+
export declare const FileUploadProgressStates: React.FC;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ProgressStatus } from '../Progress/constants';
|
|
3
|
+
interface FileUploadProgressActionsProps {
|
|
4
|
+
status: ProgressStatus;
|
|
5
|
+
onCloseButtonClick?: () => void;
|
|
6
|
+
onRetryButtonClick?: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const FileUploadProgressActions: React.FC<FileUploadProgressActionsProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Story } from '@storybook/react';
|
|
3
|
+
import { FormProps } from '../Form';
|
|
4
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, FormProps & {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}>;
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const Form: Story<FormProps>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface FormFieldProps {
|
|
3
|
+
/**
|
|
4
|
+
* Define label text
|
|
5
|
+
*/
|
|
6
|
+
labelText?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Renders given element aligned to label, `inline` will affect
|
|
9
|
+
*/
|
|
10
|
+
labelAdornment?: React.ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Define to associate the label with the field
|
|
13
|
+
*/
|
|
14
|
+
labelFor?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The CSS class for field container
|
|
17
|
+
*/
|
|
18
|
+
className?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Set the label to inline version
|
|
21
|
+
*/
|
|
22
|
+
inline?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Define error text
|
|
25
|
+
*/
|
|
26
|
+
error?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Define the description text
|
|
29
|
+
*/
|
|
30
|
+
description?: React.ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* Wrapped element
|
|
33
|
+
*/
|
|
34
|
+
children?: React.ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* Renders given element above the filed
|
|
37
|
+
*/
|
|
38
|
+
labelRightNode?: React.ReactNode;
|
|
39
|
+
}
|
|
40
|
+
export declare const FormField: React.FC<FormFieldProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { FormFieldProps } from './FormField';
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, FormFieldProps & {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, FormFieldProps>;
|
|
8
|
+
export declare const Examples: () => JSX.Element;
|
|
9
|
+
export declare const TextFieldWithError: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, FormFieldProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FormField';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { FormGroupProps } from './FormGroup';
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, FormGroupProps & {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const FormGroup: {
|
|
8
|
+
({ ...args }: FormGroupProps): React.ReactElement;
|
|
9
|
+
args: FormGroupProps;
|
|
10
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type IconSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
3
|
+
export type IconKind = 'primary' | 'subtle' | 'inverted' | 'inverted-subtle' | 'link' | 'success' | 'warning' | 'error' | 'negative' | 'positive' | 'warning' | 'action-primary' | 'action-negative' | 'action-positive' | 'action-warning' | 'action-neutral';
|
|
4
|
+
export type IconSource = React.FC<React.SVGProps<SVGSVGElement>> & React.ReactElement;
|
|
5
|
+
export interface IconProps {
|
|
6
|
+
source: IconSource;
|
|
7
|
+
size?: IconSize;
|
|
8
|
+
kind?: IconKind;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
customColor?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const Icon: React.FC<IconProps>;
|
|
14
|
+
export default Icon;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IconProps } from './Icon';
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, IconProps & {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Icon: {
|
|
8
|
+
(args: IconProps): React.ReactElement;
|
|
9
|
+
args: {
|
|
10
|
+
source: any;
|
|
11
|
+
size: string;
|
|
12
|
+
kind: string;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Icon';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface InputIcon {
|
|
3
|
+
source: React.ReactElement;
|
|
4
|
+
place: 'left' | 'right';
|
|
5
|
+
}
|
|
6
|
+
export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
7
|
+
/**
|
|
8
|
+
* Specify the input size
|
|
9
|
+
*/
|
|
10
|
+
inputSize?: 'xsmall' | 'compact' | 'medium' | 'large';
|
|
11
|
+
/**
|
|
12
|
+
* Specify whether the input should be in error state
|
|
13
|
+
*/
|
|
14
|
+
error?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Specify whether the input should be disabled
|
|
17
|
+
*/
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Set the icon and its position
|
|
21
|
+
*/
|
|
22
|
+
icon?: InputIcon;
|
|
23
|
+
}
|
|
24
|
+
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Story } from '@storybook/react';
|
|
3
|
+
import { InputProps } from './Input';
|
|
4
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Default: Story<InputProps>;
|
|
7
|
+
export declare const Sizes: () => JSX.Element;
|
|
8
|
+
export declare const States: () => JSX.Element;
|
|
9
|
+
export declare const Types: () => JSX.Element;
|
|
10
|
+
export declare const WithIcons: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Input';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { LinkProps } from './Link';
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, LinkProps & {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Link: {
|
|
8
|
+
({ ...args }: LinkProps): React.ReactElement;
|
|
9
|
+
args: {
|
|
10
|
+
bold: boolean;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export interface LoaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Specify the loader size
|
|
5
|
+
*/
|
|
3
6
|
size?: 'small' | 'medium' | 'large';
|
|
7
|
+
/**
|
|
8
|
+
* Specify the loader label
|
|
9
|
+
*/
|
|
4
10
|
label?: string;
|
|
5
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Set the loader highlight color
|
|
13
|
+
*/
|
|
6
14
|
primaryColor?: string;
|
|
7
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* Set the loader color
|
|
17
|
+
*/
|
|
8
18
|
secondaryColor?: string;
|
|
9
19
|
}
|
|
10
20
|
export declare const Loader: React.FC<LoaderProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { LoaderProps } from './Loader';
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, LoaderProps & {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Default: (args: LoaderProps) => React.ReactElement;
|
|
8
|
+
export declare const Sizes: () => React.ReactElement;
|
|
9
|
+
export declare const Labeled: (args: LoaderProps) => React.ReactElement;
|
|
10
|
+
export declare const CustomColors: (args: LoaderProps) => React.ReactElement;
|
|
@@ -2,6 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
import { ModalBaseProps } from './ModalBase';
|
|
3
3
|
export interface ModalProps extends ModalBaseProps {
|
|
4
4
|
heading?: React.ReactNode;
|
|
5
|
+
labelHeading?: React.ReactNode;
|
|
6
|
+
fullSpaceContent?: boolean;
|
|
5
7
|
footer?: React.ReactNode;
|
|
6
8
|
}
|
|
7
9
|
export declare const Modal: React.FC<ModalProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ModalProps, ModalPortalProps } from './index';
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, ModalProps & {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Modal: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, ModalProps>;
|
|
8
|
+
export declare const ModalWithCustomHeader: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, ModalProps>;
|
|
9
|
+
export declare const ModalWithLabeledHeader: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, ModalProps>;
|
|
10
|
+
export declare const ModalWithFullSpaceContent: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, ModalProps>;
|
|
11
|
+
export declare const ModalPortal: {
|
|
12
|
+
({ children, ...args }: ModalPortalProps): React.ReactElement;
|
|
13
|
+
args: ModalPortalProps;
|
|
14
|
+
};
|
|
@@ -2,5 +2,6 @@ import * as React from 'react';
|
|
|
2
2
|
export interface ModalBaseProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
onClose(): void;
|
|
4
4
|
closeOnEscPress?: boolean;
|
|
5
|
+
closeOnOverlayPress?: boolean;
|
|
5
6
|
}
|
|
6
|
-
export declare const ModalBase: React.FC<ModalBaseProps
|
|
7
|
+
export declare const ModalBase: React.FC<React.PropsWithChildren<ModalBaseProps>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconProps } from '../Icon';
|
|
3
|
+
export interface ModalHeaderProps {
|
|
4
|
+
title?: React.ReactNode;
|
|
5
|
+
iconProps?: IconProps;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
className?: 'string';
|
|
8
|
+
}
|
|
9
|
+
export declare const ModalHeader: React.FC<ModalHeaderProps>;
|
|
@@ -2,6 +2,6 @@ import * as React from 'react';
|
|
|
2
2
|
export interface ModalPortalProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
zIndex: number;
|
|
5
|
-
parentElementName
|
|
5
|
+
parentElementName?: string;
|
|
6
6
|
}
|
|
7
7
|
export declare const ModalPortal: React.FC<ModalPortalProps>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { ActionModal } from './ActionModal';
|
|
2
1
|
export { Modal } from './Modal';
|
|
3
2
|
export { ModalBase } from './ModalBase';
|
|
4
3
|
export { ModalCloseButton } from './ModalCloseButton';
|
|
5
4
|
export { ModalPortal } from './ModalPortal';
|
|
6
|
-
export
|
|
5
|
+
export { ModalHeader } from './ModalHeader';
|
|
7
6
|
export type { ModalProps } from './Modal';
|
|
8
7
|
export type { ModalBaseProps } from './ModalBase';
|
|
9
8
|
export type { ModalCloseButtonProps } from './ModalCloseButton';
|
|
10
9
|
export type { ModalPortalProps } from './ModalPortal';
|
|
10
|
+
export type { ModalHeaderProps } from './ModalHeader';
|
|
@@ -9,6 +9,6 @@ interface Props {
|
|
|
9
9
|
noControls?: boolean;
|
|
10
10
|
onChange: (value: string) => void;
|
|
11
11
|
}
|
|
12
|
-
export
|
|
12
|
+
export type NumericInputProps = React.InputHTMLAttributes<HTMLInputElement> & Props;
|
|
13
13
|
export declare const NumericInput: React.FC<NumericInputProps>;
|
|
14
14
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NumericInput } from './NumericInput';
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IPickerListItem } from './PickerList';
|
|
3
|
+
import { IconSize } from '../Icon';
|
|
4
|
+
import { Size } from 'utils';
|
|
5
|
+
export type PickerType = 'single' | 'multi';
|
|
6
|
+
export interface IPickerProps {
|
|
7
|
+
/**
|
|
8
|
+
* Specify the custom id
|
|
9
|
+
*/
|
|
10
|
+
id?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The CSS class for picker container
|
|
13
|
+
*/
|
|
14
|
+
className?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Specify whether the picker should be disabled
|
|
17
|
+
*/
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Specify whether the picker should be in error state
|
|
21
|
+
*/
|
|
22
|
+
error?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Array of picker options
|
|
25
|
+
*/
|
|
26
|
+
options: IPickerListItem[];
|
|
27
|
+
/**
|
|
28
|
+
* Array of picker selected options
|
|
29
|
+
*/
|
|
30
|
+
selected?: IPickerListItem[] | null;
|
|
31
|
+
/**
|
|
32
|
+
* Specify the picker size
|
|
33
|
+
*/
|
|
34
|
+
size?: Size;
|
|
35
|
+
/**
|
|
36
|
+
* Set the dismiss icon size in tags when `multi` type is enabled
|
|
37
|
+
*/
|
|
38
|
+
tagIconSize?: IconSize;
|
|
39
|
+
/**
|
|
40
|
+
* Specify the placeholder for search input
|
|
41
|
+
*/
|
|
42
|
+
placeholder?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Specify whether the option select is required
|
|
45
|
+
*/
|
|
46
|
+
isRequired?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Text if no search result were found
|
|
49
|
+
*/
|
|
50
|
+
noSearchResultText?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Text for `select all` option which will be visible if defined in multi select mode
|
|
53
|
+
*/
|
|
54
|
+
selectAllOptionText?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Set `multi` to specify whether the picker should allow to multi selection
|
|
57
|
+
*/
|
|
58
|
+
type?: PickerType;
|
|
59
|
+
/**
|
|
60
|
+
* Set to disable search input
|
|
61
|
+
*/
|
|
62
|
+
searchDisabled?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Set to hide clear selection button
|
|
65
|
+
*/
|
|
66
|
+
hideClearButton?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Will open picker on component initialization
|
|
69
|
+
*/
|
|
70
|
+
openedOnInit?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Test id passed to the picker trigger element
|
|
73
|
+
*/
|
|
74
|
+
['data-testid']?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Callback called after item selection
|
|
77
|
+
*/
|
|
78
|
+
onSelect: (selectedItems: IPickerListItem[] | null) => void;
|
|
79
|
+
}
|
|
80
|
+
export declare const Picker: React.FC<IPickerProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IPickerProps } from './Picker';
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, IPickerProps & {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, IPickerProps>;
|
|
8
|
+
export declare const States: () => React.ReactElement;
|
|
9
|
+
export declare const PickerWithGroupedOptions: () => React.ReactElement;
|
|
10
|
+
export declare const PickerWithOptionsAsCustomElements: () => React.ReactElement;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface IPickerListItem {
|
|
3
|
+
key: string;
|
|
4
|
+
name: string;
|
|
5
|
+
customElement?: {
|
|
6
|
+
listItemBody: React.ReactElement;
|
|
7
|
+
selectedItemBody: React.ReactElement;
|
|
8
|
+
};
|
|
9
|
+
groupHeader?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface IPickerListProps {
|
|
13
|
+
isOpen: boolean;
|
|
14
|
+
items: IPickerListItem[];
|
|
15
|
+
selectedItemsKeys: string[] | null;
|
|
16
|
+
emptyStateText?: string;
|
|
17
|
+
selectAllOptionText?: string;
|
|
18
|
+
isMultiSelect?: boolean;
|
|
19
|
+
onClose: () => void;
|
|
20
|
+
onSelect: (item: IPickerListItem) => void;
|
|
21
|
+
onSelectAll: () => void;
|
|
22
|
+
}
|
|
23
|
+
export declare const PickerList: React.FC<IPickerListProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Size } from 'utils';
|
|
3
|
+
export interface ITriggerProps {
|
|
4
|
+
isSearchDisabled: boolean;
|
|
5
|
+
isDisabled?: boolean;
|
|
6
|
+
isError?: boolean;
|
|
7
|
+
isItemSelected: boolean;
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
isRequired?: boolean;
|
|
10
|
+
isMultiSelect?: boolean;
|
|
11
|
+
size?: Size;
|
|
12
|
+
hideClearButton?: boolean;
|
|
13
|
+
onTrigger: (e: React.MouseEvent | KeyboardEvent) => void;
|
|
14
|
+
onClear: () => void;
|
|
15
|
+
testId?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const Trigger: React.FC<React.PropsWithChildren<ITriggerProps>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IPickerListItem } from './PickerList';
|
|
3
|
+
import { PickerType } from './Picker';
|
|
4
|
+
import { IconSize } from 'index';
|
|
5
|
+
export interface ITriggerBodyProps {
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
isSearchDisabled?: boolean;
|
|
8
|
+
isDisabled?: boolean;
|
|
9
|
+
placeholder: string;
|
|
10
|
+
items?: IPickerListItem[] | null;
|
|
11
|
+
type: PickerType;
|
|
12
|
+
iconSize?: IconSize;
|
|
13
|
+
onItemRemove: (item: IPickerListItem) => void;
|
|
14
|
+
onFilter: (text: string) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const TriggerBody: React.FC<ITriggerBodyProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const defaultPickerOptions: {
|
|
2
|
+
key: string;
|
|
3
|
+
name: string;
|
|
4
|
+
}[];
|
|
5
|
+
export declare const defaultExtendedOptions: ({
|
|
6
|
+
key: string;
|
|
7
|
+
name: string;
|
|
8
|
+
groupHeader: boolean;
|
|
9
|
+
disabled?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
key: string;
|
|
12
|
+
name: string;
|
|
13
|
+
groupHeader?: undefined;
|
|
14
|
+
disabled?: undefined;
|
|
15
|
+
} | {
|
|
16
|
+
key: string;
|
|
17
|
+
name: string;
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
groupHeader?: undefined;
|
|
20
|
+
})[];
|
|
21
|
+
export declare const SELECT_ALL_OPTION_KEY = "select-all";
|