@livechat/design-system-react-components 2.31.1 → 2.33.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/README.md +2 -4
- 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 +2086 -2093
- 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 +5 -5
- /package/dist/{style.css → design-system-react-components.css} +0 -0
package/README.md
CHANGED
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
|
|
17
17
|
This package contains a library of reusable React components designed to be used in various projects. These components are the building blocks of our design system and can be easily integrated into your applications.
|
|
18
18
|
|
|
19
|
-
|
|
20
19
|
## Installation
|
|
21
20
|
|
|
22
21
|
Run the following command using [npm](https://www.npmjs.com/) (or with you other favorite package manager, eg. [yarn](https://yarnpkg.com/)):
|
|
@@ -30,7 +29,7 @@ npm install @livechat/design-system-react-components @livechat/design-system-ico
|
|
|
30
29
|
It is required to import the `CSS` directly into your project so it could be applied to components:
|
|
31
30
|
|
|
32
31
|
```js
|
|
33
|
-
import '@livechat/design-system-react-components/dist/
|
|
32
|
+
import '@livechat/design-system-react-components/dist/design-system-react-components.css';
|
|
34
33
|
```
|
|
35
34
|
|
|
36
35
|
You can import components directly from the npm package:
|
|
@@ -55,7 +54,6 @@ At this stage of the project we consider Storybook and Figma as parts of our doc
|
|
|
55
54
|
[Storybook](https://design.livechat.com/) - includes design system foundations, describes components API and allows to familiarize with the thier capabilities
|
|
56
55
|
[Figma](https://www.figma.com/file/2pFu80PXO5A2tfyrAGnx91/Product-Components) - it's not an official documentation from design perspective but we follow a simple rule of working in public
|
|
57
56
|
|
|
58
|
-
|
|
59
57
|
### Development
|
|
60
58
|
|
|
61
59
|
Required version of `node.js` is `20.14.0`.
|
|
@@ -78,4 +76,4 @@ If `Storybook` is not enough, you can additionaly run `npm start:example` which
|
|
|
78
76
|
|
|
79
77
|
### Contributing
|
|
80
78
|
|
|
81
|
-
For the `contribution/testing/releasing` guides please refer to the [main repository](https://github.com/livechat/design-system/) documentation.
|
|
79
|
+
For the `contribution/testing/releasing` guides please refer to the [main repository](https://github.com/livechat/design-system/) documentation.
|
|
@@ -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