@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,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IDetailsCardProps } from './DetailsCard';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: React.FC<IDetailsCardProps>;
|
|
6
|
+
subcomponents: {
|
|
7
|
+
DetailsCardInfo: React.FC<import("../DetailsCardInfo/DetailsCardInfo").IDetailsCardInfoProps>;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const Default: {
|
|
12
|
+
(args: IDetailsCardProps): React.ReactElement;
|
|
13
|
+
args: {
|
|
14
|
+
label: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const ExampleUsage: () => React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DetailsCardInfo } from './DetailsCardInfo';
|
|
@@ -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,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface FormProps extends React.HTMLAttributes<HTMLFormElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Set form label
|
|
5
|
+
*/
|
|
6
|
+
labelText?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Set form description
|
|
9
|
+
*/
|
|
10
|
+
helperText?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Footer element
|
|
13
|
+
*/
|
|
14
|
+
formFooter?: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare const Form: React.FC<React.PropsWithChildren<FormProps>>;
|
|
@@ -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: () => React.ReactElement;
|
|
9
|
+
export declare const TextFieldWithError: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, FormFieldProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface FormGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* The CSS class for container
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Set form label
|
|
9
|
+
*/
|
|
10
|
+
labelText?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Set form description
|
|
13
|
+
*/
|
|
14
|
+
helperText?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const FormGroup: React.FC<React.PropsWithChildren<FormGroupProps>>;
|
|
@@ -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,32 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IconSource } from './types';
|
|
3
|
+
export type IconSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
4
|
+
export type IconKind = 'primary' | 'subtle' | 'inverted' | 'inverted-subtle' | 'link' | 'success' | 'warning' | 'error' | 'negative' | 'positive' | 'action-primary' | 'action-negative' | 'action-positive' | 'action-warning' | 'action-neutral';
|
|
5
|
+
export interface IconProps {
|
|
6
|
+
/**
|
|
7
|
+
* Specify the source of svg element
|
|
8
|
+
*/
|
|
9
|
+
source: IconSource;
|
|
10
|
+
/**
|
|
11
|
+
* Specify the icon size
|
|
12
|
+
*/
|
|
13
|
+
size?: IconSize;
|
|
14
|
+
/**
|
|
15
|
+
* Specify the icon kind
|
|
16
|
+
*/
|
|
17
|
+
kind?: IconKind;
|
|
18
|
+
/**
|
|
19
|
+
* Specify whether the icon should be disabled
|
|
20
|
+
*/
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* The CSS class for icon
|
|
24
|
+
*/
|
|
25
|
+
className?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Set the icon custom color
|
|
28
|
+
*/
|
|
29
|
+
customColor?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare const Icon: React.FC<IconProps>;
|
|
32
|
+
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: (props: React.SVGProps<SVGSVGElement>) => JSX.Element;
|
|
11
|
+
size: string;
|
|
12
|
+
kind: string;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -1,14 +1,29 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Size } from 'utils/constants';
|
|
3
2
|
interface InputIcon {
|
|
4
3
|
source: React.ReactElement;
|
|
5
4
|
place: 'left' | 'right';
|
|
6
5
|
}
|
|
7
6
|
export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
8
|
-
|
|
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
|
+
*/
|
|
9
14
|
error?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Specify whether the input should be disabled
|
|
17
|
+
*/
|
|
10
18
|
disabled?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Set the icon and its position
|
|
21
|
+
*/
|
|
11
22
|
icon?: InputIcon;
|
|
23
|
+
/**
|
|
24
|
+
* Set to enable ellipsis
|
|
25
|
+
*/
|
|
26
|
+
cropOnBlur?: boolean;
|
|
12
27
|
}
|
|
13
28
|
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
14
29
|
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: () => React.ReactElement;
|
|
8
|
+
export declare const States: () => React.ReactElement;
|
|
9
|
+
export declare const Types: () => React.ReactElement;
|
|
10
|
+
export declare const WithIcons: () => React.ReactElement;
|
|
@@ -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;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ModalBaseProps } from './components/ModalBase';
|
|
3
|
+
export interface ModalProps extends ModalBaseProps {
|
|
4
|
+
/**
|
|
5
|
+
* Header element. For consistent UI use `<ModalHeader/>`
|
|
6
|
+
*/
|
|
7
|
+
heading?: React.ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Header element outside the main container. For consistent UI use `<ModalHeader/>`
|
|
10
|
+
*/
|
|
11
|
+
labelHeading?: React.ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Removes the spacing inside the main container
|
|
14
|
+
*/
|
|
15
|
+
fullSpaceContent?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Footer element
|
|
18
|
+
*/
|
|
19
|
+
footer?: React.ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* Class name for the content container
|
|
22
|
+
*/
|
|
23
|
+
contentClassName?: string;
|
|
24
|
+
}
|
|
25
|
+
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
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface ModalBaseProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* The event handler for close button
|
|
5
|
+
*/
|
|
6
|
+
onClose(): void;
|
|
7
|
+
/**
|
|
8
|
+
* Triggers the onClose event on `esc` key press
|
|
9
|
+
*/
|
|
10
|
+
closeOnEscPress?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Triggers the onClose event on overlay click
|
|
13
|
+
*/
|
|
14
|
+
closeOnOverlayPress?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Removes the spacing inside the main container
|
|
17
|
+
*/
|
|
18
|
+
fullSpaceContent?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare const ModalBase: React.FC<React.PropsWithChildren<ModalBaseProps>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
import { ButtonProps } from '../../Button';
|
|
3
|
+
export interface ModalCloseButtonProps extends ButtonProps {
|
|
3
4
|
labelType?: boolean;
|
|
4
5
|
customColor?: string;
|
|
5
6
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { AvatarProps } from '../../Avatar';
|
|
3
|
+
import { IconProps } from '../../Icon';
|
|
4
|
+
export interface ModalHeaderProps {
|
|
5
|
+
/**
|
|
6
|
+
* Set the header title
|
|
7
|
+
*/
|
|
8
|
+
title?: React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Set to display the icon
|
|
11
|
+
*/
|
|
12
|
+
iconProps?: IconProps;
|
|
13
|
+
/**
|
|
14
|
+
* Set to display avatar
|
|
15
|
+
*/
|
|
16
|
+
avatarProps?: AvatarProps;
|
|
17
|
+
/**
|
|
18
|
+
* Children element
|
|
19
|
+
*/
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Define class name for container
|
|
23
|
+
*/
|
|
24
|
+
className?: 'string';
|
|
25
|
+
}
|
|
26
|
+
export declare const ModalHeader: React.FC<ModalHeaderProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { Modal } from './Modal';
|
|
2
|
+
export { ModalBase } from './components/ModalBase';
|
|
3
|
+
export { ModalCloseButton } from './components/ModalCloseButton';
|
|
4
|
+
export { ModalPortal } from './components/ModalPortal';
|
|
5
|
+
export { ModalHeader } from './components/ModalHeader';
|
|
6
|
+
export type { ModalProps } from './Modal';
|
|
7
|
+
export type { ModalBaseProps } from './components/ModalBase';
|
|
8
|
+
export type { ModalCloseButtonProps } from './components/ModalCloseButton';
|
|
9
|
+
export type { ModalPortalProps } from './components/ModalPortal';
|
|
10
|
+
export type { ModalHeaderProps } from './components/ModalHeader';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
export type NumericInputProps = React.InputHTMLAttributes<HTMLInputElement> & {
|
|
3
3
|
className?: string;
|
|
4
4
|
error?: string;
|
|
5
5
|
value: string;
|
|
@@ -8,7 +8,5 @@ interface Props {
|
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
noControls?: boolean;
|
|
10
10
|
onChange: (value: string) => void;
|
|
11
|
-
}
|
|
12
|
-
export declare type NumericInputProps = React.InputHTMLAttributes<HTMLInputElement> & Props;
|
|
11
|
+
};
|
|
13
12
|
export declare const NumericInput: React.FC<NumericInputProps>;
|
|
14
|
-
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { NumericInputProps } from './NumericInput';
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, React.InputHTMLAttributes<HTMLInputElement> & {
|
|
4
|
+
className?: string | undefined;
|
|
5
|
+
error?: string | undefined;
|
|
6
|
+
value: string;
|
|
7
|
+
max?: number | undefined;
|
|
8
|
+
min?: number | undefined;
|
|
9
|
+
disabled?: boolean | undefined;
|
|
10
|
+
noControls?: boolean | undefined;
|
|
11
|
+
onChange: (value: string) => void;
|
|
12
|
+
} & {
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}>;
|
|
15
|
+
export default _default;
|
|
16
|
+
export declare const NumericInput: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, NumericInputProps>;
|
|
17
|
+
export declare const NumericInputWithMinAndMaxValues: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, NumericInputProps>;
|
|
18
|
+
export declare const NumericInputWithNoControls: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, NumericInputProps>;
|
|
19
|
+
export declare const NumericInputWithDisabled: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, NumericInputProps>;
|
|
20
|
+
export declare const NumericInputWithError: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, NumericInputProps>;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Size } from 'utils';
|
|
3
|
+
import { IPickerListItem, PickerType } from './types';
|
|
4
|
+
export interface IPickerProps {
|
|
5
|
+
/**
|
|
6
|
+
* Specify the custom id
|
|
7
|
+
*/
|
|
8
|
+
id?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The CSS class for picker container
|
|
11
|
+
*/
|
|
12
|
+
className?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Specify whether the picker should be disabled
|
|
15
|
+
*/
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Specify whether the picker should be in error state
|
|
19
|
+
*/
|
|
20
|
+
error?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Array of picker options
|
|
23
|
+
*/
|
|
24
|
+
options: IPickerListItem[];
|
|
25
|
+
/**
|
|
26
|
+
* Array of picker selected options
|
|
27
|
+
*/
|
|
28
|
+
selected?: IPickerListItem[] | null;
|
|
29
|
+
/**
|
|
30
|
+
* Specify the picker size
|
|
31
|
+
*/
|
|
32
|
+
size?: Size;
|
|
33
|
+
/**
|
|
34
|
+
* Specify the placeholder for search input
|
|
35
|
+
*/
|
|
36
|
+
placeholder?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Specify whether the option select is required
|
|
39
|
+
*/
|
|
40
|
+
isRequired?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Text if no search result were found
|
|
43
|
+
*/
|
|
44
|
+
noSearchResultText?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Text for `select all` option which will be visible if defined in multi select mode
|
|
47
|
+
*/
|
|
48
|
+
selectAllOptionText?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Set `multi` to specify whether the picker should allow to multi selection
|
|
51
|
+
*/
|
|
52
|
+
type?: PickerType;
|
|
53
|
+
/**
|
|
54
|
+
* Set to disable search input
|
|
55
|
+
*/
|
|
56
|
+
searchDisabled?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Set to hide clear selection button
|
|
59
|
+
*/
|
|
60
|
+
hideClearButton?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Will open picker on component initialization
|
|
63
|
+
*/
|
|
64
|
+
openedOnInit?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Test id passed to the picker trigger element
|
|
67
|
+
*/
|
|
68
|
+
['data-testid']?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Callback called after item selection
|
|
71
|
+
*/
|
|
72
|
+
onSelect: (selectedItems: IPickerListItem[] | null) => void;
|
|
73
|
+
/**
|
|
74
|
+
* Clears the search input after item select
|
|
75
|
+
*/
|
|
76
|
+
clearSearchAfterSelection?: boolean;
|
|
77
|
+
}
|
|
78
|
+
export declare const Picker: React.FC<IPickerProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|