@sinco/react 1.0.14-rc.6 → 1.0.14-rc.60
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/package.json
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
2
|
export type EmptyStateStates = 'create' | 'error' | 'noResult' | 'search';
|
3
|
-
export declare
|
4
|
-
error = "error",
|
5
|
-
search = "search",
|
6
|
-
noResult = "noResult",
|
7
|
-
create = "create"
|
8
|
-
}
|
3
|
+
export declare const EmptyStateImageUrls: Record<EmptyStateStates, string>;
|
9
4
|
export interface EmptyStateProperties {
|
5
|
+
icon?: ReactNode;
|
10
6
|
state?: EmptyStateStates;
|
11
7
|
title?: string;
|
12
8
|
content?: string;
|
13
9
|
actions?: ReactNode;
|
10
|
+
imageWidth?: string;
|
11
|
+
imageHeight?: string;
|
12
|
+
containerHeight?: string;
|
14
13
|
}
|
15
|
-
export declare const EmptyStateComponent: ({ state, title, content, actions, }: EmptyStateProperties) => JSX.Element;
|
14
|
+
export declare const EmptyStateComponent: ({ state, title, content, actions, containerHeight, imageWidth, imageHeight, icon, }: EmptyStateProperties) => JSX.Element;
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
interface Option {
|
3
|
-
}
|
4
|
-
interface ToastNotificationProperties {
|
5
|
-
type?: string;
|
6
|
-
subtitle?: string;
|
7
|
-
time?: number | any;
|
8
|
-
title?: string;
|
9
|
-
dataOpt?: Option[];
|
10
|
-
actions?: React.ReactNode;
|
11
|
-
seeMore?: boolean;
|
12
|
-
}
|
13
|
-
export declare const ToastNotificationComponent: (toast: ToastNotificationProperties) => JSX.Element;
|
14
|
-
export {};
|