@livechat/design-system-react-components 1.24.2 → 2.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ActionBar/ActionBar.d.ts +1 -1
- package/dist/components/ActionBar/ActionBarItem.d.ts +1 -1
- package/dist/components/ActionBar/constants.d.ts +1 -0
- package/dist/components/ActionCard/ActionCard.d.ts +3 -2
- package/dist/components/ActionMenu/ActionMenu.d.ts +1 -1
- package/dist/components/ActionMenu/ActionMenuItem.d.ts +1 -1
- package/dist/components/ActionMenu/{constants.d.ts → stories-constants.d.ts} +4 -4
- package/dist/components/ActionMenu/types.d.ts +1 -1
- package/dist/components/Alert/Alert.d.ts +1 -1
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Badge/Badge.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.helpers.d.ts +1 -0
- package/dist/components/Card/Card.d.ts +2 -2
- package/dist/components/DatePicker/DatePicker.d.ts +2 -2
- package/dist/components/DatePicker/DatePickerNavbar.d.ts +1 -1
- package/dist/components/DatePicker/DatePickerRangeCalendarsWrapper.d.ts +1 -1
- package/dist/components/DatePicker/RangeDatePicker.d.ts +1 -0
- package/dist/components/DatePicker/helpers.d.ts +1 -0
- package/dist/components/DatePicker/hooks.d.ts +1 -0
- package/dist/components/DatePicker/types.d.ts +2 -1
- package/dist/components/DetailsCard/DetailsCard.d.ts +1 -1
- package/dist/components/DetailsCardInfo/DetailsCardInfo.d.ts +1 -1
- package/dist/components/FieldDescription/FieldDescription.d.ts +1 -1
- package/dist/components/FieldError/FieldError.d.ts +1 -1
- package/dist/components/FileUploadProgress/FileUploadProgress.d.ts +1 -1
- package/dist/components/FileUploadProgress/FileUploadProgressActions.d.ts +1 -1
- package/dist/components/FormField/FormField.d.ts +1 -1
- package/dist/components/Icon/Icon.d.ts +3 -3
- package/dist/components/Icon/IconsShowcase/IconsShowcase.d.ts +1 -1
- package/dist/components/Icon/IconsShowcase/constans.d.ts +1 -0
- package/dist/components/Icon/IconsShowcase/helpers.d.ts +1 -0
- package/dist/components/Icon/types.d.ts +3 -2
- package/dist/components/Link/Link.d.ts +1 -1
- package/dist/components/Modal/Modal.d.ts +2 -2
- package/dist/components/Modal/components/ModalCloseButton.d.ts +1 -1
- package/dist/components/Modal/components/ModalHeader.d.ts +2 -2
- package/dist/components/Modal/components/ModalPortal.d.ts +1 -1
- package/dist/components/NumericInput/NumericInput.d.ts +1 -1
- package/dist/components/Picker/Picker.d.ts +1 -1
- package/dist/components/Picker/components/PickerList.d.ts +1 -1
- package/dist/components/Picker/components/PickerListItem.d.ts +1 -1
- package/dist/components/Picker/components/PickerTrigger.d.ts +1 -1
- package/dist/components/Picker/components/PickerTriggerBody.d.ts +1 -1
- package/dist/components/Picker/constants.d.ts +3 -29
- package/dist/components/Picker/helpers.d.ts +1 -0
- package/dist/components/Picker/hooks/useFloatingPicker.d.ts +4 -4
- package/dist/components/Picker/hooks/usePickerItems.d.ts +1 -0
- package/dist/components/Picker/types.d.ts +1 -0
- package/dist/components/Popover/Popover.d.ts +2 -2
- package/dist/components/Popover/types.d.ts +1 -1
- package/dist/components/Progress/ProgressBar.d.ts +1 -1
- package/dist/components/Progress/ProgressCircle.d.ts +1 -1
- package/dist/components/Progress/helpers.d.ts +1 -0
- package/dist/components/PromoBannerV2/PromoBannerV2.d.ts +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/components/Skeleton/SkeletonWrapper.d.ts +1 -1
- package/dist/components/Switch/Switch.d.ts +1 -1
- package/dist/components/Tab/Tab.d.ts +17 -1
- package/dist/components/Tab/TabsWrapper.d.ts +2 -2
- package/dist/components/Tag/Tag.d.ts +1 -1
- package/dist/components/Tag/types.d.ts +1 -1
- package/dist/components/TagInput/TagInput.d.ts +1 -1
- package/dist/components/TagInput/components/EditableTag.d.ts +2 -2
- package/dist/components/TagInput/components/EmailTagInput.d.ts +1 -1
- package/dist/components/TagInput/types.d.ts +1 -1
- package/dist/components/Toast/ToastWrapper.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip/{helpers.d.ts → Tooltip.helpers.d.ts} +1 -1
- package/dist/components/Tooltip/components/Info.d.ts +2 -9
- package/dist/components/Tooltip/components/Interactive.d.ts +2 -14
- package/dist/components/Tooltip/components/Reports.d.ts +1 -1
- package/dist/components/Tooltip/components/UserGuide/UserGuide.d.ts +2 -2
- package/dist/components/Tooltip/components/UserGuide/UserGuideStep.d.ts +1 -1
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/components/Tooltip/types.d.ts +64 -1
- package/dist/components/Typography/Display.d.ts +1 -1
- package/dist/components/Typography/Heading.d.ts +1 -1
- package/dist/components/Typography/Text.d.ts +1 -1
- package/dist/components/UploadBar/UploadBar.d.ts +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +4291 -3988
- package/dist/style.css +1 -1
- package/dist/utils/story-parameters.d.ts +1 -0
- package/package.json +36 -32
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { IconKind } from '../Icon';
|
|
3
3
|
import { TooltipTheme } from './types';
|
|
4
|
+
|
|
4
5
|
export declare function getIconType(theme: TooltipTheme): IconKind;
|
|
5
|
-
export declare const sleep: (milliseconds: number) => Promise<void>;
|
|
6
6
|
export declare function getArrowPositionStyles(arrowOffsetY?: number, arrowOffsetX?: number, arrowY?: number, arrowX?: number): CSSProperties | undefined;
|
|
7
7
|
export declare const getArrowTokens: (tooltipStyle: string | undefined) => {
|
|
8
8
|
stroke: string;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
+
import { ITooltipInfoProps } from '../types';
|
|
1
2
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
export declare const Info: React.FC<{
|
|
4
|
-
className?: string;
|
|
5
|
-
header?: string;
|
|
6
|
-
text: string;
|
|
7
|
-
closeWithX?: boolean;
|
|
8
|
-
theme?: TooltipTheme;
|
|
9
|
-
handleCloseAction?: (ev: React.MouseEvent) => void;
|
|
10
|
-
}>;
|
|
3
|
+
export declare const Info: React.FC<ITooltipInfoProps>;
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
+
import { ITooltipInteractiveProps } from '../types';
|
|
1
2
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
export declare const Interactive: React.FC<{
|
|
4
|
-
header?: string;
|
|
5
|
-
text: string;
|
|
6
|
-
image?: {
|
|
7
|
-
src: string;
|
|
8
|
-
alt: string;
|
|
9
|
-
};
|
|
10
|
-
closeWithX?: boolean;
|
|
11
|
-
theme?: TooltipTheme;
|
|
12
|
-
handleCloseAction?: (ev: React.MouseEvent) => void;
|
|
13
|
-
primaryButton: TooltipButton;
|
|
14
|
-
secondaryButton: TooltipButton;
|
|
15
|
-
}>;
|
|
3
|
+
export declare const Interactive: React.FC<ITooltipInteractiveProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { ModalPortalProps } from '../../../Modal';
|
|
3
2
|
import { ITooltipProps } from '../../types';
|
|
3
|
+
import * as React from 'react';
|
|
4
4
|
interface IOwnProps {
|
|
5
5
|
shouldSlide?: boolean;
|
|
6
6
|
className?: string;
|
|
@@ -8,5 +8,5 @@ interface IOwnProps {
|
|
|
8
8
|
}
|
|
9
9
|
interface IUserGuide extends IOwnProps, Omit<ITooltipProps, 'triggerRenderer'>, Omit<ModalPortalProps, 'children'> {
|
|
10
10
|
}
|
|
11
|
-
export declare const UserGuide: React.FC<IUserGuide
|
|
11
|
+
export declare const UserGuide: React.FC<React.PropsWithChildren<IUserGuide>>;
|
|
12
12
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Tooltip } from './Tooltip';
|
|
2
2
|
export { Simple, Info, Interactive, Reports } from './components';
|
|
3
3
|
export { UserGuide } from './components/UserGuide';
|
|
4
|
-
export type { ITooltipProps } from './types';
|
|
4
|
+
export type { ITooltipProps, ITooltipInfoProps, ITooltipInteractiveProps, } from './types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { Placement, VirtualElement, UseDismissProps, Strategy, UseClickProps } from '@floating-ui/react';
|
|
3
2
|
import { ButtonKind } from '../Button';
|
|
3
|
+
import * as React from 'react';
|
|
4
4
|
export type TooltipTheme = 'invert' | 'important' | undefined;
|
|
5
5
|
export type TooltipButton = {
|
|
6
6
|
handleClick: () => void;
|
|
@@ -127,3 +127,66 @@ export interface ITooltipProps {
|
|
|
127
127
|
*/
|
|
128
128
|
floatingStrategy?: Strategy;
|
|
129
129
|
}
|
|
130
|
+
export interface ITooltipInfoProps {
|
|
131
|
+
/**
|
|
132
|
+
* The CSS class for Info tooltip
|
|
133
|
+
*/
|
|
134
|
+
className?: string;
|
|
135
|
+
/**
|
|
136
|
+
* The Info tooltip header
|
|
137
|
+
*/
|
|
138
|
+
header?: string;
|
|
139
|
+
/**
|
|
140
|
+
* The Info tooltip text
|
|
141
|
+
*/
|
|
142
|
+
text: string;
|
|
143
|
+
/**
|
|
144
|
+
* Set to show close button
|
|
145
|
+
*/
|
|
146
|
+
closeWithX?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* The Info tooltip theme
|
|
149
|
+
*/
|
|
150
|
+
theme?: TooltipTheme;
|
|
151
|
+
/**
|
|
152
|
+
* The Info tooltip close button action
|
|
153
|
+
*/
|
|
154
|
+
handleCloseAction?: (ev: React.MouseEvent) => void;
|
|
155
|
+
}
|
|
156
|
+
export interface ITooltipInteractiveProps {
|
|
157
|
+
/**
|
|
158
|
+
* The Interactive tooltip header
|
|
159
|
+
*/
|
|
160
|
+
header?: string;
|
|
161
|
+
/**
|
|
162
|
+
* The Interactive tooltip text
|
|
163
|
+
*/
|
|
164
|
+
text: string;
|
|
165
|
+
/**
|
|
166
|
+
* The Interactive tooltip image
|
|
167
|
+
*/
|
|
168
|
+
image?: {
|
|
169
|
+
src: string;
|
|
170
|
+
alt: string;
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Set to show close button
|
|
174
|
+
*/
|
|
175
|
+
closeWithX?: boolean;
|
|
176
|
+
/**
|
|
177
|
+
* The Interactive tooltip theme
|
|
178
|
+
*/
|
|
179
|
+
theme?: TooltipTheme;
|
|
180
|
+
/**
|
|
181
|
+
* The Interactive tooltip close button action
|
|
182
|
+
*/
|
|
183
|
+
handleCloseAction?: (ev: React.MouseEvent) => void;
|
|
184
|
+
/**
|
|
185
|
+
* The Interactive tooltip primary button props
|
|
186
|
+
*/
|
|
187
|
+
primaryButton: TooltipButton;
|
|
188
|
+
/**
|
|
189
|
+
* The Interactive tooltip secondary button props
|
|
190
|
+
*/
|
|
191
|
+
secondaryButton: TooltipButton;
|
|
192
|
+
}
|