@livechat/design-system-react-components 2.2.1 → 2.2.2
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/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/dist/components/Accordion/Accordion.d.ts +0 -3
- package/dist/components/Accordion/components/AccordionAnimatedLabel.d.ts +0 -3
- package/dist/components/Accordion/components/AccordionMultilineElement.d.ts +0 -6
- package/dist/components/Accordion/helpers.d.ts +0 -10
- package/dist/components/Accordion/index.d.ts +0 -1
- package/dist/components/Accordion/stories-helpers.d.ts +0 -4
- package/dist/components/Accordion/types.d.ts +0 -45
- package/dist/components/ActionBar/ActionBar.d.ts +0 -3
- package/dist/components/ActionBar/ActionBarItem.d.ts +0 -3
- package/dist/components/ActionBar/constants.d.ts +0 -3
- package/dist/components/ActionBar/index.d.ts +0 -2
- package/dist/components/ActionBar/types.d.ts +0 -45
- package/dist/components/ActionCard/ActionCard.d.ts +0 -4
- package/dist/components/ActionCard/index.d.ts +0 -2
- package/dist/components/ActionCard/types.d.ts +0 -23
- package/dist/components/ActionMenu/ActionMenu.d.ts +0 -3
- package/dist/components/ActionMenu/ActionMenuItem.d.ts +0 -3
- package/dist/components/ActionMenu/index.d.ts +0 -3
- package/dist/components/ActionMenu/stories-constants.d.ts +0 -15
- package/dist/components/ActionMenu/types.d.ts +0 -80
- package/dist/components/Alert/Alert.d.ts +0 -29
- package/dist/components/Alert/index.d.ts +0 -1
- package/dist/components/AppFrame/AppFrame.d.ts +0 -3
- package/dist/components/AppFrame/components/ExpirationCounter/ExpirationCounter.d.ts +0 -21
- package/dist/components/AppFrame/components/MobileNavigation/MobileNavigation.d.ts +0 -3
- package/dist/components/AppFrame/components/MobileNavigation/types.d.ts +0 -8
- package/dist/components/AppFrame/components/Navigation/Navigation.d.ts +0 -3
- package/dist/components/AppFrame/components/Navigation/types.d.ts +0 -8
- package/dist/components/AppFrame/components/NavigationGroup/NavigationGroup.d.ts +0 -3
- package/dist/components/AppFrame/components/NavigationGroup/types.d.ts +0 -16
- package/dist/components/AppFrame/components/NavigationItem/NavigationItem.d.ts +0 -3
- package/dist/components/AppFrame/components/NavigationItem/types.d.ts +0 -40
- package/dist/components/AppFrame/components/NavigationTopBar/NavigationTopBar.d.ts +0 -45
- package/dist/components/AppFrame/components/NavigationTopBar/examples.d.ts +0 -15
- package/dist/components/AppFrame/components/NavigationTopBar/types.d.ts +0 -59
- package/dist/components/AppFrame/components/SideNavigation/SideNavigation.d.ts +0 -3
- package/dist/components/AppFrame/components/SideNavigation/types.d.ts +0 -28
- package/dist/components/AppFrame/components/SideNavigationGroup/SideNavigationGroup.d.ts +0 -3
- package/dist/components/AppFrame/components/SideNavigationGroup/types.d.ts +0 -32
- package/dist/components/AppFrame/components/SideNavigationItem/SideNavigationItem.d.ts +0 -3
- package/dist/components/AppFrame/components/SideNavigationItem/constants.d.ts +0 -3
- package/dist/components/AppFrame/components/SideNavigationItem/types.d.ts +0 -44
- package/dist/components/AppFrame/components/index.d.ts +0 -10
- package/dist/components/AppFrame/index.d.ts +0 -2
- package/dist/components/AppFrame/stories-helpers.d.ts +0 -19
- package/dist/components/AppFrame/types.d.ts +0 -47
- package/dist/components/AutoComplete/AutoComplete.d.ts +0 -13
- package/dist/components/AutoComplete/helpers.d.ts +0 -7
- package/dist/components/AutoComplete/index.d.ts +0 -5
- package/dist/components/AutoComplete/types.d.ts +0 -27
- package/dist/components/Avatar/Avatar.d.ts +0 -42
- package/dist/components/Avatar/Avatar.helpers.d.ts +0 -3
- package/dist/components/Avatar/index.d.ts +0 -3
- package/dist/components/Avatar/types.d.ts +0 -8
- package/dist/components/Badge/Badge.d.ts +0 -27
- package/dist/components/Badge/Badge.helpers.d.ts +0 -1
- package/dist/components/Badge/index.d.ts +0 -1
- package/dist/components/Button/Button.d.ts +0 -70
- package/dist/components/Button/Button.helpers.d.ts +0 -6
- package/dist/components/Button/index.d.ts +0 -3
- package/dist/components/Button/types.d.ts +0 -2
- package/dist/components/Card/Card.d.ts +0 -30
- package/dist/components/Card/index.d.ts +0 -2
- package/dist/components/Checkbox/Checkbox.d.ts +0 -16
- package/dist/components/Checkbox/index.d.ts +0 -1
- package/dist/components/DatePicker/DatePicker.d.ts +0 -4
- package/dist/components/DatePicker/DatePickerNavbar.d.ts +0 -4
- package/dist/components/DatePicker/DatePickerRangeCalendarsWrapper.d.ts +0 -2
- package/dist/components/DatePicker/RangeDatePicker.d.ts +0 -17
- package/dist/components/DatePicker/helpers.d.ts +0 -17
- package/dist/components/DatePicker/hooks.d.ts +0 -7
- package/dist/components/DatePicker/index.d.ts +0 -3
- package/dist/components/DatePicker/types.d.ts +0 -101
- package/dist/components/DetailsCard/DetailsCard.d.ts +0 -40
- package/dist/components/DetailsCard/index.d.ts +0 -2
- package/dist/components/DetailsCardInfo/DetailsCardInfo.d.ts +0 -8
- package/dist/components/DetailsCardInfo/index.d.ts +0 -1
- package/dist/components/FieldDescription/FieldDescription.d.ts +0 -3
- package/dist/components/FieldDescription/index.d.ts +0 -1
- package/dist/components/FieldError/FieldError.d.ts +0 -3
- package/dist/components/FieldError/index.d.ts +0 -1
- package/dist/components/FieldGroup/FieldGroup.d.ts +0 -8
- package/dist/components/FieldGroup/index.d.ts +0 -1
- package/dist/components/FileUploadProgress/FileUploadProgress.d.ts +0 -42
- package/dist/components/FileUploadProgress/FileUploadProgressActions.d.ts +0 -9
- package/dist/components/FileUploadProgress/index.d.ts +0 -2
- package/dist/components/Form/Form.d.ts +0 -16
- package/dist/components/Form/index.d.ts +0 -2
- package/dist/components/FormField/FormField.d.ts +0 -40
- package/dist/components/FormField/index.d.ts +0 -1
- package/dist/components/FormGroup/FormGroup.d.ts +0 -16
- package/dist/components/FormGroup/index.d.ts +0 -1
- package/dist/components/Icon/Icon.d.ts +0 -32
- package/dist/components/Icon/IconsShowcase/IconsShowcase.d.ts +0 -11
- package/dist/components/Icon/IconsShowcase/constans.d.ts +0 -3
- package/dist/components/Icon/IconsShowcase/helpers.d.ts +0 -3
- package/dist/components/Icon/IconsShowcase/types.d.ts +0 -9
- package/dist/components/Icon/index.d.ts +0 -2
- package/dist/components/Icon/types.d.ts +0 -3
- package/dist/components/Input/Input.d.ts +0 -29
- package/dist/components/Input/index.d.ts +0 -1
- package/dist/components/InviteAgents/InviteAgents.d.ts +0 -3
- package/dist/components/InviteAgents/components/AnimatedButton/AnimatedButton.d.ts +0 -24
- package/dist/components/InviteAgents/helpers.d.ts +0 -4
- package/dist/components/InviteAgents/index.d.ts +0 -2
- package/dist/components/InviteAgents/types.d.ts +0 -34
- package/dist/components/Link/Link.d.ts +0 -14
- package/dist/components/Link/index.d.ts +0 -1
- package/dist/components/Loader/Loader.d.ts +0 -20
- package/dist/components/Loader/index.d.ts +0 -1
- package/dist/components/Modal/Modal.d.ts +0 -25
- package/dist/components/Modal/StoriesComponents.d.ts +0 -4
- package/dist/components/Modal/components/ActionModalContent.d.ts +0 -29
- package/dist/components/Modal/components/ModalBase.d.ts +0 -24
- package/dist/components/Modal/components/ModalCloseButton.d.ts +0 -7
- package/dist/components/Modal/components/ModalHeader.d.ts +0 -26
- package/dist/components/Modal/components/ModalPortal.d.ts +0 -8
- package/dist/components/Modal/index.d.ts +0 -11
- package/dist/components/NumericInput/NumericInput.d.ts +0 -12
- package/dist/components/NumericInput/index.d.ts +0 -1
- package/dist/components/OnboardingChecklist/OnboardingChecklist.d.ts +0 -3
- package/dist/components/OnboardingChecklist/components/CheckListItem.d.ts +0 -3
- package/dist/components/OnboardingChecklist/components/index.d.ts +0 -1
- package/dist/components/OnboardingChecklist/index.d.ts +0 -2
- package/dist/components/OnboardingChecklist/types.d.ts +0 -97
- package/dist/components/Picker/Picker.d.ts +0 -3
- package/dist/components/Picker/components/PickerList.d.ts +0 -27
- package/dist/components/Picker/components/PickerListItem.d.ts +0 -14
- package/dist/components/Picker/components/PickerTrigger.d.ts +0 -18
- package/dist/components/Picker/components/PickerTriggerBody.d.ts +0 -23
- package/dist/components/Picker/constants.d.ts +0 -40
- package/dist/components/Picker/helpers.d.ts +0 -6
- package/dist/components/Picker/hooks/useFloatingPicker.d.ts +0 -36
- package/dist/components/Picker/hooks/usePickerItems.d.ts +0 -23
- package/dist/components/Picker/index.d.ts +0 -3
- package/dist/components/Picker/types.d.ts +0 -143
- package/dist/components/Popover/Popover.d.ts +0 -3
- package/dist/components/Popover/index.d.ts +0 -2
- package/dist/components/Popover/types.d.ts +0 -65
- package/dist/components/ProductSwitcher/ProductSwitcher.d.ts +0 -4
- package/dist/components/ProductSwitcher/components/ProductRow/ProductRow.d.ts +0 -10
- package/dist/components/ProductSwitcher/components/ProductTile/ProductTile.d.ts +0 -9
- package/dist/components/ProductSwitcher/constants.d.ts +0 -7
- package/dist/components/ProductSwitcher/helpers.d.ts +0 -10
- package/dist/components/ProductSwitcher/hooks/useProductSwitcher.d.ts +0 -14
- package/dist/components/ProductSwitcher/index.d.ts +0 -4
- package/dist/components/ProductSwitcher/openwidgetLogoUri.d.ts +0 -1
- package/dist/components/ProductSwitcher/types.d.ts +0 -46
- package/dist/components/Progress/Progress.helpers.d.ts +0 -3
- package/dist/components/Progress/ProgressBar.d.ts +0 -21
- package/dist/components/Progress/ProgressCircle.d.ts +0 -21
- package/dist/components/Progress/constants.d.ts +0 -3
- package/dist/components/Progress/index.d.ts +0 -2
- package/dist/components/PromoBanner/PromoBanner.d.ts +0 -43
- package/dist/components/PromoBanner/index.d.ts +0 -1
- package/dist/components/PromoBannerV2/PromoBannerV2.d.ts +0 -45
- package/dist/components/PromoBannerV2/constants.d.ts +0 -1
- package/dist/components/PromoBannerV2/index.d.ts +0 -2
- package/dist/components/RadioButton/RadioButton.d.ts +0 -7
- package/dist/components/RadioButton/index.d.ts +0 -1
- package/dist/components/Search/Search.d.ts +0 -40
- package/dist/components/Search/index.d.ts +0 -1
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +0 -39
- package/dist/components/SegmentedControl/index.d.ts +0 -2
- package/dist/components/Skeleton/SkeletonAvatar.d.ts +0 -16
- package/dist/components/Skeleton/SkeletonText.d.ts +0 -16
- package/dist/components/Skeleton/SkeletonWrapper.d.ts +0 -16
- package/dist/components/Skeleton/index.d.ts +0 -3
- package/dist/components/StatusBadge/StatusBadge.d.ts +0 -13
- package/dist/components/StatusBadge/index.d.ts +0 -1
- package/dist/components/Switch/Switch.d.ts +0 -47
- package/dist/components/Switch/index.d.ts +0 -1
- package/dist/components/Tab/Tab.d.ts +0 -31
- package/dist/components/Tab/TabsWrapper.d.ts +0 -3
- package/dist/components/Tab/index.d.ts +0 -2
- package/dist/components/Tag/Tag.d.ts +0 -3
- package/dist/components/Tag/constants.d.ts +0 -2
- package/dist/components/Tag/index.d.ts +0 -3
- package/dist/components/Tag/types.d.ts +0 -55
- package/dist/components/TagInput/TagInput.d.ts +0 -3
- package/dist/components/TagInput/components/EditableTag.d.ts +0 -13
- package/dist/components/TagInput/components/EditableTagContent.d.ts +0 -11
- package/dist/components/TagInput/components/EmailTagInput.d.ts +0 -5
- package/dist/components/TagInput/index.d.ts +0 -4
- package/dist/components/TagInput/types.d.ts +0 -41
- package/dist/components/Textarea/Textarea.d.ts +0 -6
- package/dist/components/Textarea/index.d.ts +0 -1
- package/dist/components/Toast/Toast.d.ts +0 -16
- package/dist/components/Toast/ToastWrapper.d.ts +0 -20
- package/dist/components/Toast/index.d.ts +0 -2
- package/dist/components/Tooltip/Tooltip.d.ts +0 -3
- package/dist/components/Tooltip/Tooltip.helpers.d.ts +0 -10
- package/dist/components/Tooltip/components/Info.d.ts +0 -3
- package/dist/components/Tooltip/components/Interactive.d.ts +0 -3
- package/dist/components/Tooltip/components/Reports.d.ts +0 -7
- package/dist/components/Tooltip/components/Simple.d.ts +0 -4
- package/dist/components/Tooltip/components/UserGuide/SpotlightOverlay.d.ts +0 -8
- package/dist/components/Tooltip/components/UserGuide/UserGuide.d.ts +0 -12
- package/dist/components/Tooltip/components/UserGuide/UserGuideStep.d.ts +0 -16
- package/dist/components/Tooltip/components/UserGuide/index.d.ts +0 -1
- package/dist/components/Tooltip/components/UserGuide/virtualElementReference.d.ts +0 -9
- package/dist/components/Tooltip/components/index.d.ts +0 -5
- package/dist/components/Tooltip/index.d.ts +0 -4
- package/dist/components/Tooltip/types.d.ts +0 -199
- package/dist/components/Typography/Display.d.ts +0 -18
- package/dist/components/Typography/Heading.d.ts +0 -19
- package/dist/components/Typography/Text.d.ts +0 -31
- package/dist/components/Typography/index.d.ts +0 -4
- package/dist/components/Typography/types.d.ts +0 -4
- package/dist/components/UpdateBadge/UpdateBadge.d.ts +0 -2
- package/dist/components/UpdateBadge/index.d.ts +0 -1
- package/dist/components/UploadBar/UploadBar.d.ts +0 -49
- package/dist/components/UploadBar/index.d.ts +0 -1
- package/dist/foundations/design-token.d.ts +0 -374
- package/dist/foundations/index.d.ts +0 -5
- package/dist/foundations/radius-token.d.ts +0 -13
- package/dist/foundations/shadow-token.d.ts +0 -24
- package/dist/foundations/spacing-token.d.ts +0 -22
- package/dist/foundations/transition-token.d.ts +0 -17
- package/dist/hooks/helpers.d.ts +0 -3
- package/dist/hooks/index.d.ts +0 -3
- package/dist/hooks/types.d.ts +0 -13
- package/dist/hooks/useAnimations.d.ts +0 -12
- package/dist/hooks/useHeightResizer.d.ts +0 -3
- package/dist/hooks/useMobileViewDetector.d.ts +0 -3
- package/dist/hooks/useSharedResizeObserver.d.ts +0 -6
- package/dist/index.d.ts +0 -55
- package/dist/providers/AppFrameProvider.d.ts +0 -14
- package/dist/providers/ThemeProvider.d.ts +0 -20
- package/dist/providers/constants.d.ts +0 -4
- package/dist/providers/helpers.d.ts +0 -4
- package/dist/providers/index.d.ts +0 -5
- package/dist/providers/types.d.ts +0 -1
- package/dist/utils/PdfIcon.d.ts +0 -2
- package/dist/utils/getDesignTokenWithOpacity.d.ts +0 -1
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils/keyCodes.d.ts +0 -12
- package/dist/utils/noop.d.ts +0 -1
- package/dist/utils/plural.d.ts +0 -1
- package/dist/utils/story-parameters.d.ts +0 -3
- package/dist/utils/types.d.ts +0 -16
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface IDetailsCardProps {
|
|
3
|
-
/**
|
|
4
|
-
* The CSS class for card container
|
|
5
|
-
*/
|
|
6
|
-
className?: string;
|
|
7
|
-
/**
|
|
8
|
-
* Additional element for the label on the left
|
|
9
|
-
*/
|
|
10
|
-
leftNode?: React.ReactNode;
|
|
11
|
-
/**
|
|
12
|
-
* Additional element for the label on the right
|
|
13
|
-
*/
|
|
14
|
-
rightNode?: React.ReactNode;
|
|
15
|
-
/**
|
|
16
|
-
* Set the label
|
|
17
|
-
*/
|
|
18
|
-
label: React.ReactNode;
|
|
19
|
-
/**
|
|
20
|
-
* Define if divider should be visible
|
|
21
|
-
*/
|
|
22
|
-
withDivider?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Removes the spacing inside the main container
|
|
25
|
-
*/
|
|
26
|
-
fullSpaceContent?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Set if card should be open by default
|
|
29
|
-
*/
|
|
30
|
-
openOnInit?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Set to hide the label on card open
|
|
33
|
-
*/
|
|
34
|
-
hideLabelOnOpen?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Callback function called when the card label is clicked
|
|
37
|
-
*/
|
|
38
|
-
onClick?: (e: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement | HTMLDivElement>) => void;
|
|
39
|
-
}
|
|
40
|
-
export declare const DetailsCard: React.FC<React.PropsWithChildren<IDetailsCardProps>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DetailsCardInfo } from './DetailsCardInfo';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { FieldDescription } from './FieldDescription';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { FieldError } from './FieldError';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface FieldGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
description?: React.ReactNode;
|
|
4
|
-
error?: string;
|
|
5
|
-
inline?: boolean;
|
|
6
|
-
stretch?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const FieldGroup: React.FC<React.PropsWithChildren<FieldGroupProps>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { FieldGroup } from './FieldGroup';
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { ProgressSize, ProgressStatus } from '../Progress/constants';
|
|
2
|
-
import * as React from 'react';
|
|
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>>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ProgressStatus } from '../Progress/constants';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
interface FileUploadProgressActionsProps {
|
|
4
|
-
status: ProgressStatus;
|
|
5
|
-
onCloseButtonClick?: () => void;
|
|
6
|
-
onRetryButtonClick?: () => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const FileUploadProgressActions: React.FC<FileUploadProgressActionsProps>;
|
|
9
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
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>>;
|
|
@@ -1,40 +0,0 @@
|
|
|
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<React.PropsWithChildren<FormFieldProps>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './FormField';
|
|
@@ -1,16 +0,0 @@
|
|
|
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>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './FormGroup';
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { IconSource } from './types';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
export type IconSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge';
|
|
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' | 'lock-black';
|
|
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<React.PropsWithChildren<IconProps>>;
|
|
32
|
-
export default Icon;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IconSource } from '../index';
|
|
2
|
-
import { IconName } from './types';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
export type IconsMap = {
|
|
5
|
-
[key: string]: IconSource;
|
|
6
|
-
};
|
|
7
|
-
interface IProps {
|
|
8
|
-
data: IconName[];
|
|
9
|
-
}
|
|
10
|
-
export declare const IconsShowcase: React.FC<IProps>;
|
|
11
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
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
|
-
* Set to enable ellipsis
|
|
25
|
-
*/
|
|
26
|
-
cropOnBlur?: boolean;
|
|
27
|
-
}
|
|
28
|
-
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
29
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Input';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface AnimatedIconButtonProps {
|
|
3
|
-
/**
|
|
4
|
-
* The icon to display inside the button.
|
|
5
|
-
*/
|
|
6
|
-
icon: React.ReactElement;
|
|
7
|
-
/**
|
|
8
|
-
* The text to display alongside the icon.
|
|
9
|
-
*/
|
|
10
|
-
text: string;
|
|
11
|
-
/**
|
|
12
|
-
* Optional click handler.
|
|
13
|
-
*/
|
|
14
|
-
onClick?: () => void;
|
|
15
|
-
/**
|
|
16
|
-
* Optional className to apply to the button.
|
|
17
|
-
*/
|
|
18
|
-
className?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Optional prop to control the expanded state of the button.
|
|
21
|
-
*/
|
|
22
|
-
isExpanded?: boolean;
|
|
23
|
-
}
|
|
24
|
-
export declare const AnimatedButton: React.FC<AnimatedIconButtonProps>;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ComponentCoreProps } from '../../utils/types';
|
|
2
|
-
|
|
3
|
-
export interface Agent {
|
|
4
|
-
name: string;
|
|
5
|
-
email: string;
|
|
6
|
-
status: 'available' | 'unavailable' | 'unknown';
|
|
7
|
-
avatar?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface InviteAgentsProps extends ComponentCoreProps {
|
|
10
|
-
/**
|
|
11
|
-
* The list of invited agents
|
|
12
|
-
*/
|
|
13
|
-
agents: Agent[];
|
|
14
|
-
/**
|
|
15
|
-
* The function to call when the "Set up Chatbot" button is clicked
|
|
16
|
-
*/
|
|
17
|
-
onSetUpChatbotClick: () => void;
|
|
18
|
-
/**
|
|
19
|
-
* The function to call when the "Invite Teammate" button is clicked
|
|
20
|
-
*/
|
|
21
|
-
onAddTeammateClick: () => void;
|
|
22
|
-
/**
|
|
23
|
-
* Whether the invite button should be animated
|
|
24
|
-
*/
|
|
25
|
-
animatedInviteButton?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Offset for the tooltip arrow
|
|
28
|
-
*/
|
|
29
|
-
tooltipArrowOffset?: number;
|
|
30
|
-
/**
|
|
31
|
-
* The function to call when the "Available" button is clicked
|
|
32
|
-
*/
|
|
33
|
-
onAvailableAgentsClick: () => void;
|
|
34
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
3
|
-
bold?: boolean;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Simple component which renders an `<a>` element.
|
|
7
|
-
*
|
|
8
|
-
* Place the `<Link>` inside a `<Text>` component or pass a custom className to set the typography styles.
|
|
9
|
-
*
|
|
10
|
-
* Use `<Button kind="link">` to act as a `<button>` - <a target="_self" href="/story/components-button--kinds">see the story</a>.
|
|
11
|
-
*
|
|
12
|
-
* Use `<Button href="">` to display as a `<Button>` - <a target="_self" href="/story/components-button--link">see the story</a>.
|
|
13
|
-
*/
|
|
14
|
-
export declare const Link: React.FC<React.PropsWithChildren<LinkProps>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Link } from './Link';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface LoaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
/**
|
|
4
|
-
* Specify the loader size
|
|
5
|
-
*/
|
|
6
|
-
size?: 'small' | 'medium' | 'large';
|
|
7
|
-
/**
|
|
8
|
-
* Specify the loader label
|
|
9
|
-
*/
|
|
10
|
-
label?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Set the loader highlight color
|
|
13
|
-
*/
|
|
14
|
-
primaryColor?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Set the loader color
|
|
17
|
-
*/
|
|
18
|
-
secondaryColor?: string;
|
|
19
|
-
}
|
|
20
|
-
export declare const Loader: React.FC<LoaderProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Loader } from './Loader';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ModalBaseProps } from './components/ModalBase';
|
|
2
|
-
import * as React from 'react';
|
|
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<React.PropsWithChildren<ModalProps>>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
interface IActionModalProps {
|
|
3
|
-
/**
|
|
4
|
-
* Optional element to render icon or image
|
|
5
|
-
*/
|
|
6
|
-
icon?: React.ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* Set the header text
|
|
9
|
-
*/
|
|
10
|
-
heading?: React.ReactNode;
|
|
11
|
-
/**
|
|
12
|
-
* Optional element to render action buttons
|
|
13
|
-
*/
|
|
14
|
-
actions?: React.ReactNode;
|
|
15
|
-
/**
|
|
16
|
-
* The CSS class for main container
|
|
17
|
-
*/
|
|
18
|
-
className?: string;
|
|
19
|
-
/**
|
|
20
|
-
* The CSS class for header container
|
|
21
|
-
*/
|
|
22
|
-
headerClassName?: string;
|
|
23
|
-
/**
|
|
24
|
-
* The CSS class for content container
|
|
25
|
-
*/
|
|
26
|
-
contentClassName?: string;
|
|
27
|
-
}
|
|
28
|
-
export declare const ActionModalContent: React.FC<React.PropsWithChildren<IActionModalProps>>;
|
|
29
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
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
|
-
* Put extra margin on the top of the modal for the label
|
|
21
|
-
*/
|
|
22
|
-
isLabelled?: boolean;
|
|
23
|
-
}
|
|
24
|
-
export declare const ModalBase: React.FC<React.PropsWithChildren<ModalBaseProps>>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { AvatarProps } from '../../Avatar';
|
|
2
|
-
import { IconProps } from '../../Icon';
|
|
3
|
-
import * as React from 'react';
|
|
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<React.PropsWithChildren<ModalHeaderProps>>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FC, PropsWithChildren, ReactNode, HTMLAttributes } from 'react';
|
|
2
|
-
|
|
3
|
-
export interface ModalPortalProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
zIndex: number;
|
|
6
|
-
parentElementName?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const ModalPortal: FC<PropsWithChildren<ModalPortalProps>>;
|
|
@@ -1,11 +0,0 @@
|
|
|
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 { ActionModalContent } from './components/ActionModalContent';
|
|
7
|
-
export type { ModalProps } from './Modal';
|
|
8
|
-
export type { ModalBaseProps } from './components/ModalBase';
|
|
9
|
-
export type { ModalCloseButtonProps } from './components/ModalCloseButton';
|
|
10
|
-
export type { ModalPortalProps } from './components/ModalPortal';
|
|
11
|
-
export type { ModalHeaderProps } from './components/ModalHeader';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export type NumericInputProps = React.InputHTMLAttributes<HTMLInputElement> & {
|
|
3
|
-
className?: string;
|
|
4
|
-
error?: string;
|
|
5
|
-
value: string;
|
|
6
|
-
max?: number;
|
|
7
|
-
min?: number;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
noControls?: boolean;
|
|
10
|
-
onChange: (value: string) => void;
|
|
11
|
-
};
|
|
12
|
-
export declare const NumericInput: React.FC<React.PropsWithChildren<NumericInputProps>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { NumericInput } from './NumericInput';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { CheckListItem } from './CheckListItem';
|