@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,46 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { IconSource } from '../Icon';
|
|
3
|
-
|
|
4
|
-
export type ProductId = 'livechat' | 'helpdesk' | 'chatbot' | 'openwidget' | 'knowledgebase' | 'hello' | 'accounts';
|
|
5
|
-
export type ProductName = 'LiveChat' | 'HelpDesk' | 'ChatBot' | 'OpenWidget' | 'KnowledgeBase' | 'Hello' | 'Accounts';
|
|
6
|
-
export type Env = 'labs' | 'staging' | 'prod';
|
|
7
|
-
export interface ProductSwitcherProps {
|
|
8
|
-
mainProductId: ProductId;
|
|
9
|
-
productOptions: ProductOption[];
|
|
10
|
-
textURL?: string;
|
|
11
|
-
openedOnInit?: boolean;
|
|
12
|
-
isVisible?: boolean;
|
|
13
|
-
isDarkMode?: boolean;
|
|
14
|
-
onOpen?: (event?: Event) => void;
|
|
15
|
-
onClose?: (event?: Event) => void;
|
|
16
|
-
onSelect?: (id: ProductId) => void;
|
|
17
|
-
}
|
|
18
|
-
export declare const SSOProductIdMap: Record<ProductId, ProductName>;
|
|
19
|
-
export type ProductSubscription = Partial<Record<ProductId, {
|
|
20
|
-
status: 'trial' | 'active' | 'cancelled' | 'past_due' | 'expired';
|
|
21
|
-
next_charge_at?: string;
|
|
22
|
-
}>>;
|
|
23
|
-
export interface ProductOption {
|
|
24
|
-
id: ProductId;
|
|
25
|
-
shortcutKey?: string;
|
|
26
|
-
name: string;
|
|
27
|
-
expired?: boolean;
|
|
28
|
-
trialDaysLeft?: number;
|
|
29
|
-
nameAdornment?: ReactNode;
|
|
30
|
-
icon: IconSource;
|
|
31
|
-
iconColor?: string;
|
|
32
|
-
notificationCount?: number;
|
|
33
|
-
backgroundColors: {
|
|
34
|
-
main: string;
|
|
35
|
-
second: string;
|
|
36
|
-
third: string;
|
|
37
|
-
};
|
|
38
|
-
withDivider?: boolean;
|
|
39
|
-
url: string;
|
|
40
|
-
borderColor?: string;
|
|
41
|
-
}
|
|
42
|
-
export type ProductData = {
|
|
43
|
-
clientId: string;
|
|
44
|
-
product: ProductName;
|
|
45
|
-
redirectUri: string;
|
|
46
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ProgressSize, ProgressStatus } from './constants';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
export interface ProgressBarProps {
|
|
4
|
-
/**
|
|
5
|
-
* The CSS class for container
|
|
6
|
-
*/
|
|
7
|
-
className?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Specify the value of current progress bar (0-100)
|
|
10
|
-
*/
|
|
11
|
-
percent: number;
|
|
12
|
-
/**
|
|
13
|
-
* Specify the progress bar status
|
|
14
|
-
*/
|
|
15
|
-
status?: ProgressStatus;
|
|
16
|
-
/**
|
|
17
|
-
* Specify the progress bar size
|
|
18
|
-
*/
|
|
19
|
-
size?: ProgressSize;
|
|
20
|
-
}
|
|
21
|
-
export declare const ProgressBar: React.ExoticComponent<ProgressBarProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ProgressSize, ProgressStatus } from './constants';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
export interface ProgressCircleProps {
|
|
4
|
-
/**
|
|
5
|
-
* The CSS class for container
|
|
6
|
-
*/
|
|
7
|
-
className?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Specify the value of current progress circle (0-100)
|
|
10
|
-
*/
|
|
11
|
-
progressValue: number;
|
|
12
|
-
/**
|
|
13
|
-
* Specify the progress circle status
|
|
14
|
-
*/
|
|
15
|
-
status?: ProgressStatus;
|
|
16
|
-
/**
|
|
17
|
-
* Specify the progress circle size
|
|
18
|
-
*/
|
|
19
|
-
size?: ProgressSize;
|
|
20
|
-
}
|
|
21
|
-
export declare const ProgressCircle: React.ExoticComponent<ProgressCircleProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface PromoBannerProps {
|
|
3
|
-
/**
|
|
4
|
-
* Specify an optional className to be applied to the container node
|
|
5
|
-
*/
|
|
6
|
-
className?: string;
|
|
7
|
-
/**
|
|
8
|
-
* Set the primary button text
|
|
9
|
-
*/
|
|
10
|
-
buttonText?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Set the header text
|
|
13
|
-
*/
|
|
14
|
-
header: string;
|
|
15
|
-
/**
|
|
16
|
-
* Set the image source to display it
|
|
17
|
-
*/
|
|
18
|
-
img?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Specify whether the banner should use a light-themed design
|
|
21
|
-
*/
|
|
22
|
-
light?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Set the link button text
|
|
25
|
-
*/
|
|
26
|
-
linkText?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Event handler for primary button press
|
|
29
|
-
*/
|
|
30
|
-
onButtonClick?: () => void;
|
|
31
|
-
/**
|
|
32
|
-
* Event handler for close button press
|
|
33
|
-
*/
|
|
34
|
-
onClose?: () => void;
|
|
35
|
-
/**
|
|
36
|
-
* Event handler for link button press
|
|
37
|
-
*/
|
|
38
|
-
onLinkClick?: () => void;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* @deprecated Since version 1.0.0. Will be deleted in version 2.0.0. Use {@link PromoBannerV2} instead.
|
|
42
|
-
*/
|
|
43
|
-
export declare const PromoBanner: React.FC<React.PropsWithChildren<PromoBannerProps>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { PromoBanner } from './PromoBanner';
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { ButtonKind } from '../Button';
|
|
2
|
-
import * as React from 'react';
|
|
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>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SMALL_CONTAINER_WIDTH_TRESHOLD = 559;
|
|
@@ -1,7 +0,0 @@
|
|
|
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>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { RadioButton } from './RadioButton';
|
|
@@ -1,40 +0,0 @@
|
|
|
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>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SearchInput } from './Search';
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { ButtonProps } from '../Button';
|
|
2
|
-
import * as React from 'react';
|
|
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 {};
|
|
@@ -1,16 +0,0 @@
|
|
|
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>;
|
|
@@ -1,16 +0,0 @@
|
|
|
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>;
|
|
@@ -1,16 +0,0 @@
|
|
|
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<React.PropsWithChildren<ISkeletonWrapper>>;
|
|
@@ -1,13 +0,0 @@
|
|
|
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>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { StatusBadge } from './StatusBadge';
|
|
@@ -1,47 +0,0 @@
|
|
|
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<React.PropsWithChildren<SwitchProps>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Switch } from './Switch';
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Size } from '../../utils';
|
|
2
|
-
import * as React from 'react';
|
|
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 {};
|
|
@@ -1,2 +0,0 @@
|
|
|
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"];
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { kinds, sizes } from './constants';
|
|
2
|
-
import * as React from 'react';
|
|
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
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { TagInputProps, TagInputValues } from './types';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
export declare const TagInput: <T extends TagInputValues>({ id, tags, onChange, validator, error, placeholder, size, className, inputClassName, onBlur, addOnBlur, ...props }: TagInputProps<T>) => React.ReactElement;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TagProps } from '../../Tag';
|
|
2
|
-
import * as React from 'react';
|
|
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<React.PropsWithChildren<EditableTagProps>>;
|
|
@@ -1,11 +0,0 @@
|
|
|
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>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { TagInputProps, TagInputValues } from '../types';
|
|
2
|
-
import * as React from 'react';
|
|
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;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { TagProps } from '../Tag';
|
|
2
|
-
import * as React from 'react';
|
|
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'>;
|
|
@@ -1,6 +0,0 @@
|
|
|
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>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Textarea } from './Textarea';
|
|
@@ -1,16 +0,0 @@
|
|
|
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 {};
|