@livechat/design-system-react-components 2.2.2 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/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 +4 -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 +3 -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 +4 -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 +7 -0
- package/dist/components/AutoComplete/index.d.ts +5 -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 +70 -0
- package/dist/components/Button/Button.helpers.d.ts +6 -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 +17 -0
- package/dist/components/DatePicker/helpers.d.ts +17 -0
- package/dist/components/DatePicker/hooks.d.ts +7 -0
- package/dist/components/DatePicker/index.d.ts +3 -0
- package/dist/components/DatePicker/types.d.ts +101 -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 +3 -0
- package/dist/components/Icon/IconsShowcase/helpers.d.ts +3 -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 +3 -0
- package/dist/components/Input/Input.d.ts +29 -0
- package/dist/components/Input/index.d.ts +1 -0
- package/dist/components/InviteAgents/InviteAgents.d.ts +3 -0
- package/dist/components/InviteAgents/components/AnimatedButton/AnimatedButton.d.ts +24 -0
- package/dist/components/InviteAgents/helpers.d.ts +4 -0
- package/dist/components/InviteAgents/index.d.ts +2 -0
- package/dist/components/InviteAgents/types.d.ts +34 -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 +8 -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 +40 -0
- package/dist/components/Picker/helpers.d.ts +6 -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 +143 -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 +4 -0
- package/dist/components/ProductSwitcher/components/ProductRow/ProductRow.d.ts +10 -0
- package/dist/components/ProductSwitcher/components/ProductTile/ProductTile.d.ts +9 -0
- package/dist/components/ProductSwitcher/constants.d.ts +7 -0
- package/dist/components/ProductSwitcher/helpers.d.ts +10 -0
- package/dist/components/ProductSwitcher/hooks/useProductSwitcher.d.ts +14 -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 +46 -0
- package/dist/components/Progress/Progress.helpers.d.ts +3 -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 +10 -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 +3 -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 +3 -0
- package/dist/hooks/useMobileViewDetector.d.ts +3 -0
- package/dist/hooks/useSharedResizeObserver.d.ts +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +55 -0
- package/dist/index.js +1435 -1440
- package/dist/providers/AppFrameProvider.d.ts +14 -0
- package/dist/providers/ThemeProvider.d.ts +20 -0
- package/dist/providers/constants.d.ts +4 -0
- package/dist/providers/helpers.d.ts +4 -0
- package/dist/providers/index.d.ts +5 -0
- package/dist/providers/types.d.ts +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 +3 -0
- package/dist/utils/types.d.ts +16 -0
- package/package.json +2 -2
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ToastProps, Toast } from './Toast';
|
|
2
|
+
import * as React from 'react';
|
|
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,10 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { IconKind } from '../Icon';
|
|
3
|
+
import { TooltipTheme } from './types';
|
|
4
|
+
|
|
5
|
+
export declare function getIconType(theme: TooltipTheme): IconKind;
|
|
6
|
+
export declare function getArrowPositionStyles(arrowOffsetY?: number, arrowOffsetX?: number, arrowY?: number, arrowX?: number): CSSProperties | undefined;
|
|
7
|
+
export declare const getArrowTokens: (tooltipStyle: string | undefined) => {
|
|
8
|
+
stroke: string;
|
|
9
|
+
fill: string;
|
|
10
|
+
};
|
|
@@ -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 { ModalPortalProps } from '../../../Modal';
|
|
2
|
+
import { ITooltipProps } from '../../types';
|
|
3
|
+
import * as React from 'react';
|
|
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<React.PropsWithChildren<IUserGuide>>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TooltipTheme } from '../../types';
|
|
2
|
+
import * as React from 'react';
|
|
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
|
+
}
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { Placement, VirtualElement, UseDismissProps, Strategy, UseClickProps } from '@floating-ui/react';
|
|
2
|
+
import { ButtonProps } from '../Button';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
export type TooltipTheme = 'invert' | 'important' | undefined;
|
|
5
|
+
export type TooltipButton = {
|
|
6
|
+
handleClick: () => void;
|
|
7
|
+
label: string;
|
|
8
|
+
} & Omit<ButtonProps, 'onClick'>;
|
|
9
|
+
export interface ITooltipProps {
|
|
10
|
+
/**
|
|
11
|
+
* The CSS class for tooltip
|
|
12
|
+
*/
|
|
13
|
+
className?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The CSS class for trigger wrapper
|
|
16
|
+
*/
|
|
17
|
+
triggerClassName?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Trigger element
|
|
20
|
+
*/
|
|
21
|
+
triggerRenderer: React.ReactElement | (() => React.ReactNode);
|
|
22
|
+
/**
|
|
23
|
+
* Specify the tooltip kind
|
|
24
|
+
* @deprecated we are changing the nomenclature to `kind` in order to maintain the constant naming of props
|
|
25
|
+
*/
|
|
26
|
+
theme?: 'invert' | 'important' | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Specify the tooltip kind
|
|
29
|
+
*/
|
|
30
|
+
kind?: 'invert' | 'important' | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* The tooltip placement
|
|
33
|
+
*/
|
|
34
|
+
placement?: Placement;
|
|
35
|
+
/**
|
|
36
|
+
* Set to control the menu visibility
|
|
37
|
+
*/
|
|
38
|
+
isVisible?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Removes the spacing inside the tooltip
|
|
41
|
+
*/
|
|
42
|
+
fullSpaceContent?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Optional handler called on tooltip hide
|
|
45
|
+
*/
|
|
46
|
+
onClose?: () => void;
|
|
47
|
+
/**
|
|
48
|
+
* Optional handler called on tooltip show
|
|
49
|
+
*/
|
|
50
|
+
onOpen?: () => void;
|
|
51
|
+
/**
|
|
52
|
+
* Set to enable/disable transition
|
|
53
|
+
*/
|
|
54
|
+
withFadeAnimation?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Set to define transition duration for showing and hiding tooltip
|
|
57
|
+
*/
|
|
58
|
+
transitionDuration?: number;
|
|
59
|
+
/**
|
|
60
|
+
* Set to define transition duration for showing tooltip
|
|
61
|
+
*/
|
|
62
|
+
hoverOnDuration?: number;
|
|
63
|
+
/**
|
|
64
|
+
* Set to define transition duration for hiding tooltip
|
|
65
|
+
*/
|
|
66
|
+
hoverOffDuration?: number;
|
|
67
|
+
/**
|
|
68
|
+
* Set to define delay before transition start for showing and hiding tooltip
|
|
69
|
+
*/
|
|
70
|
+
transitionDelay?: number;
|
|
71
|
+
/**
|
|
72
|
+
* Set to define delay before transition start for showing tooltip
|
|
73
|
+
*/
|
|
74
|
+
hoverOnDelay?: number;
|
|
75
|
+
/**
|
|
76
|
+
* Set to define delay before transition start for hiding tooltip
|
|
77
|
+
* @deprecated This prop will be removed in the future. Use `hoverOffDelay`.
|
|
78
|
+
*/
|
|
79
|
+
hoverOutDelayTimeout?: number;
|
|
80
|
+
/**
|
|
81
|
+
* Set to define delay before transition start for hiding tooltip
|
|
82
|
+
*/
|
|
83
|
+
hoverOffDelay?: number;
|
|
84
|
+
/**
|
|
85
|
+
* Set if you want to show tooltip after trigger click if state is not managed
|
|
86
|
+
*/
|
|
87
|
+
triggerOnClick?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Set if you want to show tooltip after trigger hover if state is not managed
|
|
90
|
+
*/
|
|
91
|
+
triggerOnHover?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Set the tooltip distance from the trigger
|
|
94
|
+
*/
|
|
95
|
+
offsetMainAxis?: number;
|
|
96
|
+
/**
|
|
97
|
+
* Set the tooltip distance from the trigger
|
|
98
|
+
*/
|
|
99
|
+
offsetCrossAxis?: number;
|
|
100
|
+
/**
|
|
101
|
+
* Set custom reference object for the tooltip
|
|
102
|
+
*/
|
|
103
|
+
referenceElement?: VirtualElement;
|
|
104
|
+
/**
|
|
105
|
+
* Waits until cursor is at “rest” over the trigger to change the state
|
|
106
|
+
*/
|
|
107
|
+
activationThreshold?: number;
|
|
108
|
+
/**
|
|
109
|
+
* Set the `floating-ui` useDismiss hook paramns if you need more control
|
|
110
|
+
* https://floating-ui.com/docs/usedismiss
|
|
111
|
+
*/
|
|
112
|
+
useDismissHookProps?: UseDismissProps;
|
|
113
|
+
/**
|
|
114
|
+
* Set the `floating-ui` useClick hook paramns if you need more control
|
|
115
|
+
* https://floating-ui.com/docs/useclick
|
|
116
|
+
*/
|
|
117
|
+
useClickHookProps?: UseClickProps;
|
|
118
|
+
/**
|
|
119
|
+
* Set to move the arrow along the Y axis from default position (left and right position)
|
|
120
|
+
*/
|
|
121
|
+
arrowOffsetY?: number;
|
|
122
|
+
/**
|
|
123
|
+
* Set to move the arrow along the X axis from default position (top and bottom position)
|
|
124
|
+
*/
|
|
125
|
+
arrowOffsetX?: number;
|
|
126
|
+
/**
|
|
127
|
+
* Set to close the tooltip after leaving trigger area in uncontrolled state.
|
|
128
|
+
* Be default, moving the curson from trigger to tooltip will keep it open.
|
|
129
|
+
*/
|
|
130
|
+
closeOnTriggerBlur?: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* Set the type of CSS position property to use
|
|
133
|
+
* https://floating-ui.com/docs/usefloating#strategy
|
|
134
|
+
*/
|
|
135
|
+
floatingStrategy?: Strategy;
|
|
136
|
+
}
|
|
137
|
+
export interface ITooltipInfoProps {
|
|
138
|
+
/**
|
|
139
|
+
* The CSS class for Info tooltip
|
|
140
|
+
*/
|
|
141
|
+
className?: string;
|
|
142
|
+
/**
|
|
143
|
+
* The Info tooltip header
|
|
144
|
+
*/
|
|
145
|
+
header?: string;
|
|
146
|
+
/**
|
|
147
|
+
* The Info tooltip text
|
|
148
|
+
*/
|
|
149
|
+
text: string;
|
|
150
|
+
/**
|
|
151
|
+
* Set to show close button
|
|
152
|
+
*/
|
|
153
|
+
closeWithX?: boolean;
|
|
154
|
+
/**
|
|
155
|
+
* The Info tooltip theme
|
|
156
|
+
*/
|
|
157
|
+
theme?: TooltipTheme;
|
|
158
|
+
/**
|
|
159
|
+
* The Info tooltip close button action
|
|
160
|
+
*/
|
|
161
|
+
handleCloseAction?: (ev: React.MouseEvent) => void;
|
|
162
|
+
}
|
|
163
|
+
export interface ITooltipInteractiveProps {
|
|
164
|
+
/**
|
|
165
|
+
* The Interactive tooltip header
|
|
166
|
+
*/
|
|
167
|
+
header?: string;
|
|
168
|
+
/**
|
|
169
|
+
* The Interactive tooltip text
|
|
170
|
+
*/
|
|
171
|
+
text: string;
|
|
172
|
+
/**
|
|
173
|
+
* The Interactive tooltip image
|
|
174
|
+
*/
|
|
175
|
+
image?: {
|
|
176
|
+
src: string;
|
|
177
|
+
alt: string;
|
|
178
|
+
};
|
|
179
|
+
/**
|
|
180
|
+
* Set to show close button
|
|
181
|
+
*/
|
|
182
|
+
closeWithX?: boolean;
|
|
183
|
+
/**
|
|
184
|
+
* The Interactive tooltip theme
|
|
185
|
+
*/
|
|
186
|
+
theme?: TooltipTheme;
|
|
187
|
+
/**
|
|
188
|
+
* The Interactive tooltip close button action
|
|
189
|
+
*/
|
|
190
|
+
handleCloseAction?: (ev: React.MouseEvent) => void;
|
|
191
|
+
/**
|
|
192
|
+
* The Interactive tooltip primary button props
|
|
193
|
+
*/
|
|
194
|
+
primaryButton: TooltipButton;
|
|
195
|
+
/**
|
|
196
|
+
* The Interactive tooltip secondary button props
|
|
197
|
+
*/
|
|
198
|
+
secondaryButton?: TooltipButton;
|
|
199
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TDisplaySize, TTextAlign } from './types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
interface IProps {
|
|
4
|
+
/** Size of the text */
|
|
5
|
+
size?: TDisplaySize;
|
|
6
|
+
/** DOM element name that will be rendered */
|
|
7
|
+
as?: string;
|
|
8
|
+
/** Optional custom className */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** Optional prop to set the custom color */
|
|
11
|
+
customColor?: string;
|
|
12
|
+
/** Optional prop to set the text align */
|
|
13
|
+
textAlign?: TTextAlign;
|
|
14
|
+
/** Optional prop to set the bold */
|
|
15
|
+
bold?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const Display: React.FC<React.PropsWithChildren<IProps>>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { THeadingSize, TTextAlign } from './types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
interface IProps extends React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
size?: THeadingSize;
|
|
5
|
+
/** DOM element name that will be rendered */
|
|
6
|
+
as?: string;
|
|
7
|
+
/** Optional custom className */
|
|
8
|
+
className?: string;
|
|
9
|
+
/** Optional prop to set the uppercase */
|
|
10
|
+
uppercase?: boolean;
|
|
11
|
+
/** Optional prop to set the bold */
|
|
12
|
+
bold?: boolean;
|
|
13
|
+
/** Optional prop to set the custom color */
|
|
14
|
+
customColor?: string;
|
|
15
|
+
/** Optional prop to set the text align */
|
|
16
|
+
textAlign?: TTextAlign;
|
|
17
|
+
}
|
|
18
|
+
export declare const Heading: React.FC<React.PropsWithChildren<IProps>>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { TTextAlign, TTextSize } from './types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
interface IProps extends React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
/** DOM element name that will be rendered */
|
|
5
|
+
as?: string;
|
|
6
|
+
/** Size of the text */
|
|
7
|
+
size?: TTextSize;
|
|
8
|
+
/** Optional custom className */
|
|
9
|
+
className?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Optional prop to set the uppercase
|
|
12
|
+
* @deprecated Use `uppercase` instead
|
|
13
|
+
* */
|
|
14
|
+
caps?: boolean;
|
|
15
|
+
/** Optional prop to set the uppercase */
|
|
16
|
+
uppercase?: boolean;
|
|
17
|
+
/** Optional prop to set the bold */
|
|
18
|
+
bold?: boolean;
|
|
19
|
+
/** Optional prop to set the underline */
|
|
20
|
+
underline?: boolean;
|
|
21
|
+
/** Optional prop to set the strike */
|
|
22
|
+
strike?: boolean;
|
|
23
|
+
/** Optional prop to set the custom color */
|
|
24
|
+
customColor?: string;
|
|
25
|
+
/** Optional prop to set the text align */
|
|
26
|
+
textAlign?: TTextAlign;
|
|
27
|
+
/** Optional prop to set the no margin */
|
|
28
|
+
noMargin?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export declare const Text: React.FC<React.PropsWithChildren<IProps>>;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UpdateBadge } from './UpdateBadge';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ProgressStatus, ProgressSize } from '../Progress/constants';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface UploadBarProps {
|
|
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 upload bar title
|
|
14
|
+
*/
|
|
15
|
+
title: string;
|
|
16
|
+
/**
|
|
17
|
+
* Define if upload bar should be open
|
|
18
|
+
*/
|
|
19
|
+
isExpanded?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Specify the error message
|
|
22
|
+
*/
|
|
23
|
+
errorMessage?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Specify the upload bar status
|
|
26
|
+
*/
|
|
27
|
+
status?: ProgressStatus;
|
|
28
|
+
/**
|
|
29
|
+
* Renders given element
|
|
30
|
+
*/
|
|
31
|
+
icon?: React.ReactNode;
|
|
32
|
+
/**
|
|
33
|
+
* Specify the upload bar size
|
|
34
|
+
*/
|
|
35
|
+
size?: ProgressSize;
|
|
36
|
+
/**
|
|
37
|
+
* Set the component's mode to `multiple` to specify whether the upload bar should display multiple elements
|
|
38
|
+
*/
|
|
39
|
+
mode?: 'single' | 'multiple';
|
|
40
|
+
/**
|
|
41
|
+
* The event handler for close icon click
|
|
42
|
+
*/
|
|
43
|
+
onCloseButtonClick?: () => void;
|
|
44
|
+
/**
|
|
45
|
+
* The event handler for retry icon click
|
|
46
|
+
*/
|
|
47
|
+
onRetryButtonClick?: () => void;
|
|
48
|
+
}
|
|
49
|
+
export declare const UploadBar: React.FC<React.PropsWithChildren<UploadBarProps>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './UploadBar';
|