@sinco/react 1.0.4-rc.1 → 1.0.4-rc.10
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +374 -646
- package/package.json +1 -1
- package/src/index.d.ts +1 -3
- package/src/lib/Components/ToastNotification/ToastNofitication.d.ts +14 -0
- package/src/lib/Components/index.d.ts +2 -0
- package/src/lib/Components/pageHeader/PageHeader.d.ts +15 -0
- package/src/lib/toastNotification/ToastNofitication.d.ts +0 -4
- package/src/lib/toastNotification/interfaces.d.ts +0 -22
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
@@ -0,0 +1,14 @@
|
|
1
|
+
import React from "react";
|
2
|
+
interface Option {
|
3
|
+
}
|
4
|
+
interface Toast {
|
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 ToastNotification: (toast: Toast) => JSX.Element;
|
14
|
+
export {};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import React from "react";
|
2
|
+
interface BreadcrumbCode {
|
3
|
+
link: string;
|
4
|
+
name: string;
|
5
|
+
}
|
6
|
+
interface Pageheader {
|
7
|
+
back?: React.ReactNode;
|
8
|
+
title?: string;
|
9
|
+
subtitle?: string;
|
10
|
+
breadcrumbs?: BreadcrumbCode[];
|
11
|
+
actions?: React.ReactNode;
|
12
|
+
tabs?: React.ReactNode;
|
13
|
+
}
|
14
|
+
declare const PageHeader: (page: Pageheader) => JSX.Element;
|
15
|
+
export default PageHeader;
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import { ReactElement } from "react";
|
2
|
-
export interface Option {
|
3
|
-
}
|
4
|
-
export interface Toast {
|
5
|
-
type?: string;
|
6
|
-
description?: string;
|
7
|
-
time?: number | any;
|
8
|
-
title?: string;
|
9
|
-
dataOpt?: Option[];
|
10
|
-
actions?: React.ReactNode;
|
11
|
-
seeMore?: boolean;
|
12
|
-
position?: string;
|
13
|
-
}
|
14
|
-
export interface IconMap {
|
15
|
-
[key: string]: ReactElement;
|
16
|
-
}
|
17
|
-
export interface ColorMap {
|
18
|
-
[key: string]: "success" | "error" | "warning" | "info";
|
19
|
-
}
|
20
|
-
export interface position {
|
21
|
-
[key: string]: "center" | "flex-end" | "flex-start";
|
22
|
-
}
|