@livechat/design-system-react-components 1.38.1 → 1.38.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/components/Accordion/Accordion.d.ts +3 -0
- package/dist/components/Accordion/components/AccordionAnimatedLabel.d.ts +3 -0
- package/dist/components/Accordion/components/AccordionMultilineElement.d.ts +6 -0
- package/dist/components/Accordion/helpers.d.ts +10 -0
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/Accordion/stories-helpers.d.ts +3 -0
- package/dist/components/Accordion/types.d.ts +45 -0
- package/dist/components/ActionBar/ActionBar.d.ts +3 -0
- package/dist/components/ActionBar/ActionBarItem.d.ts +3 -0
- package/dist/components/ActionBar/constants.d.ts +2 -0
- package/dist/components/ActionBar/index.d.ts +2 -0
- package/dist/components/ActionBar/types.d.ts +45 -0
- package/dist/components/ActionCard/ActionCard.d.ts +3 -0
- package/dist/components/ActionCard/index.d.ts +2 -0
- package/dist/components/ActionCard/types.d.ts +23 -0
- package/dist/components/ActionMenu/ActionMenu.d.ts +3 -0
- package/dist/components/ActionMenu/ActionMenuItem.d.ts +3 -0
- package/dist/components/ActionMenu/index.d.ts +3 -0
- package/dist/components/ActionMenu/stories-constants.d.ts +15 -0
- package/dist/components/ActionMenu/types.d.ts +80 -0
- package/dist/components/Alert/Alert.d.ts +29 -0
- package/dist/components/Alert/index.d.ts +1 -0
- package/dist/components/AppFrame/AppFrame.d.ts +3 -0
- package/dist/components/AppFrame/components/ExpirationCounter/ExpirationCounter.d.ts +21 -0
- package/dist/components/AppFrame/components/MobileNavigation/MobileNavigation.d.ts +3 -0
- package/dist/components/AppFrame/components/MobileNavigation/types.d.ts +8 -0
- package/dist/components/AppFrame/components/Navigation/Navigation.d.ts +3 -0
- package/dist/components/AppFrame/components/Navigation/types.d.ts +8 -0
- package/dist/components/AppFrame/components/NavigationGroup/NavigationGroup.d.ts +3 -0
- package/dist/components/AppFrame/components/NavigationGroup/types.d.ts +16 -0
- package/dist/components/AppFrame/components/NavigationItem/NavigationItem.d.ts +3 -0
- package/dist/components/AppFrame/components/NavigationItem/types.d.ts +40 -0
- package/dist/components/AppFrame/components/NavigationTopBar/NavigationTopBar.d.ts +45 -0
- package/dist/components/AppFrame/components/NavigationTopBar/examples.d.ts +15 -0
- package/dist/components/AppFrame/components/NavigationTopBar/types.d.ts +59 -0
- package/dist/components/AppFrame/components/SideNavigation/SideNavigation.d.ts +3 -0
- package/dist/components/AppFrame/components/SideNavigation/types.d.ts +28 -0
- package/dist/components/AppFrame/components/SideNavigationGroup/SideNavigationGroup.d.ts +3 -0
- package/dist/components/AppFrame/components/SideNavigationGroup/types.d.ts +32 -0
- package/dist/components/AppFrame/components/SideNavigationItem/SideNavigationItem.d.ts +3 -0
- package/dist/components/AppFrame/components/SideNavigationItem/constants.d.ts +3 -0
- package/dist/components/AppFrame/components/SideNavigationItem/types.d.ts +44 -0
- package/dist/components/AppFrame/components/index.d.ts +10 -0
- package/dist/components/AppFrame/index.d.ts +2 -0
- package/dist/components/AppFrame/stories-helpers.d.ts +19 -0
- package/dist/components/AppFrame/types.d.ts +47 -0
- package/dist/components/AutoComplete/AutoComplete.d.ts +13 -0
- package/dist/components/AutoComplete/helpers.d.ts +6 -0
- package/dist/components/AutoComplete/index.d.ts +4 -0
- package/dist/components/AutoComplete/types.d.ts +27 -0
- package/dist/components/Avatar/Avatar.d.ts +42 -0
- package/dist/components/Avatar/Avatar.helpers.d.ts +3 -0
- package/dist/components/Avatar/index.d.ts +3 -0
- package/dist/components/Avatar/types.d.ts +8 -0
- package/dist/components/Badge/Badge.d.ts +27 -0
- package/dist/components/Badge/Badge.helpers.d.ts +1 -0
- package/dist/components/Badge/index.d.ts +1 -0
- package/dist/components/Button/Button.d.ts +62 -0
- package/dist/components/Button/Button.helpers.d.ts +2 -0
- package/dist/components/Button/index.d.ts +3 -0
- package/dist/components/Button/types.d.ts +2 -0
- package/dist/components/Card/Card.d.ts +30 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Checkbox/Checkbox.d.ts +16 -0
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/DatePicker/DatePicker.d.ts +4 -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/helpers.d.ts +16 -0
- package/dist/components/DatePicker/hooks.d.ts +6 -0
- package/dist/components/DatePicker/index.d.ts +3 -0
- package/dist/components/DatePicker/types.d.ts +100 -0
- package/dist/components/DetailsCard/DetailsCard.d.ts +40 -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/components/FieldDescription/FieldDescription.d.ts +3 -0
- package/dist/components/FieldDescription/index.d.ts +1 -0
- package/dist/components/FieldError/FieldError.d.ts +3 -0
- package/dist/components/FieldError/index.d.ts +1 -0
- package/dist/components/FieldGroup/FieldGroup.d.ts +8 -0
- package/dist/components/FieldGroup/index.d.ts +1 -0
- package/dist/components/FileUploadProgress/FileUploadProgress.d.ts +42 -0
- package/dist/components/FileUploadProgress/FileUploadProgressActions.d.ts +9 -0
- package/dist/components/FileUploadProgress/index.d.ts +2 -0
- package/dist/components/Form/Form.d.ts +16 -0
- package/dist/components/Form/index.d.ts +2 -0
- package/dist/components/FormField/FormField.d.ts +40 -0
- package/dist/components/FormField/index.d.ts +1 -0
- package/dist/components/FormGroup/FormGroup.d.ts +16 -0
- package/dist/components/FormGroup/index.d.ts +1 -0
- package/dist/components/Icon/Icon.d.ts +32 -0
- package/dist/components/Icon/IconsShowcase/IconsShowcase.d.ts +11 -0
- package/dist/components/Icon/IconsShowcase/constans.d.ts +2 -0
- package/dist/components/Icon/IconsShowcase/helpers.d.ts +2 -0
- package/dist/components/Icon/IconsShowcase/types.d.ts +9 -0
- package/dist/components/Icon/index.d.ts +2 -0
- package/dist/components/Icon/types.d.ts +2 -0
- package/dist/components/Input/Input.d.ts +29 -0
- package/dist/components/Input/index.d.ts +1 -0
- package/dist/components/Link/Link.d.ts +14 -0
- package/dist/components/Link/index.d.ts +1 -0
- package/dist/components/Loader/Loader.d.ts +20 -0
- package/dist/components/Loader/index.d.ts +1 -0
- package/dist/components/Modal/Modal.d.ts +25 -0
- package/dist/components/Modal/StoriesComponents.d.ts +4 -0
- package/dist/components/Modal/components/ActionModalContent.d.ts +29 -0
- package/dist/components/Modal/components/ModalBase.d.ts +24 -0
- package/dist/components/Modal/components/ModalCloseButton.d.ts +7 -0
- package/dist/components/Modal/components/ModalHeader.d.ts +26 -0
- package/dist/components/Modal/components/ModalPortal.d.ts +7 -0
- package/dist/components/Modal/index.d.ts +11 -0
- package/dist/components/NumericInput/NumericInput.d.ts +12 -0
- package/dist/components/NumericInput/index.d.ts +1 -0
- package/dist/components/OnboardingChecklist/OnboardingChecklist.d.ts +3 -0
- package/dist/components/OnboardingChecklist/components/CheckListItem.d.ts +3 -0
- package/dist/components/OnboardingChecklist/components/index.d.ts +1 -0
- package/dist/components/OnboardingChecklist/index.d.ts +2 -0
- package/dist/components/OnboardingChecklist/types.d.ts +97 -0
- package/dist/components/Picker/Picker.d.ts +3 -0
- package/dist/components/Picker/components/PickerList.d.ts +27 -0
- package/dist/components/Picker/components/PickerListItem.d.ts +14 -0
- package/dist/components/Picker/components/PickerTrigger.d.ts +18 -0
- package/dist/components/Picker/components/PickerTriggerBody.d.ts +23 -0
- package/dist/components/Picker/constants.d.ts +66 -0
- package/dist/components/Picker/helpers.d.ts +5 -0
- package/dist/components/Picker/hooks/useFloatingPicker.d.ts +36 -0
- package/dist/components/Picker/hooks/usePickerItems.d.ts +23 -0
- package/dist/components/Picker/index.d.ts +3 -0
- package/dist/components/Picker/types.d.ts +142 -0
- package/dist/components/Popover/Popover.d.ts +3 -0
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/Popover/types.d.ts +65 -0
- package/dist/components/ProductSwitcher/ProductSwitcher.d.ts +3 -0
- package/dist/components/ProductSwitcher/components/ProductRow/ProductRow.d.ts +9 -0
- package/dist/components/ProductSwitcher/components/ProductTile/ProductTile.d.ts +8 -0
- package/dist/components/ProductSwitcher/constants.d.ts +6 -0
- package/dist/components/ProductSwitcher/helpers.d.ts +9 -0
- package/dist/components/ProductSwitcher/hooks/useProductSwitcher.d.ts +13 -0
- package/dist/components/ProductSwitcher/index.d.ts +4 -0
- package/dist/components/ProductSwitcher/openwidgetLogoUri.d.ts +1 -0
- package/dist/components/ProductSwitcher/types.d.ts +43 -0
- package/dist/components/Progress/Progress.helpers.d.ts +2 -0
- package/dist/components/Progress/ProgressBar.d.ts +21 -0
- package/dist/components/Progress/ProgressCircle.d.ts +21 -0
- package/dist/components/Progress/constants.d.ts +3 -0
- package/dist/components/Progress/index.d.ts +2 -0
- package/dist/components/PromoBanner/PromoBanner.d.ts +43 -0
- package/dist/components/PromoBanner/index.d.ts +1 -0
- package/dist/components/PromoBannerV2/PromoBannerV2.d.ts +45 -0
- package/dist/components/PromoBannerV2/constants.d.ts +1 -0
- package/dist/components/PromoBannerV2/index.d.ts +2 -0
- package/dist/components/RadioButton/RadioButton.d.ts +7 -0
- package/dist/components/RadioButton/index.d.ts +1 -0
- package/dist/components/Search/Search.d.ts +40 -0
- package/dist/components/Search/index.d.ts +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +39 -0
- package/dist/components/SegmentedControl/index.d.ts +2 -0
- package/dist/components/Skeleton/SkeletonAvatar.d.ts +16 -0
- package/dist/components/Skeleton/SkeletonText.d.ts +16 -0
- package/dist/components/Skeleton/SkeletonWrapper.d.ts +16 -0
- package/dist/components/Skeleton/index.d.ts +3 -0
- package/dist/components/StatusBadge/StatusBadge.d.ts +13 -0
- package/dist/components/StatusBadge/index.d.ts +1 -0
- package/dist/components/Switch/Switch.d.ts +47 -0
- package/dist/components/Switch/index.d.ts +1 -0
- package/dist/components/Tab/Tab.d.ts +31 -0
- package/dist/components/Tab/TabsWrapper.d.ts +3 -0
- package/dist/components/Tab/index.d.ts +2 -0
- package/dist/components/Tag/Tag.d.ts +3 -0
- package/dist/components/Tag/constants.d.ts +2 -0
- package/dist/components/Tag/index.d.ts +3 -0
- package/dist/components/Tag/types.d.ts +55 -0
- package/dist/components/TagInput/TagInput.d.ts +3 -0
- package/dist/components/TagInput/components/EditableTag.d.ts +13 -0
- package/dist/components/TagInput/components/EditableTagContent.d.ts +11 -0
- package/dist/components/TagInput/components/EmailTagInput.d.ts +5 -0
- package/dist/components/TagInput/index.d.ts +4 -0
- package/dist/components/TagInput/types.d.ts +41 -0
- package/dist/components/Textarea/Textarea.d.ts +6 -0
- package/dist/components/Textarea/index.d.ts +1 -0
- package/dist/components/Toast/Toast.d.ts +16 -0
- package/dist/components/Toast/ToastWrapper.d.ts +20 -0
- package/dist/components/Toast/index.d.ts +2 -0
- package/dist/components/Tooltip/Tooltip.d.ts +3 -0
- package/dist/components/Tooltip/Tooltip.helpers.d.ts +9 -0
- package/dist/components/Tooltip/components/Info.d.ts +3 -0
- package/dist/components/Tooltip/components/Interactive.d.ts +3 -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 +8 -0
- package/dist/components/Tooltip/components/UserGuide/UserGuide.d.ts +12 -0
- package/dist/components/Tooltip/components/UserGuide/UserGuideStep.d.ts +16 -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/index.d.ts +4 -0
- package/dist/components/Tooltip/types.d.ts +199 -0
- package/dist/components/Typography/Display.d.ts +18 -0
- package/dist/components/Typography/Heading.d.ts +19 -0
- package/dist/components/Typography/Text.d.ts +31 -0
- package/dist/components/Typography/index.d.ts +4 -0
- package/dist/components/Typography/types.d.ts +4 -0
- package/dist/components/UpdateBadge/UpdateBadge.d.ts +2 -0
- package/dist/components/UpdateBadge/index.d.ts +1 -0
- package/dist/components/UploadBar/UploadBar.d.ts +49 -0
- package/dist/components/UploadBar/index.d.ts +1 -0
- package/dist/foundations/design-token.d.ts +374 -0
- package/dist/foundations/index.d.ts +5 -0
- package/dist/foundations/radius-token.d.ts +13 -0
- package/dist/foundations/shadow-token.d.ts +24 -0
- package/dist/foundations/spacing-token.d.ts +22 -0
- package/dist/foundations/transition-token.d.ts +17 -0
- package/dist/hooks/helpers.d.ts +2 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/types.d.ts +13 -0
- package/dist/hooks/useAnimations.d.ts +12 -0
- package/dist/hooks/useHeightResizer.d.ts +2 -0
- package/dist/hooks/useMobileViewDetector.d.ts +2 -0
- package/dist/hooks/useSharedResizeObserver.d.ts +5 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.d.ts +53 -0
- package/dist/index.es.js +7668 -0
- package/dist/providers/AppFrameProvider.d.ts +14 -0
- package/dist/providers/index.d.ts +1 -0
- package/dist/style.css +1 -0
- package/dist/utils/PdfIcon.d.ts +2 -0
- package/dist/utils/getDesignTokenWithOpacity.d.ts +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/keyCodes.d.ts +12 -0
- package/dist/utils/noop.d.ts +1 -0
- package/dist/utils/plural.d.ts +1 -0
- package/dist/utils/story-parameters.d.ts +2 -0
- package/dist/utils/types.d.ts +11 -0
- package/package.json +3 -3
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ButtonKind } from '../Button';
|
|
3
|
+
export interface IPromoBannerV2Props {
|
|
4
|
+
/**
|
|
5
|
+
* Specify an optional className to be applied to the main container node
|
|
6
|
+
*/
|
|
7
|
+
className?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Element with additional content for second column
|
|
10
|
+
*/
|
|
11
|
+
additionalContent?: React.ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Shows the primary CTA button
|
|
14
|
+
*/
|
|
15
|
+
primaryButton?: {
|
|
16
|
+
handleClick: () => void;
|
|
17
|
+
label: string;
|
|
18
|
+
kind?: ButtonKind;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Shows the secondary CTA button
|
|
22
|
+
*/
|
|
23
|
+
secondaryButton?: {
|
|
24
|
+
handleClick: () => void;
|
|
25
|
+
label: string;
|
|
26
|
+
kind?: ButtonKind;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Set to true to display the banner vertically
|
|
30
|
+
*/
|
|
31
|
+
vertical?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Specify an optional className to be applied to the content node
|
|
34
|
+
*/
|
|
35
|
+
contentClassName?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Specify an optional className to be applied to the additional content node
|
|
38
|
+
*/
|
|
39
|
+
additionalContentClassName?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Event handler for close button press
|
|
42
|
+
*/
|
|
43
|
+
onClose?: () => void;
|
|
44
|
+
}
|
|
45
|
+
export declare const PromoBannerV2: React.FC<React.PropsWithChildren<IPromoBannerV2Props>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SMALL_CONTAINER_WIDTH_TRESHOLD = 559;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface RadioButtonProps extends React.HTMLAttributes<HTMLInputElement> {
|
|
3
|
+
description?: string;
|
|
4
|
+
checked?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const RadioButton: React.ForwardRefExoticComponent<RadioButtonProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RadioButton } from './RadioButton';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface ISearchInputProps {
|
|
3
|
+
/**
|
|
4
|
+
* Makes search expandable after focusing the icon
|
|
5
|
+
*/
|
|
6
|
+
isCollapsable?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Specify whether the search should be disabled
|
|
9
|
+
*/
|
|
10
|
+
isDisabled?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Specify whether the search should have loader visible
|
|
13
|
+
*/
|
|
14
|
+
isLoading?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Optional text for placeholder
|
|
17
|
+
*/
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Specify the search size
|
|
21
|
+
*/
|
|
22
|
+
size?: 'compact' | 'medium' | 'large';
|
|
23
|
+
/**
|
|
24
|
+
* Specify the search value
|
|
25
|
+
*/
|
|
26
|
+
value: string;
|
|
27
|
+
/**
|
|
28
|
+
* Specify an optional className to be applied to the container node
|
|
29
|
+
*/
|
|
30
|
+
className?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The event handler for onChange
|
|
33
|
+
*/
|
|
34
|
+
onChange: (value: string) => void;
|
|
35
|
+
/**
|
|
36
|
+
* Set to enable ellipsis
|
|
37
|
+
*/
|
|
38
|
+
cropOnBlur?: boolean;
|
|
39
|
+
}
|
|
40
|
+
export declare const SearchInput: React.FC<ISearchInputProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SearchInput } from './Search';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ButtonProps } from '../Button';
|
|
3
|
+
export type ButtonSize = 'compact' | 'medium' | 'large';
|
|
4
|
+
type ButtonElement = {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
} & Pick<ButtonProps, 'disabled' | 'loading' | 'icon'>;
|
|
8
|
+
export interface SegmentedControlProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
9
|
+
/**
|
|
10
|
+
* Specify an optional className to be applied to the container node
|
|
11
|
+
*/
|
|
12
|
+
className?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Array of buttons
|
|
15
|
+
*/
|
|
16
|
+
buttons: ButtonElement[];
|
|
17
|
+
/**
|
|
18
|
+
* Set to make buttons fill the container if there is free space
|
|
19
|
+
*/
|
|
20
|
+
fullWidth?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Specify the buttons size
|
|
23
|
+
*/
|
|
24
|
+
size?: ButtonSize;
|
|
25
|
+
/**
|
|
26
|
+
* Id of initially selected button
|
|
27
|
+
*/
|
|
28
|
+
initialId?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Id of current selected button, it will make component controlled
|
|
31
|
+
*/
|
|
32
|
+
currentId?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Handler for onClick on specific button
|
|
35
|
+
*/
|
|
36
|
+
onButtonClick?: (id: string, event: React.MouseEvent<HTMLElement>) => void;
|
|
37
|
+
}
|
|
38
|
+
export declare const SegmentedControl: React.FC<SegmentedControlProps>;
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface ISkeletonAvatar {
|
|
3
|
+
/**
|
|
4
|
+
* Specify if the element is square shape
|
|
5
|
+
*/
|
|
6
|
+
square?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Specify the size of the element (wdith and height in px)
|
|
9
|
+
*/
|
|
10
|
+
size?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Specify if the animation is enabled
|
|
13
|
+
*/
|
|
14
|
+
animated?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const SkeletonAvatar: React.FC<ISkeletonAvatar>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface ISkeletonText {
|
|
3
|
+
/**
|
|
4
|
+
* Specify the height of the element
|
|
5
|
+
*/
|
|
6
|
+
height?: number;
|
|
7
|
+
/**
|
|
8
|
+
* Specify the width of the element
|
|
9
|
+
*/
|
|
10
|
+
width?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Specify if the animation is enabled
|
|
13
|
+
*/
|
|
14
|
+
animated?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const SkeletonText: React.FC<ISkeletonText>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface ISkeletonWrapper extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* The children elements to be wrapped by the skeleton wrapper
|
|
5
|
+
*/
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Specify if the skeleton wrapper should display children elements vertically
|
|
9
|
+
*/
|
|
10
|
+
vertical?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Specify if the animation is enabled, it will be passed to the children skeleton components
|
|
13
|
+
*/
|
|
14
|
+
animated?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const SkeletonWrapper: React.FC<ISkeletonWrapper>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type StatusBadgeSizes = '3XS' | '2XS' | 'XS' | 'SM' | 'MD' | 'LG' | 'XL' | '2XL' | '3XL';
|
|
3
|
+
export interface IStatusBadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
4
|
+
/**
|
|
5
|
+
* Specify the status badge kind
|
|
6
|
+
*/
|
|
7
|
+
kind?: 'offline' | 'accept' | 'not-accept';
|
|
8
|
+
/**
|
|
9
|
+
* Specify the status badge size
|
|
10
|
+
*/
|
|
11
|
+
size?: StatusBadgeSizes;
|
|
12
|
+
}
|
|
13
|
+
export declare const StatusBadge: React.FC<IStatusBadgeProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { StatusBadge } from './StatusBadge';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const baseClass = "switch";
|
|
3
|
+
export type SwitchSize = 'compact' | 'medium' | 'large';
|
|
4
|
+
export type SwitchState = 'regular' | 'loading' | 'locked';
|
|
5
|
+
export interface SwitchProps {
|
|
6
|
+
/**
|
|
7
|
+
* Specify the label for the switch input
|
|
8
|
+
*/
|
|
9
|
+
ariaLabel?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The CSS class for switch container
|
|
12
|
+
*/
|
|
13
|
+
className?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Will set the switch to "on" on component initialization
|
|
16
|
+
*/
|
|
17
|
+
defaultOn?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Specify whether the switch should be disabled
|
|
20
|
+
*/
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Ref object
|
|
24
|
+
*/
|
|
25
|
+
innerRef?: React.LegacyRef<HTMLInputElement> | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Specify the switch input name
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Define if switch is "on"
|
|
32
|
+
*/
|
|
33
|
+
on?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* The event handler for onChange
|
|
36
|
+
*/
|
|
37
|
+
onChange?(e: React.FormEvent, value: boolean): void;
|
|
38
|
+
/**
|
|
39
|
+
* Specify the switch size
|
|
40
|
+
*/
|
|
41
|
+
size?: SwitchSize;
|
|
42
|
+
/**
|
|
43
|
+
* Specify the switch state
|
|
44
|
+
*/
|
|
45
|
+
state?: SwitchState;
|
|
46
|
+
}
|
|
47
|
+
export declare const Switch: React.FC<SwitchProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Switch } from './Switch';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Size } from '../../utils';
|
|
3
|
+
type HTMLProps = (React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
4
|
+
href: string;
|
|
5
|
+
}) | (React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
6
|
+
href?: never;
|
|
7
|
+
});
|
|
8
|
+
export type TabProps = HTMLProps & {
|
|
9
|
+
/**
|
|
10
|
+
* Set to display numeric counter with given number
|
|
11
|
+
*/
|
|
12
|
+
count?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Set to display selected state
|
|
15
|
+
*/
|
|
16
|
+
isSelected?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Set to display numeric counter as badge
|
|
19
|
+
*/
|
|
20
|
+
asBadge?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Specify the button size
|
|
23
|
+
*/
|
|
24
|
+
size?: Size;
|
|
25
|
+
/**
|
|
26
|
+
* Renders given element
|
|
27
|
+
*/
|
|
28
|
+
icon?: React.ReactElement;
|
|
29
|
+
};
|
|
30
|
+
export declare const Tab: React.FC<React.PropsWithChildren<TabProps>>;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const kinds: readonly ["default", "info", "warning", "success", "error", "purple", "black", "gray", "gradient01", "gradient02", "gradient03", "gradient04", "gradient05", "gradient06", "gradient07", "gradient08", "gradient09", "gradient10", "gradient11"];
|
|
2
|
+
export declare const sizes: readonly ["small", "medium", "large", "xlarge"];
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { kinds, sizes } from './constants';
|
|
3
|
+
export type TagKind = (typeof kinds)[number];
|
|
4
|
+
export type TagSize = (typeof sizes)[number];
|
|
5
|
+
export interface TagProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
/**
|
|
7
|
+
* Specify the tag kind
|
|
8
|
+
*/
|
|
9
|
+
kind?: TagKind;
|
|
10
|
+
/**
|
|
11
|
+
* Specify the tag size
|
|
12
|
+
*/
|
|
13
|
+
size?: TagSize;
|
|
14
|
+
/**
|
|
15
|
+
* Set the tag custom color
|
|
16
|
+
*/
|
|
17
|
+
customColor?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Set to show close icon
|
|
20
|
+
* @deprecated The close icon will be visible by providing the `onRemove` prop and this flag will no longer be needed
|
|
21
|
+
*/
|
|
22
|
+
dismissible?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Set to show close icon on hover only if the `onRemove` prop is provided
|
|
25
|
+
*/
|
|
26
|
+
dismissibleOnHover?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Set to hide close icon if the `onRemove` prop is provided
|
|
29
|
+
*/
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Outlined version of tag
|
|
33
|
+
*/
|
|
34
|
+
outline?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* The event handler for close icon click, if provided the close icon will be visible
|
|
37
|
+
*/
|
|
38
|
+
onRemove?(e: React.MouseEvent): void;
|
|
39
|
+
/**
|
|
40
|
+
* React node element to show on the left
|
|
41
|
+
*/
|
|
42
|
+
leftNode?: React.ReactElement;
|
|
43
|
+
/**
|
|
44
|
+
* React node element to show on the right
|
|
45
|
+
*/
|
|
46
|
+
rightNode?: React.ReactElement;
|
|
47
|
+
/**
|
|
48
|
+
* Set to show the tag as square (only if you want use icon without text)
|
|
49
|
+
*/
|
|
50
|
+
iconOnly?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Set text value for the tag. You can use this or `children` prop. If both are provided, `value` prop will be used.
|
|
53
|
+
*/
|
|
54
|
+
value?: string;
|
|
55
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TagInputProps, TagInputValues } from './types';
|
|
3
|
+
export declare const TagInput: <T extends TagInputValues>({ id, tags, onChange, validator, error, placeholder, size, className, inputClassName, onBlur, addOnBlur, ...props }: TagInputProps<T>) => React.ReactElement;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TagProps } from '../../Tag';
|
|
3
|
+
export interface EditableTagProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
inputRef: React.RefObject<HTMLInputElement>;
|
|
5
|
+
index: number;
|
|
6
|
+
update: (idx: number, value: string) => void;
|
|
7
|
+
remove: (idx: number) => void;
|
|
8
|
+
validator?: (val: string) => boolean;
|
|
9
|
+
children: string;
|
|
10
|
+
size: 'medium' | 'large';
|
|
11
|
+
tagProps?: TagProps;
|
|
12
|
+
}
|
|
13
|
+
export declare const EditableTag: React.FC<EditableTagProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface EditableTagContentProps {
|
|
3
|
+
value: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
innerEditableRef: React.RefObject<HTMLDivElement>;
|
|
6
|
+
inputRef: React.RefObject<HTMLInputElement>;
|
|
7
|
+
change: (value: string) => void;
|
|
8
|
+
remove: () => void;
|
|
9
|
+
validator?: (value: string) => boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const EditableTagContent: React.FC<EditableTagContentProps>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TagInputProps, TagInputValues } from '../types';
|
|
3
|
+
export type EmailTagInputProps<T> = Omit<TagInputProps<T>, 'validator'>;
|
|
4
|
+
export declare const emailRegex: RegExp;
|
|
5
|
+
export declare const EmailTagInput: <T extends TagInputValues>({ placeholder, ...props }: EmailTagInputProps<T>) => React.ReactElement;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TagProps } from '../Tag';
|
|
3
|
+
export interface TagInputProps<T> extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'onChange'> {
|
|
4
|
+
/**
|
|
5
|
+
* Set the id for input
|
|
6
|
+
*/
|
|
7
|
+
id?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Set the error message
|
|
10
|
+
*/
|
|
11
|
+
error?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Array of defined tags
|
|
14
|
+
*/
|
|
15
|
+
tags?: T[];
|
|
16
|
+
/**
|
|
17
|
+
* The event handler for modify tags array
|
|
18
|
+
*/
|
|
19
|
+
onChange: (tags: T[]) => void;
|
|
20
|
+
/**
|
|
21
|
+
* Set the input placeholder
|
|
22
|
+
*/
|
|
23
|
+
placeholder?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Set the custom validation for provided items
|
|
26
|
+
*/
|
|
27
|
+
validator?: (val: string) => boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Specify the input size
|
|
30
|
+
*/
|
|
31
|
+
size?: 'medium' | 'large';
|
|
32
|
+
/**
|
|
33
|
+
* Set the input custom class
|
|
34
|
+
*/
|
|
35
|
+
inputClassName?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Add Tag on blur
|
|
38
|
+
*/
|
|
39
|
+
addOnBlur?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export type TagInputValues = string | Omit<TagProps, 'onRemove' | 'dismissible'>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
3
|
+
className?: string;
|
|
4
|
+
error?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Textarea } from './Textarea';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type ToastKind = 'success' | 'warning' | 'error' | 'info';
|
|
3
|
+
type ToastAction = {
|
|
4
|
+
onClick: () => void;
|
|
5
|
+
label: string;
|
|
6
|
+
closesOnClick?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export interface ToastProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
9
|
+
action?: ToastAction;
|
|
10
|
+
className?: string;
|
|
11
|
+
removable?: boolean;
|
|
12
|
+
kind?: ToastKind;
|
|
13
|
+
onClose?: () => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const Toast: React.FC<React.PropsWithChildren<ToastProps>>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ToastProps, Toast } from './Toast';
|
|
3
|
+
type HorizontalPosition = 'left' | 'center' | 'right';
|
|
4
|
+
type VerticalPosition = 'top' | 'bottom';
|
|
5
|
+
export declare const ANIMATION_TIME = 200;
|
|
6
|
+
interface Toast extends Omit<ToastProps, 'content'> {
|
|
7
|
+
id: string;
|
|
8
|
+
content: React.ReactElement | string;
|
|
9
|
+
}
|
|
10
|
+
export interface ToastWrapperProps {
|
|
11
|
+
className?: string;
|
|
12
|
+
toasts: Toast[];
|
|
13
|
+
fixed?: boolean;
|
|
14
|
+
block?: boolean;
|
|
15
|
+
animationType?: string;
|
|
16
|
+
verticalPosition?: VerticalPosition;
|
|
17
|
+
horizontalPosition?: HorizontalPosition;
|
|
18
|
+
}
|
|
19
|
+
export declare const ToastWrapper: React.FC<ToastWrapperProps>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { IconKind } from '../Icon';
|
|
3
|
+
import { TooltipTheme } from './types';
|
|
4
|
+
export declare function getIconType(theme: TooltipTheme): IconKind;
|
|
5
|
+
export declare function getArrowPositionStyles(arrowOffsetY?: number, arrowOffsetX?: number, arrowY?: number, arrowX?: number): CSSProperties | undefined;
|
|
6
|
+
export declare const getArrowTokens: (tooltipStyle: string | undefined) => {
|
|
7
|
+
stroke: string;
|
|
8
|
+
fill: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const SpotlightOverlay: ({ gap, isVisible, slide, disablePointerEvents, }: {
|
|
3
|
+
gap: DOMRect | null;
|
|
4
|
+
isVisible: boolean;
|
|
5
|
+
slide: boolean;
|
|
6
|
+
disablePointerEvents: boolean;
|
|
7
|
+
}) => React.ReactElement | null;
|
|
8
|
+
export default SpotlightOverlay;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ModalPortalProps } from '../../../Modal';
|
|
3
|
+
import { ITooltipProps } from '../../types';
|
|
4
|
+
interface IOwnProps {
|
|
5
|
+
shouldSlide?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
disableSpotlightPointerEvents?: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface IUserGuide extends IOwnProps, Omit<ITooltipProps, 'triggerRenderer'>, Omit<ModalPortalProps, 'children'> {
|
|
10
|
+
}
|
|
11
|
+
export declare const UserGuide: React.FC<IUserGuide>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TooltipTheme } from '../../types';
|
|
3
|
+
export declare const UserGuideStep: React.FC<{
|
|
4
|
+
header: string;
|
|
5
|
+
text: string;
|
|
6
|
+
image?: {
|
|
7
|
+
src: string;
|
|
8
|
+
alt: string;
|
|
9
|
+
};
|
|
10
|
+
currentStep: number;
|
|
11
|
+
stepMax: number;
|
|
12
|
+
closeWithX?: boolean;
|
|
13
|
+
theme?: TooltipTheme;
|
|
14
|
+
handleClickPrimary: () => void;
|
|
15
|
+
handleCloseAction?: (ev: KeyboardEvent | React.MouseEvent) => void;
|
|
16
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UserGuide } from './UserGuide';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default class VirtualReference {
|
|
2
|
+
element: Element;
|
|
3
|
+
padding: number;
|
|
4
|
+
constructor(element: Element, padding: number);
|
|
5
|
+
addPadding(rect: DOMRect): Omit<DOMRect, 'toJSON'>;
|
|
6
|
+
getBoundingClientRect(): Omit<DOMRect, 'toJSON'>;
|
|
7
|
+
get clientWidth(): number;
|
|
8
|
+
get clientHeight(): number;
|
|
9
|
+
}
|