@livechat/design-system-react-components 2.31.0 → 2.32.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/stories-helpers.d.ts +0 -1
- package/dist/components/ActionBar/constants.d.ts +0 -1
- package/dist/components/ActionCard/ActionCard.d.ts +0 -1
- package/dist/components/ActionMenu/stories-constants.d.ts +0 -1
- package/dist/components/AnimatedTextContainer/AnimatedTextContainer.d.ts +0 -1
- package/dist/components/AutoComplete/helpers.d.ts +0 -1
- package/dist/components/AutoComplete/index.d.ts +0 -1
- package/dist/components/DatePicker/RangeDatePicker.d.ts +0 -1
- package/dist/components/DatePicker/helpers.d.ts +0 -1
- package/dist/components/DatePicker/hooks.d.ts +0 -1
- package/dist/components/DatePicker/types.d.ts +0 -1
- package/dist/components/EmptyState/EmptyState.d.ts +0 -1
- package/dist/components/EmptyState/types.d.ts +0 -1
- package/dist/components/FloatingPortal/FloatingPortal.d.ts +0 -1
- package/dist/components/FloatingPortal/index.d.ts +0 -1
- package/dist/components/Icon/IconsShowcase/constans.d.ts +0 -1
- package/dist/components/Icon/IconsShowcase/helpers.d.ts +0 -1
- package/dist/components/Icon/types.d.ts +0 -1
- package/dist/components/InviteAgents/InviteAgents.d.ts +0 -1
- package/dist/components/InviteAgents/helpers.d.ts +0 -1
- package/dist/components/InviteAgents/types.d.ts +0 -1
- package/dist/components/ListItem/ListItem.d.ts +0 -1
- package/dist/components/ListItem/types.d.ts +0 -1
- package/dist/components/Modal/components/ModalPortal.d.ts +0 -1
- package/dist/components/OverflowTooltipText/OverflowTooltipText.d.ts +0 -1
- package/dist/components/Picker/constants.d.ts +0 -1
- package/dist/components/Picker/helpers.d.ts +0 -1
- package/dist/components/Picker/types.d.ts +0 -1
- package/dist/components/ProductSwitcher/ProductSwitcher.d.ts +0 -1
- package/dist/components/ProductSwitcher/components/ProductRow/ProductRow.d.ts +0 -1
- package/dist/components/ProductSwitcher/components/ProductTile/ProductTile.d.ts +0 -1
- package/dist/components/ProductSwitcher/constants.d.ts +0 -1
- package/dist/components/ProductSwitcher/helpers.d.ts +0 -1
- package/dist/components/ProductSwitcher/hooks/useProductSwitcher.d.ts +0 -1
- package/dist/components/ProductSwitcher/types.d.ts +0 -1
- package/dist/components/Progress/Progress.helpers.d.ts +0 -1
- package/dist/components/RangeDatePickerV2/RangeDatePickerV2.d.ts +0 -1
- package/dist/components/RangeDatePickerV2/components/RangeDatePickerV2Label.d.ts +0 -1
- package/dist/components/RangeDatePickerV2/helpers.d.ts +0 -1
- package/dist/components/RangeDatePickerV2/types.d.ts +0 -1
- package/dist/components/SelectableCard/SelectableCard.d.ts +0 -1
- package/dist/components/SelectableCard/components/GallerySelectableCard/GallerySelectableCard.d.ts +0 -1
- package/dist/components/SelectableCard/components/InteractiveSelectableCard/InteractiveGrid/InteractiveGrid.d.ts +0 -1
- package/dist/components/SelectableCard/components/InteractiveSelectableCard/InteractiveSelectableCard.d.ts +0 -1
- package/dist/components/SelectableCard/components/InteractiveSelectableCard/types.d.ts +0 -1
- package/dist/components/SelectableCard/components/ThumbnailSelectableCard/ThumbnailSelectableCard.d.ts +0 -1
- package/dist/components/SystemMessage/components/SystemMessageTimestamp.d.ts +0 -1
- package/dist/components/Table/Table.d.ts +0 -1
- package/dist/components/Table/TableBody.d.ts +0 -1
- package/dist/components/Table/TableRow.d.ts +0 -1
- package/dist/components/Table/stories-constants.d.ts +0 -1
- package/dist/components/Table/stories-helpers.d.ts +0 -1
- package/dist/components/Tooltip/Tooltip.helpers.d.ts +0 -1
- package/dist/components/UserGuide/UserGuide.d.ts +0 -1
- package/dist/components/UserGuide/components/UserGuideBubbleStep/UserGuideBubbleStep.d.ts +0 -1
- package/dist/components/UserGuide/components/UserGuideBubbleStep/types.d.ts +0 -1
- package/dist/components/UserGuide/components/UserGuideStep/UserGuideStep.d.ts +0 -1
- package/dist/components/UserGuide/components/UserGuideStep/types.d.ts +0 -1
- package/dist/components/UserGuide/stories-helpers.d.ts +0 -1
- package/dist/components/UserGuide/types.d.ts +4 -1
- package/dist/hooks/helpers.d.ts +0 -1
- package/dist/hooks/useHeightResizer.d.ts +0 -1
- package/dist/hooks/useInteractive.d.ts +0 -1
- package/dist/hooks/useIsOverflow.d.ts +0 -1
- package/dist/hooks/useMobileViewDetector.d.ts +0 -1
- package/dist/hooks/useOnHover.d.ts +0 -1
- package/dist/hooks/useSharedResizeObserver.d.ts +0 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +4824 -5256
- package/dist/providers/ReadOnlyFormFieldProvider.d.ts +0 -1
- package/dist/providers/ThemeProvider.d.ts +0 -1
- package/dist/providers/helpers.d.ts +0 -1
- package/dist/utils/story-parameters.d.ts +0 -1
- package/package.json +14 -20
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IPickerListItem } from '../Picker';
|
|
2
2
|
import { AutoCompleteProps, IAutoCompleteListItem } from './types';
|
|
3
|
-
|
|
4
3
|
export declare const areAllOptionsStrings: (options: AutoCompleteProps["options"]) => options is string[];
|
|
5
4
|
export declare const buildOptionsFromStrings: (options: string[]) => IPickerListItem[];
|
|
6
5
|
export declare const buildOptionsFromAutoCompleteListItems: (options: IAutoCompleteListItem[]) => IPickerListItem[];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { IRangeDatePickerProps } from './types';
|
|
3
|
-
|
|
4
3
|
export declare const RangeDatePicker: {
|
|
5
4
|
({ options, initialSelectedItemKey, initialFromDate, initialToDate, customTempFromDate, customTempToDate, toMonth, today, onChange, onRangeSelect, onSelect, onCustomTempDateRangeChange, children, }: IRangeDatePickerProps): ReactElement;
|
|
6
5
|
defaultProps: {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { Dispatch, ReducerAction, ReducerState } from 'react';
|
|
2
2
|
import { IRangeDatePickerProps, RangeDatePickerReducer } from './types';
|
|
3
|
-
|
|
4
3
|
export declare const useRangeDatePickerState: (props: IRangeDatePickerProps) => [ReducerState<RangeDatePickerReducer>, Dispatch<ReducerAction<RangeDatePickerReducer>>];
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IPickerListItem } from './types';
|
|
2
|
-
|
|
3
2
|
export declare const findIndicesWhere: <T>(array: T[], predicate: (item: T) => boolean) => number[];
|
|
4
3
|
export declare const getNormalizedItems: (items: IPickerListItem[]) => IPickerListItem[];
|
|
5
4
|
export declare const getPickerListItemKey: ({ key }: IPickerListItem) => string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ProductName, ProductData, ProductId, ProductOption, ProductSubscription, Env } from './types';
|
|
2
|
-
|
|
3
2
|
export declare const getRedirectURL: (productClientId: string, productRedirectUri: string, organizationId: string, mainProductId: ProductId, env: Env) => string;
|
|
4
3
|
export declare const getTrialDaysLeft: (trialEnd: string) => number;
|
|
5
4
|
export declare const isVisibleProduct: (productId: ProductId, installedProducts: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { IconSource } from '../Icon';
|
|
3
|
-
|
|
4
3
|
export type ProductId = 'livechat' | 'helpdesk' | 'chatbot' | 'openwidget' | 'knowledgebase' | 'teamchat' | 'accounts';
|
|
5
4
|
export type ProductName = 'LiveChat' | 'HelpDesk' | 'ChatBot' | 'OpenWidget' | 'KnowledgeBase' | 'TeamChat' | 'Accounts';
|
|
6
5
|
export type Env = 'labs' | 'staging' | 'prod';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DateRange } from 'react-day-picker';
|
|
2
2
|
import { IRangeDatePickerCoreProps } from '../DatePicker/types';
|
|
3
|
-
|
|
4
3
|
export type RANGE_DATE_PICKER_OPTION_ID = 'today' | 'yesterday' | 'last7days' | 'last30days' | 'lastMonth' | 'currentMonth';
|
|
5
4
|
export interface IRangeDatePickerV2Props extends Omit<IRangeDatePickerCoreProps, 'children'> {
|
|
6
5
|
triggerClassName?: string;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { ITableProps } from './types';
|
|
2
|
-
|
|
3
2
|
export declare const Table: <T>({ data, columns, stripped, size, pin, selectable, getRowId, resizable, selectedRows, onSelectionChange, rowSelectionMessage, rowActions, testId, }: ITableProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { IconKind } from '../Icon';
|
|
3
3
|
import { TooltipTheme } from './types';
|
|
4
|
-
|
|
5
4
|
export declare function getIconType(theme: TooltipTheme): IconKind;
|
|
6
5
|
export declare function getArrowPositionStyles(arrowOffsetY?: number, arrowOffsetX?: number, arrowY?: number, arrowX?: number): CSSProperties | undefined;
|
|
7
6
|
export declare const getArrowTokens: (tooltipStyle: string | undefined) => {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Placement } from '@floating-ui/react';
|
|
2
|
-
|
|
3
2
|
export type CursorTiming = 'fast1' | 'fast2' | 'moderate1' | 'moderate2';
|
|
4
3
|
export interface IUserGuide {
|
|
5
4
|
/**
|
|
@@ -26,6 +25,10 @@ export interface IUserGuide {
|
|
|
26
25
|
* The visibility of the user guide
|
|
27
26
|
*/
|
|
28
27
|
isVisible?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Set to true to hide the overlay
|
|
30
|
+
*/
|
|
31
|
+
hideOverlay?: boolean;
|
|
29
32
|
/**
|
|
30
33
|
* The custom z-index value for the overlay
|
|
31
34
|
*/
|
package/dist/hooks/helpers.d.ts
CHANGED