@livechat/design-system-react-components 2.16.0 → 2.17.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.
@@ -0,0 +1,3 @@
1
+ import { IEmptyStateProps } from './types';
2
+
3
+ export declare const EmptyState: ({ type, image, icon, title, description, actions, centered, }: IEmptyStateProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { EmptyState } from './EmptyState';
2
+ export type { IEmptyStateProps } from './types';
@@ -0,0 +1,53 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ export type IEmptyStateProps = ({
4
+ /**
5
+ * Specify the empty state type
6
+ */
7
+ type?: 'full';
8
+ /**
9
+ * The empty state description text or element
10
+ */
11
+ description?: string | ReactNode;
12
+ } | {
13
+ /**
14
+ * Specify the empty state type
15
+ */
16
+ type: 'inline';
17
+ /**
18
+ * Description is not available in inline type
19
+ */
20
+ description?: never;
21
+ /**
22
+ * Image is not available in inline type
23
+ */
24
+ image?: never;
25
+ }) & {
26
+ /**
27
+ * The empty state title
28
+ */
29
+ title: string;
30
+ /**
31
+ * Optional actions to be displayed
32
+ */
33
+ actions?: ReactNode;
34
+ /**
35
+ * Set to center the content
36
+ */
37
+ centered?: boolean;
38
+ } & ({
39
+ /**
40
+ * The URL of the empty state image
41
+ */
42
+ image?: string;
43
+ icon?: never;
44
+ } | {
45
+ image?: never;
46
+ /**
47
+ * The icon element to be displayed
48
+ */
49
+ icon?: ReactNode;
50
+ } | {
51
+ image?: never;
52
+ icon?: never;
53
+ });